Function at 0x40d200
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x498
mov eax, dword [0x452004]
xor eax, ebp
mov dword [ebp - 8], eax
mov edx, dword [0x453ac4]
push ebx
push esi
mov esi, 2
mov dword [ebp - 0x464], ecx
push edi
lea ecx, [esi + 0x2e]
call fcn.00409c00
mov ecx, eax
xor edx, edx
lea eax, [ecx + 8]
mov dword [ebp - 0x41c], ecx
mov edi, 0x26
mov dword [ebp - 0x418], edx
mov dword [ebp - 0x420], edi
mov dword [ecx + 4], eax
mov dword [ecx], 0x26
mov word [eax + 0x26], dx
test byte [0x452bc0], 1
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x430], ebx
jne 0x40d36b
mov eax, 0x452bc0
lock bts dword ds:[eax], 0x1f
jb 0x40d3fe
push 4
lea eax, [ebp - 0x10]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40d2bf
mov ax, word [ebp - 0x10]
test ax, ax
je 0x40d2bf
movzx ecx, word [0x452bc8]
cmp word [ebp - 0xe], 0
movzx eax, ax
cmove ecx, eax
mov word [0x452bc8], cx
push 4
lea eax, [ebp - 0x10]
push eax
push 0xf
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40d2f8
mov ax, word [ebp - 0x10]
test ax, ax
je 0x40d2f8
movzx ecx, word [0x452c08]
cmp word [ebp - 0xe], 0
movzx eax, ax
cmove ecx, eax
mov word [0x452c08], cx
cmp word [0x452bc8], 0x2e
je 0x40d316
push 0x4321fc
push 0
call fcn.0041909e
add esp, 8
mov dword [0x453da8], eax
mov eax, 0x452bc0
lock bts dword [eax], 0
jb 0x40d369
mov esi, dword [0x452bc4]
test esi, esi
je 0x40d335
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
mov ecx, 0x452bc0
lock xadd dword [ecx], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x40d364
test esi, esi
je 0x40d364
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x452bc4], 0
mov esi, 2
xor edx, edx
fld qword [0x4501c8]
mov eax, dword [ebp - 0x454]
mov dword [ebp - 0x468], eax
mov eax, dword [ebp - 0x454]
fst qword [ebp - 0x48c]
fld qword [0x4501b8]
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x454]
fst qword [ebp - 0x494]
mov dword [ebp - 0x470], 3
mov dword [ebp - 0x460], eax
mov eax, dword [ebp - 0x464]
dec esi
mov dword [ebp - 0x454], esi
mov ecx, eax
mov esi, eax
mov dword [ebp - 0x458], edx
add eax, 0x18
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x428], 0
mov edx, dword [esi]
mov eax, edx
and eax, 0x3f
mov dword [ebp - 0x448], edx
cmp eax, 0xc
ja case.default.0x40d3f7
jmp dword [eax*4 + 0x40e90c]
test byte [0x452bc0], 1
jne 0x40d36b
mov ecx, eax
call fcn.00410f80
jmp 0x40d369
mov edi, dword [ebp - 0x418]
fstp st(1)
mov eax, dword [ebp - 0x420]
add edi, 2
fstp st(0)
cmp eax, edi
jae 0x40d4a3
mov edx, dword [0x453ac4]
add eax, eax
cmp eax, edi
mov ebx, edi
cmovae ebx, eax
mov dword [ebp - 0x420], ebx
lea ecx, [ebx + 0xa]
call fcn.00409c00
mov esi, eax
xor ecx, ecx
lea eax, [esi + 8]
mov dword [esi + 4], eax
mov dword [esi], ebx
mov word [ebx + eax], cx
mov eax, dword [ebp - 0x41c]
mov ebx, dword [ebp - 0x418]
push ebx
push dword [eax + 4]
push dword [esi + 4]
call fcn.00415e30
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40d48f
call fcn.00409ce0
mov eax, dword [esi + 4]
shr ebx, 1
mov dword [ebp - 0x41c], esi
mov esi, dword [ebp - 0x42c]
lea ebx, [eax + ebx*2]
mov ax, word ds:[esi + 0x10]
mov edx, edi
mov word [ebx], ax
add ebx, 2
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], edx
jmp 0x40e73a
mov eax, dword [esi + 0x10]
fstp st(1)
mov edi, dword [ebp - 0x418]
fstp st(0)
mov edx, dword [ebp - 0x420]
lea ecx, [eax + edi]
cmp edx, ecx
jae 0x40d54e
lea eax, [edx + edx]
mov ebx, ecx
mov edx, dword [0x453ac4]
cmp eax, ecx
cmovae ebx, eax
mov dword [ebp - 0x420], ebx
lea ecx, [ebx + 0xa]
call fcn.00409c00
mov esi, eax
xor ecx, ecx
lea eax, [esi + 8]
push edi
mov dword [esi], ebx
mov dword [esi + 4], eax
mov word [ebx + eax], cx
mov ebx, dword [ebp - 0x41c]
push dword [ebx + 4]
push dword [esi + 4]
call fcn.00415e30
add esp, 0xc
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40d535
call fcn.00409ce0
mov eax, dword [esi + 4]
mov ecx, edi
mov dword [ebp - 0x41c], esi
mov esi, dword [ebp - 0x42c]
shr ecx, 1
lea ebx, [eax + ecx*2]
mov eax, dword [esi + 0x10]
push eax
push dword [esi + 0x14]
push ebx
call fcn.00415e30
mov eax, dword [esi + 0x10]
add esp, 0xc
mov edx, dword [ebp - 0x418]
shr eax, 1
add edx, dword [esi + 0x10]
mov dword [ebp - 0x418], edx
lea ebx, [ebx + eax*2]
mov dword [ebp - 0x430], ebx
jmp 0x40e73a
mov ecx, dword [esi + 0x10]
fstp st(1)
fstp st(0)
call fcn.0040a0a0
mov ecx, dword ds:[ebp - 0x418]
lea esi, [eax + eax]
add ecx, esi
mov dword [ebp - 0x424], ecx
cmp edi, ecx
jae 0x40d61b
lea eax, [edi + edi]
mov ebx, ecx
cmp eax, ecx
lfence
mov edx, dword [0x453ac4]
cmovae ebx, eax
mov dword [ebp - 0x420], ebx
lea ecx, [ebx + 0xa]
call fcn.00409c00
mov edi, eax
xor ecx, ecx
lea eax, [edi + 8]
mov dword [edi + 4], eax
mov dword [edi], ebx
mov word [ebx + eax], cx
mov eax, dword [ebp - 0x41c]
mov ebx, dword [ebp - 0x418]
push ebx
push dword [eax + 4]
push dword [edi + 4]
call fcn.00415e30
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40d60d
call fcn.00409ce0
mov eax, dword [edi + 4]
shr ebx, 1
mov dword [ebp - 0x41c], edi
lea ebx, [eax + ebx*2]
mov ecx, dword [ebp - 0x42c]
push esi
push dword [ecx + 0x10]
push ebx
call fcn.00415e30
mov edx, dword [ebp - 0x424]
add esp, 0xc
shr esi, 1
mov dword [ebp - 0x418], edx
lea ebx, [ebx + esi*2]
mov dword [ebp - 0x430], ebx
jmp 0x40e73a
fstp st(1)
fstp st(0)
cmp edx, 3
jne 0x40d662
mov ecx, dword ds:[esi + 0x14]
mov esi, dword [esi + 0x10]
mov dword [ebp - 0x438], ecx
jmp 0x40d679
mov ecx, dword [esi + 0x10]
mov esi, ecx
mov dword [ebp - 0x438], ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40d670
sub esi, edx
push esi
push ecx
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.ntdll.dll_RtlMultiByteToUnicodeSize]
test eax, eax
js 0x40e734
mov ecx, dword [ebp - 0x418]
lfence
mov eax, dword [ebp - 0x45c]
add ecx, eax
cmp edi, ecx
jae 0x40d727
mov edx, dword [0x453ac4]
lea eax, [edi + edi]
cmp eax, ecx
mov ebx, ecx
cmovae ebx, eax
mov dword [ebp - 0x420], ebx
lea ecx, [ebx + 0xa]
call fcn.00409c00
mov edi, eax
xor ecx, ecx
lea eax, [edi + 8]
mov dword [edi + 4], eax
mov dword [edi], ebx
mov word [ebx + eax], cx
mov eax, dword [ebp - 0x41c]
mov ebx, dword [ebp - 0x418]
push ebx
push dword [eax + 4]
push dword [edi + 4]
call fcn.00415e30
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40d70b
call fcn.00409ce0
mov eax, dword [edi + 4]
mov ecx, ebx
shr ecx, 1
mov dword [ebp - 0x41c], edi
lea ebx, [eax + ecx*2]
mov eax, dword [ebp - 0x45c]
mov dword [ebp - 0x430], ebx
push esi
push dword [ebp - 0x438]
push 0
push eax
push ebx
call dword [sym.imp.ntdll.dll_RtlMultiByteToUnicodeN]
jmp 0x40d740
test eax, eax
js 0x40e734
mov eax, dword [ebp - 0x45c]
mov edx, dword [ebp - 0x418]
shr eax, 1
add edx, dword [ebp - 0x45c]
mov dword [ebp - 0x418], edx
lea ebx, [ebx + eax*2]
mov dword [ebp - 0x430], ebx
jmp 0x40e73a
mov eax, dword [ecx + 0x10]
mov ecx, eax
shr ecx, 0x1f
mov dword [ebp - 0x428], ecx
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
mov edx, dword [ebp - 0x448]
jmp 0x40d790
mov ecx, dword [esi + 0x10]
fstp st(1)
fstp st(0)
mov dword ds:[ebp - 0x434], 0xa
test edx, 0x100
je 0x40d7bc
mov al, byte [esi + 0xa]
cmp al, 2
jb 0x40d7bc
cmp al, 0x45
ja 0x40d7bc
movzx eax, al
mov dword [ebp - 0x434], eax
test edx, 0x20000000
lea edi, [ebp - 0x16]
mov esi, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_________._:_________
mov eax, str.0123456789abcdefghijklmnopqrstuvwxyz_________._:_________
cmovne eax, esi
xor esi, esi
mov dword [ebp - 0x438], eax
test ecx, ecx
je 0x40d894
test edx, 0x10000
je 0x40d864
xor eax, eax
mov dword [ebp - 0x440], eax
lea esp, [esp]
mov eax, ecx
xor edx, edx
div dword [ebp - 0x434]
inc esi
mov ecx, eax
mov eax, dword [ebp - 0x438]
movsx ax, byte [eax + edx]
mov word [edi], ax
sub edi, 2
mov eax, dword [ebp - 0x440]
inc eax
mov dword [ebp - 0x440], eax
cmp eax, 3
jne 0x40d849
test ecx, ecx
je 0x40d84d
mov ax, word [0x452c08]
inc esi
mov word [edi], ax
sub edi, 2
xor eax, eax
mov dword [ebp - 0x440], eax
test ecx, ecx
jne 0x40d800
mov edx, dword [ebp - 0x448]
xor ecx, ecx
cmp dword [ebp - 0x428], ecx
je 0x40d8a5
mov ecx, 1
jmp 0x40d8b3
mov ebx, dword [ebp - 0x438]
lea ebx, [ebx]
mov eax, ecx
xor edx, edx
div dword [ebp - 0x434]
inc esi
mov ecx, eax
movsx ax, byte [ebx + edx]
mov word [edi], ax
sub edi, 2
test ecx, ecx
jne 0x40d870
mov ebx, dword [ebp - 0x430]
jmp 0x40d84d
mov eax, 0x30
lea edi, [ebp - 0x18]
mov word [ebp - 0x16], ax
lea esi, [eax - 0x2f]
jmp 0x40d853
test edx, 0x20000
mov eax, 1
cmovne ecx, eax
and edx, 0x50000
cmp edx, 0x40000
jne 0x40d8ee
mov eax, dword [ebp - 0x42c]
movzx edx, word [eax + 6]
lea eax, [ecx + esi]
cmp eax, edx
jae 0x40d8ee
or dword [ebp - 0x428], 4
mov eax, edx
sub eax, ecx
sub eax, esi
mov dword [ebp - 0x468], eax
add ecx, eax
lea eax, [ecx + esi]
add edi, 2
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x424], edi
lea ecx, [ecx + eax*2]
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x438], ecx
cmp eax, ecx
jae 0x40d999
add eax, eax
mov edx, ecx
cmp eax, ecx
lfence
cmovae edx, eax
mov dword [ebp - 0x420], edx
lea ecx, [edx + 0xa]
mov edx, dword [0x453ac4]
call fcn.00409c00
mov edx, dword ds:[ebp - 0x420]
mov ebx, eax
push dword [ebp - 0x418]
lea eax, [ebx + 8]
xor ecx, ecx
mov dword [ebx + 4], eax
mov dword [ebx], edx
mov word [edx + eax], cx
mov eax, dword [ebp - 0x41c]
push dword [eax + 4]
push dword [ebx + 4]
call fcn.00415e30
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40d985
lea esp, [esp]
call fcn.00409ce0
mov ecx, dword [ebp - 0x418]
mov eax, dword [ebx + 4]
shr ecx, 1
mov dword [ebp - 0x41c], ebx
lea ebx, [eax + ecx*2]
mov eax, dword ds:[ebp - 0x428]
test al, 1
je 0x40d9ab
mov ecx, 0x2d
jmp 0x40d9be
mov ecx, dword [ebp - 0x42c]
test dword [ecx], 0x20000
je 0x40d9c4
mov ecx, 0x2b
mov word [ebx], cx
add ebx, 2
test al, 4
je 0x40d9ed
mov edx, dword [ebp - 0x468]
test edx, edx
je 0x40d9ea
mov ecx, edx
mov eax, 0x300030
shr ecx, 1
mov edi, ebx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x424]
lea ebx, [ebx + edx*2]
add esi, esi
push esi
push edi
push ebx
call fcn.00415e30
mov edx, dword [ebp - 0x438]
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x418], edx
mov dword [ebp - 0x430], ebx
jmp 0x40e73a
mov ecx, dword [esi + 0x10]
fstp st(1)
mov esi, dword [esi + 0x14]
fstp st(0)
mov dword [ebp - 0x440], ecx
test esi, esi
jg 0x40da52
jl 0x40da2d
test ecx, ecx
jae 0x40da52
neg ecx
mov dword [ebp - 0x428], 1
adc esi, 0
neg esi
jmp 0x40da4c
mov ecx, dword [esi + 0x10]
fstp st(1)
mov esi, dword [esi + 0x14]
fstp st(0)
mov dword [ebp - 0x440], ecx
mov dword [ebp - 0x434], 0xa
mov dword [ebp - 0x450], 0
test edx, 0x100
je 0x40dabd
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x434], 0xa
mov dword [ebp - 0x450], 0
mov al, byte [eax + 0xa]
cmp al, 2
jb 0x40dabd
mov dword [ebp - 0x434], 0xa
mov dword [ebp - 0x450], 0
cmp al, 0x45
ja 0x40dabd
movzx eax, al
cdq
mov dword [ebp - 0x450], edx
mov edx, dword [ebp - 0x448]
mov dword [ebp - 0x434], eax
test edx, 0x20000000
mov dword [ebp - 0x44c], 0
mov edi, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_________._:_________
mov eax, str.0123456789abcdefghijklmnopqrstuvwxyz_________._:_________
cmovne eax, edi
lea edi, [ebp - 0x16]
mov dword [ebp - 0x424], eax
mov eax, ecx
or eax, esi
je 0x40dc05
mov ebx, dword [ebp - 0x440]
test edx, 0x10000
je 0x40dbc0
xor eax, eax
mov dword [ebp - 0x438], eax
jmp 0x40db10
push ebx
push dword [ebp - 0x450]
push dword [ebp - 0x434]
push esi
push ebx
call fcn.004295e0
mov dword ds:[ebp - 0x440], ebx
pop ebx
mov ebx, eax
mov esi, edx
mov eax, dword [ebp - 0x424]
mov edx, dword [ebp - 0x44c]
inc edx
mov dword [ebp - 0x44c], edx
movsx ax, byte [eax + ecx]
mov ecx, dword [ebp - 0x438]
inc ecx
mov dword [ebp - 0x438], ecx
mov word [edi], ax
sub edi, 2
cmp ecx, 3
jne 0x40db86
mov eax, ebx
or eax, esi
je 0x40db8c
mov ax, word [0x452c08]
inc edx
mov word [edi], ax
sub edi, 2
xor eax, eax
mov dword [ebp - 0x44c], edx
mov dword [ebp - 0x438], eax
mov eax, ebx
or eax, esi
jne 0x40db10
mov ebx, dword [ebp - 0x430]
mov eax, dword ds:[ebp - 0x448]
xor ecx, ecx
cmp dword [ebp - 0x428], ecx
je 0x40dc25
mov ecx, 1
jmp 0x40dc32
push ebx
push dword [ebp - 0x450]
push dword [ebp - 0x434]
push esi
push ebx
call fcn.004295e0
mov dword [ebp - 0x438], ebx
pop ebx
mov ebx, eax
mov esi, edx
mov eax, dword [ebp - 0x424]
mov edx, dword [ebp - 0x44c]
inc edx
mov dword [ebp - 0x44c], edx
movsx ax, byte [eax + ecx]
mov word [edi], ax
mov eax, ebx
sub edi, 2
or eax, esi
jne 0x40dbc0
jmp 0x40db8c
mov eax, 0x30
lea edi, [ebp - 0x18]
mov edx, 1
mov word [ebp - 0x16], ax
mov dword [ebp - 0x44c], edx
jmp 0x40db92
test eax, 0x20000
mov esi, 1
cmovne ecx, esi
and eax, 0x50000
cmp eax, 0x40000
jne 0x40dc64
mov eax, dword [ebp - 0x42c]
movzx esi, word [eax + 6]
lea eax, [ecx + edx]
cmp eax, esi
jae 0x40dc64
or dword [ebp - 0x428], 4
mov eax, esi
sub eax, ecx
sub eax, edx
mov dword [ebp - 0x46c], eax
add ecx, eax
lea eax, [ecx + edx]
add edi, 2
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x424], edi
lea ecx, [ecx + eax*2]
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x438], ecx
cmp eax, ecx
jae 0x40dd05
add eax, eax
mov ebx, ecx
cmp eax, ecx
lfence
mov edx, dword [0x453ac4]
cmovae ebx, eax
mov dword [ebp - 0x420], ebx
lea ecx, [ebx + 0xa]
call fcn.00409c00
mov esi, eax
xor ecx, ecx
lea eax, [esi + 8]
mov dword [esi + 4], eax
mov dword [esi], ebx
mov word [ebx + eax], cx
mov eax, dword [ebp - 0x41c]
mov ebx, dword [ebp - 0x418]
push ebx
push dword [eax + 4]
push dword [esi + 4]
call fcn.00415e30
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40dcf1
call fcn.00409ce0
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x44c]
shr ebx, 1
mov dword [ebp - 0x41c], esi
lea ebx, [eax + ebx*2]
mov eax, dword [ebp - 0x428]
test al, 1
je 0x40dd16
mov ecx, 0x2d
jmp 0x40dd29
mov ecx, dword [ebp - 0x42c]
test dword [ecx], 0x20000
je 0x40dd2f
mov ecx, 0x2b
mov word [ebx], cx
add ebx, 2
test al, 4
je 0x40dd58
mov esi, dword [ebp - 0x46c]
test esi, esi
je 0x40dd55
mov ecx, esi
mov eax, 0x300030
shr ecx, 1
mov edi, ebx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x424]
lea ebx, [ebx + esi*2]
lea esi, ds:[edx + edx]
push esi
push edi
push ebx
call fcn.00415e30
mov edx, dword ds:[ebp - 0x438]
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x418], edx
mov dword [ebp - 0x430], ebx
jmp 0x40e73a
mov dword [ebp - 0x428], 0
fstp st(1)
fstp st(0)
test dl, 0x40
je 0x40ddaf
movzx edx, word ds:[esi + 4]
cmp edx, 0xa2
jbe 0x40ddb4
mov edx, 0xa2
jmp 0x40ddb4
mov edx, 6
fld qword [esi + 0x10]
lea edi, [ebp - 0x413]
mov esi, dword [ebp - 0x448]
sub esp, 0x10
mov eax, edi
mov dword [ebp - 0x440], edi
mov ecx, esi
fstp qword [esp + 8]
push eax
call fcn.00412980
test al, al
jne 0x40dde6
mov byte [ebp - 0x413], al
jmp 0x40de48
mov edx, dword [0x453da8]
test edx, edx
je 0x40de19
mov al, byte ds:[ebp - 0x413]
lea ecx, [ebp - 0x413]
test al, al
je 0x40de19
cmp al, 0x2e
je 0x40de12
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40de04
jmp 0x40de19
mov al, byte [0x452bc8]
mov byte [ecx], al
lea esp, [esp]
test esi, 0x20000000
je 0x40de48
lea eax, [ebp - 0x413]
test edx, edx
je 0x40de3e
push edx
push eax
call fcn.0041883d
add esp, 8
jmp 0x40de48
push eax
call fcn.004187e1
add esp, 4
mov eax, dword [ebp - 0x42c]
mov edi, dword [eax]
test edi, 0x8000
je 0x40dece
mov al, byte [ebp - 0x413]
lea ecx, [ebp - 0x413]
mov ah, byte [0x452bc8]
test al, al
je 0x40de7e
cmp al, ah
je 0x40de7e
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40de72
mov al, byte [ecx]
inc ecx
test al, al
je 0x40dece
mov al, byte [ecx]
test al, al
je 0x40dea4
jmp 0x40de90
cmp al, 0x65
je 0x40dea4
cmp al, 0x45
je 0x40dea4
mov al, byte ds:[ecx + 1]
inc ecx
test al, al
jne 0x40de90
mov al, byte [ecx - 1]
mov esi, ecx
dec ecx
cmp al, 0x30
jne 0x40deb8
mov edi, edi
mov al, byte [ecx - 1]
dec ecx
cmp al, 0x30
je 0x40deb0
cmp al, ah
lea edx, [ecx - 1]
cmovne edx, ecx
mov al, byte [esi]
lea edx, [edx + 1]
mov byte [edx], al
lea esi, [esi + 1]
test al, al
jne 0x40dec0
lea esi, [ebp - 0x413]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40ded7
sub esi, ecx
cmp byte [ebp - 0x413], 0x2d
mov dword [ebp - 0x424], esi
jne 0x40df09
lea ecx, [ebp - 0x412]
dec esi
mov edx, 1
mov dword [ebp - 0x440], ecx
mov dword [ebp - 0x424], esi
jmp 0x40df23
mov edx, dword [ebp - 0x428]
test edi, 0x20000
mov ecx, dword [ebp - 0x440]
mov eax, 2
cmovne edx, eax
mov eax, edi
mov dword [ebp - 0x428], edx
and eax, 0x13000
cmp eax, 0x10000
jne 0x40e0de
mov al, byte [ecx]
mov edi, ecx
sub al, 0x30
cmp al, 0xa
jae 0x40df4f
mov al, byte [edi + 1]
inc edi
sub al, 0x30
cmp al, 0xa
jb 0x40df45
mov eax, edi
sub eax, ecx
mov dword [ebp - 0x438], eax
je 0x40df6c
lea ecx, [eax + 2]
mov eax, 0xaaaaaaab
mul ecx
mov eax, edx
shr eax, 1
dec eax
jmp 0x40df6e
xor eax, eax
lea ecx, [eax + esi]
mov dword [ebp - 0x434], eax
add ecx, ecx
cmp dword [ebp - 0x428], 0
lea eax, [ecx + 2]
cmove eax, ecx
mov ecx, dword [ebp - 0x418]
add ecx, eax
mov eax, dword [ebp - 0x420]
cmp eax, ecx
jae 0x40e01c
add eax, eax
mov edx, ecx
cmp eax, ecx
lfence
cmovae edx, eax
mov dword [ebp - 0x420], edx
lea ecx, [edx + 0xa]
mov edx, dword [0x453ac4]
call fcn.00409c00
mov edx, dword [ebp - 0x420]
mov ebx, eax
push dword [ebp - 0x418]
lea eax, [ebx + 8]
xor ecx, ecx
mov dword [ebx + 4], eax
mov dword [ebx], edx
mov word [edx + eax], cx
mov eax, dword [ebp - 0x41c]
push dword [eax + 4]
push dword [ebx + 4]
call fcn.00415e30
mov ecx, dword ds:[ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40e008
call fcn.00409ce0
mov ecx, dword [ebp - 0x418]
mov eax, dword [ebx + 4]
shr ecx, 1
mov dword [ebp - 0x41c], ebx
lea ebx, [eax + ecx*2]
mov eax, dword [ebp - 0x438]
xor edx, edx
mov ecx, eax
add eax, 2
div dword [ebp - 0x470]
mov eax, dword [ebp - 0x428]
test al, 1
je 0x40e042
mov eax, 0x2d
jmp 0x40e04b
test al, 2
je 0x40e051
mov eax, 0x2b
mov word [ebx], ax
add ebx, 2
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x40e09b
mov esi, dword [ebp - 0x440]
movsx ax, byte [esi]
lea esi, [esi + 1]
dec ecx
mov word [ebx], ax
mov eax, edx
add ebx, 2
dec edx
test eax, eax
jne 0x40e08b
test ecx, ecx
je 0x40e08f
mov ax, word [0x452c08]
mov edx, 2
mov word [ebx], ax
add ebx, 2
test ecx, ecx
jne 0x40e061
mov esi, dword [ebp - 0x424]
mov eax, dword [ebp - 0x438]
cmp dword [ebp - 0x428], 0
mov ecx, ebx
je 0x40e0ad
add dword [ebp - 0x418], 2
mov edx, esi
sub edx, eax
mov eax, dword [ebp - 0x434]
add eax, esi
mov esi, dword [ebp - 0x418]
push ecx
mov ecx, edi
lea ebx, [ebx + edx*2]
lea esi, [esi + eax*2]
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], esi
call fcn.0040aa40
jmp 0x40e734
xor ecx, ecx
test edx, edx
setne cl
mov edx, ecx
test edi, 0x40000
je 0x40e11a
mov eax, dword ds:[ebp - 0x42c]
movzx edi, word [eax + 6]
lea eax, [ecx + esi]
cmp eax, edi
jae 0x40e11a
or dword [ebp - 0x428], 4
mov eax, edi
sub eax, ecx
sub eax, esi
mov dword [ebp - 0x460], eax
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x418]
lea eax, [edx + esi]
lea edx, [ecx + eax*2]
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x424], edx
cmp eax, edx
jae 0x40e1b9
add eax, eax
mov ebx, edx
cmp eax, edx
lfence
mov edx, dword [0x453ac4]
cmovae ebx, eax
mov dword [ebp - 0x420], ebx
lea ecx, [ebx + 0xa]
call fcn.00409c00
mov edi, eax
xor ecx, ecx
lea eax, [edi + 8]
mov dword [edi + 4], eax
mov dword [edi], ebx
mov word [eax + ebx], cx
mov eax, dword [ebp - 0x41c]
mov ebx, dword [ebp - 0x418]
push ebx
push dword [eax + 4]
push dword [edi + 4]
call fcn.00415e30
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40e1a5
lea esp, [esp]
call fcn.00409ce0
mov eax, dword [edi + 4]
mov edx, dword [ebp - 0x424]
shr ebx, 1
mov dword [ebp - 0x41c], edi
lea ebx, [eax + ebx*2]
mov eax, dword ds:[ebp - 0x428]
test al, 1
je 0x40e1cb
mov ecx, 0x2d
jmp 0x40e1d4
test al, 2
je 0x40e1da
mov ecx, 0x2b
mov word [ebx], cx
add ebx, 2
test al, 4
je 0x40e203
mov eax, dword [ebp - 0x460]
test eax, eax
je 0x40e200
mov ecx, eax
mov edi, ebx
shr ecx, 1
mov eax, 0x300030
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, dword [ebp - 0x460]
lea ebx, [ebx + eax*2]
mov edi, dword ds:[ebp - 0x440]
mov ecx, ebx
mov dword [ebp - 0x418], edx
lea ebx, [ebx + esi*2]
push ecx
mov edx, esi
mov dword [ebp - 0x430], ebx
mov ecx, edi
call fcn.0040aa40
jmp 0x40e734
mov eax, dword [ebp - 0x42c]
xor edi, edi
mov esi, dword [esi + 0x10]
mov dword [ebp - 0x47c], esi
mov dword [ebp - 0x484], edi
mov edx, dword [eax + 0x14]
mov eax, edx
mov ecx, edx
mov dword [ebp - 0x44c], edi
and eax, 0x7fffffff
and ecx, 0x80000000
or esi, edx
mov dword [ebp - 0x478], eax
fild qword [ebp - 0x47c]
mov dword [ebp - 0x480], ecx
fild qword [ebp - 0x484]
fchs
faddp st(1)
jne 0x40e327
mov edi, dword [ebp - 0x418]
fstp st(0)
mov eax, dword [ebp - 0x420]
add edi, 2
fstp st(1)
fstp st(0)
cmp eax, edi
jae 0x40e309
mov edx, dword [0x453ac4]
add eax, eax
cmp eax, edi
mov ebx, edi
cmovae ebx, eax
mov dword [ebp - 0x420], ebx
lea ecx, [ebx + 0xa]
call fcn.00409c00
mov esi, eax
xor ecx, ecx
lea eax, [esi + 8]
mov dword [esi + 4], eax
mov dword [esi], ebx
mov word [eax + ebx], cx
mov eax, dword [ebp - 0x41c]
mov ebx, dword [ebp - 0x418]
push ebx
push dword [eax + 4]
push dword [esi + 4]
call fcn.00415e30
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40e2fb
call fcn.00409ce0
mov eax, dword [esi + 4]
shr ebx, 1
mov dword [ebp - 0x41c], esi
lea ebx, [eax + ebx*2]
mov eax, 0x30
mov edx, edi
mov word [ebx], ax
add ebx, 2
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], edx
jmp 0x40e73a
mov edx, dword [ebp - 0x448]
mov esi, dword [ebp - 0x42c]
test edx, 0x100
je 0x40e342
movzx ecx, byte ds:[esi + 0xa]
jmp 0x40e345
or ecx, 0xffffffff
fcomi st(2)
jb 0x40e35f
cmp edi, 7
jae 0x40e359
cmp edi, ecx
jae 0x40e359
fmul st(1)
inc edi
fcomi st(2)
jae 0x40e349
mov dword [ebp - 0x44c], edi
fstp st(2)
fstp st(0)
test dl, 0x40
je 0x40e36e
movzx eax, word [esi + 4]
jmp 0x40e373
mov eax, 2
movzx edx, ax
mov ecx, 0x1804b
cmp edx, 0xa2
mov dword [ebp - 0x440], 0
mov eax, 0xa2
cmova edx, eax
sub esp, 0x10
lea eax, [ebp - 0x413]
mov dword [ebp - 0x438], eax
fstp qword [esp + 8]
push eax
call fcn.00412980
test al, al
jne 0x40e3ba
xor dl, dl
mov byte [ebp - 0x413], dl
jmp 0x40e3f4
cmp dword [0x453da8], 0
mov dl, byte [ebp - 0x413]
je 0x40e3f4
lea ecx, [ebp - 0x413]
test dl, dl
je 0x40e3f4
mov al, dl
cmp al, 0x2e
je 0x40e3e6
mov al, byte ds:[ecx + 1]
inc ecx
test al, al
jne 0x40e3d5
jmp 0x40e3f4
mov ax, word [0x452bc8]
mov byte [ecx], al
mov dl, byte [ebp - 0x413]
lea ecx, [ebp - 0x413]
test dl, dl
je 0x40e410
mov al, dl
cmp al, byte [0x452bc8]
je 0x40e410
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40e400
mov al, byte [ecx]
inc ecx
test al, al
je 0x40e46a
mov al, byte [ecx]
test al, al
je 0x40e430
lea ecx, [ecx]
cmp al, 0x65
je 0x40e430
cmp al, 0x45
je 0x40e430
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40e420
mov al, byte [ecx - 1]
mov esi, ecx
dec ecx
cmp al, 0x30
jne 0x40e448
lea ebx, [ebx]
mov al, byte [ecx - 1]
dec ecx
cmp al, 0x30
je 0x40e440
cmp al, byte [0x452bc8]
lea edx, [ecx - 1]
cmovne edx, ecx
mov al, byte ds:[esi]
lea edx, [edx + 1]
mov byte [edx], al
lea esi, [esi + 1]
test al, al
jne 0x40e454
mov dl, byte [ebp - 0x413]
lea esi, [ebp - 0x413]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40e473
sub esi, ecx
mov dword [ebp - 0x450], esi
cmp dl, 0x2d
jne 0x40e4a6
lea ecx, [ebp - 0x412]
mov dword [ebp - 0x440], 1
dec esi
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x450], esi
jmp 0x40e4ac
mov ecx, dword [ebp - 0x438]
mov al, byte [ecx]
mov edi, ecx
sub al, 0x30
cmp al, 0xa
jae 0x40e4c4
mov al, byte ds:[edi + 1]
inc edi
sub al, 0x30
cmp al, 0xa
jb 0x40e4b6
mov eax, edi
sub eax, ecx
mov dword [ebp - 0x434], eax
je 0x40e4e2
lea ecx, ds:[eax + 2]
mov eax, 0xaaaaaaab
mul ecx
mov eax, edx
shr eax, 1
dec eax
jmp 0x40e4e4
xor eax, eax
lea ecx, [eax + esi]
mov dword [ebp - 0x424], eax
add ecx, ecx
cmp dword [ebp - 0x440], 0
lea eax, [ecx + 2]
cmove eax, ecx
mov ecx, dword [ebp - 0x418]
add ecx, eax
mov eax, dword [ebp - 0x420]
cmp eax, ecx
jae 0x40e58f
add eax, eax
mov edx, ecx
cmp eax, ecx
lfence
cmovae edx, eax
mov dword [ebp - 0x420], edx
lea ecx, [edx + 0xa]
mov edx, dword [0x453ac4]
call fcn.00409c00
mov edx, dword [ebp - 0x420]
mov ebx, eax
push dword [ebp - 0x418]
lea eax, [ebx + 8]
xor ecx, ecx
mov dword [ebx + 4], eax
mov dword [ebx], edx
mov word [eax + edx], cx
mov eax, dword [ebp - 0x41c]
push dword [eax + 4]
push dword [ebx + 4]
call fcn.00415e30
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40e57b
call fcn.00409ce0
mov ecx, dword [ebp - 0x418]
mov eax, dword [ebx + 4]
shr ecx, 1
mov dword [ebp - 0x41c], ebx
lea ebx, [eax + ecx*2]
mov eax, dword [ebp - 0x434]
xor edx, edx
mov ecx, eax
add eax, 2
div dword [ebp - 0x470]
cmp dword [ebp - 0x440], 0
je 0x40e5b6
mov eax, 0x2d
mov word [ebx], ax
add ebx, 2
mov eax, dword ds:[ebp - 0x434]
test eax, eax
je 0x40e60a
mov esi, dword [ebp - 0x438]
lea ebx, [ebx]
movsx ax, byte [esi]
lea esi, [esi + 1]
dec ecx
mov word [ebx], ax
mov eax, edx
add ebx, 2
dec edx
test eax, eax
jne 0x40e5fa
test ecx, ecx
je 0x40e5fe
mov ax, word [0x452c08]
mov edx, 2
mov word [ebx], ax
add ebx, 2
test ecx, ecx
jne 0x40e5d0
mov esi, dword [ebp - 0x450]
mov eax, dword [ebp - 0x434]
cmp dword [ebp - 0x440], 0
je 0x40e61a
add dword [ebp - 0x418], 2
sub esi, eax
mov ecx, edi
push ebx
mov edx, esi
call fcn.0040aa40
mov eax, dword ds:[ebp - 0x450]
lea edi, [ebx + esi*2]
add eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x418]
mov esi, dword [ebp - 0x44c]
lea ebx, [ecx + eax*2]
mov ecx, dword [ebp - 0x420]
mov eax, dword [esi*8 + 0x452bd0]
add eax, 2
mov dword [ebp - 0x424], ebx
add eax, ebx
cmp ecx, eax
jae 0x40e6e6
lfence
mov eax, dword [esi*8 + 0x452bd0]
add ecx, ecx
mov edx, dword [0x453ac4]
add eax, 2
add eax, ebx
cmp ecx, eax
cmovae eax, ecx
mov dword [ebp - 0x420], eax
lea ecx, [eax + 0xa]
call fcn.00409c00
mov ecx, dword [ebp - 0x420]
mov edi, eax
lea eax, [edi + 8]
xor edx, edx
push ebx
mov dword [edi + 4], eax
mov dword [edi], ecx
mov word [eax + ecx], dx
mov eax, dword [ebp - 0x41c]
push dword [eax + 4]
push dword [edi + 4]
call fcn.00415e30
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40e6d6
call fcn.00409ce0
mov eax, dword [edi + 4]
mov ecx, ebx
shr ecx, 1
mov dword [ebp - 0x41c], edi
lea edi, [eax + ecx*2]
mov eax, 0x20
mov word [edi], ax
lea eax, [edi + 2]
push dword [esi*8 + 0x452bd0]
push dword [esi*8 + 0x452bd4]
push eax
call fcn.00415e30
mov ecx, dword [esi*8 + 0x452bd0]
add esp, 0xc
mov edx, dword [ebp - 0x424]
add edx, 2
lea eax, [ecx + 2]
shr eax, 1
add edx, ecx
mov dword [ebp - 0x418], edx
lea ebx, [edi + eax*2]
mov dword [ebp - 0x430], ebx
jmp 0x40e73a
fstp st(1)
fstp st(0)
mov edx, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x42c]
mov edi, edx
sub edi, dword [ebp - 0x458]
mov eax, dword [ecx]
test eax, 0xc0000000
je 0x40e8bf
movzx esi, word ds:[ecx + 6]
add esi, esi
cmp edi, esi
jae 0x40e8bf
sub esi, edi
lea ecx, [esi + edx]
mov edx, dword [ebp - 0x420]
mov dword [ebp - 0x440], ecx
cmp edx, ecx
jae 0x40e810
lea eax, [edx + edx]
mov edx, ecx
cmp eax, ecx
lfence
cmovae edx, eax
mov dword [ebp - 0x420], edx
lea ecx, [edx + 0xa]
mov edx, dword [0x453ac4]
call fcn.00409c00
mov ecx, dword [ebp - 0x420]
mov ebx, eax
push dword [ebp - 0x418]
lea eax, [ebx + 8]
xor edx, edx
mov dword [ebx + 4], eax
mov dword [ebx], ecx
mov word [eax + ecx], dx
mov eax, dword [ebp - 0x41c]
push dword [eax + 4]
push dword [ebx + 4]
call fcn.00415e30
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40e7f2
call fcn.00409ce0
mov ecx, dword [ebp - 0x418]
mov eax, dword [ebx + 4]
shr ecx, 1
mov dword [ebp - 0x41c], ebx
lea ebx, [eax + ecx*2]
mov ecx, dword [ebp - 0x42c]
mov eax, dword [ecx]
jmp 0x40e816
mov ecx, dword [ebp - 0x42c]
test al, al
jns 0x40e822
movzx edx, word ds:[ecx + 8]
jmp 0x40e827
mov edx, 0x20
shr esi, 1
mov dword [ebp - 0x424], edx
test eax, eax
jns 0x40e857
test esi, esi
je 0x40e850
mov eax, edx
mov ecx, esi
movzx edx, ax
mov edi, ebx
mov eax, edx
shl edx, 0x10
or eax, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
add esi, esi
jmp 0x40e8ab
mov eax, edi
mov ecx, ebx
and eax, 0xfffffffe
sub ecx, eax
lea eax, [esi + esi]
push edi
mov dword [ebp - 0x438], eax
add eax, ecx
push ecx
push eax
lfence
mov dword [ebp - 0x458], ecx
call fcn.004158b0
add esp, 0xc
test esi, esi
je 0x40e8a5
mov eax, dword [ebp - 0x424]
mov ecx, esi
mov edi, dword [ebp - 0x458]
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov esi, dword [ebp - 0x438]
mov edx, dword [ebp - 0x440]
add ebx, esi
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], edx
mov esi, dword [ebp - 0x454]
fld qword [ebp - 0x48c]
fld qword [ebp - 0x494]
mov edi, dword [ebp - 0x420]
test esi, esi
jne 0x40d3b1
mov eax, dword ds:[ebp - 0x41c]
xor esi, esi
pop edi
fstp st(1)
fstp st(0)
mov ecx, dword [eax + 4]
mov dword [eax], edx
shr edx, 1
mov word [ecx + edx*2], si
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.00413aae
mov esp, ebp
pop ebp
ret 4