Function at 0x407ce0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x490
mov eax, dword [0x46b040]
xor eax, ebp
mov dword [ebp - 8], eax
mov edx, dword [0x46ccf8]
push ebx
push esi
mov esi, 2
mov dword [ebp - 0x458], ecx
push edi
lea ecx, [esi + 0x2e]
call fcn.004060e0
mov ecx, eax
xor edx, edx
lea eax, [ecx + 8]
mov dword [ebp - 0x41c], ecx
mov edi, 0x26
mov dword [ebp - 0x420], edi
mov dword [ecx + 4], eax
mov dword [ecx], 0x26
mov word [eax + 0x26], dx
xor eax, eax
test byte [0x46bd2c], 1
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], eax
jne 0x407e37
mov ecx, 0x46bd2c
lock bts dword ds:[ecx], 0x1f
jb 0x407ea7
push 4
lea eax, [ebp - 0x10]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x407d93
mov ax, word [ebp - 0x10]
test ax, ax
je 0x407d93
cmp word [ebp - 0xe], 0
jne 0x407d93
mov word [0x46bd34], ax
push 4
lea eax, [ebp - 0x10]
push eax
push 0xf
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x407dc0
mov ax, word [ebp - 0x10]
test ax, ax
je 0x407dc0
cmp word [ebp - 0xe], 0
jne 0x407dc0
mov word [0x46bd78], ax
cmp word [0x46bd34], 0x2e
je 0x407dde
push 0x4640bc
push 0
call fcn.0042836b
add esp, 8
mov dword [0x46ce94], eax
mov eax, 0x46bd2c
lock bts dword [eax], 0
jb 0x407e35
mov esi, dword [0x46bd30]
test esi, esi
je 0x407dfd
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
mov ecx, 0x46bd2c
lock xadd dword [ecx], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x407e30
test esi, esi
je 0x407e30
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x46bd30], 0
mov esi, 2
xor eax, eax
fld qword [0x468be0]
fst qword [ebp - 0x484]
fld qword [0x468bd0]
fst qword [ebp - 0x48c]
mov dword [ebp - 0x460], 3
mov edx, dword [ebp - 0x458]
dec esi
mov dword [ebp - 0x464], esi
mov ecx, edx
mov esi, edx
mov dword [ebp - 0x450], eax
add edx, 0x18
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x458], edx
mov dword [ebp - 0x42c], 0
mov edx, dword [esi]
mov eax, edx
and eax, 0x3f
mov dword [ebp - 0x434], edx
cmp eax, 0xc
ja case.default.0x407ea0
nop
jmp dword [eax*4 + 0x40936c]
test byte [0x46bd2c], 1
jne 0x407e37
call fcn.004155c0
jmp 0x407e35
mov edi, dword [ebp - 0x418]
fstp st(1)
mov eax, dword [ebp - 0x420]
add edi, 2
fstp st(0)
cmp eax, edi
jae 0x407f46
mov edx, dword [0x46ccf8]
add eax, eax
cmp eax, edi
mov ebx, edi
cmovae ebx, eax
mov dword [ebp - 0x420], ebx
lea ecx, [ebx + 0xa]
call fcn.004060e0
mov esi, eax
xor ecx, ecx
lea eax, [esi + 8]
mov dword [esi], ebx
mov dword [esi + 4], eax
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.00423850
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x407f32
call fcn.004061c0
mov eax, dword [esi + 4]
shr ebx, 1
mov dword [ebp - 0x41c], esi
mov esi, dword [ebp - 0x438]
lea ebx, [eax + ebx*2]
mov ax, word ds:[esi + 0x10]
mov word [ebx], ax
add ebx, 2
mov eax, edi
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], eax
jmp 0x4091b4
mov ecx, dword [esi + 0x10]
fstp st(1)
mov edi, dword [ebp - 0x418]
fstp st(0)
mov eax, dword [ebp - 0x420]
add ecx, edi
cmp eax, ecx
jae 0x407fe9
mov edx, dword [0x46ccf8]
add eax, eax
cmp eax, ecx
mov ebx, ecx
cmovae ebx, eax
mov dword [ebp - 0x420], ebx
lea ecx, [ebx + 0xa]
call fcn.004060e0
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.00423850
add esp, 0xc
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x407fd3
call fcn.004061c0
mov eax, dword [esi + 4]
mov ecx, edi
shr ecx, 1
mov dword [ebp - 0x41c], esi
mov esi, dword [ebp - 0x438]
lea ebx, [eax + ecx*2]
push dword [esi + 0x10]
push dword [esi + 0x14]
push ebx
call fcn.00423850
mov eax, dword [esi + 0x10]
add esp, 0xc
shr eax, 1
lea ebx, [ebx + eax*2]
mov eax, dword [ebp - 0x418]
add eax, dword [esi + 0x10]
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], eax
jmp 0x4091b4
mov ecx, dword [esi + 0x10]
fstp st(1)
fstp st(0)
call fcn.004069e0
mov ecx, dword [ebp - 0x418]
lea esi, [eax + eax]
add ecx, esi
mov dword [ebp - 0x424], ecx
cmp edi, ecx
jae 0x4080b3
mov edx, dword [0x46ccf8]
lea eax, [edi + edi]
cmp eax, ecx
mov ebx, ecx
cmovae ebx, eax
mov dword [ebp - 0x420], ebx
lea ecx, [ebx + 0xa]
call fcn.004060e0
mov edi, eax
xor ecx, ecx
lea eax, [edi + 8]
mov dword [edi], ebx
mov dword [edi + 4], eax
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.00423850
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4080a5
lea esp, [esp]
call fcn.004061c0
mov eax, dword [edi + 4]
shr ebx, 1
mov dword [ebp - 0x41c], edi
lea ebx, [eax + ebx*2]
mov ecx, dword ds:[ebp - 0x438]
push esi
push dword [ecx + 0x10]
push ebx
call fcn.00423850
mov eax, dword ds:[ebp - 0x424]
add esp, 0xc
shr esi, 1
mov dword [ebp - 0x418], eax
lea ebx, [ebx + esi*2]
mov dword [ebp - 0x430], ebx
jmp 0x4091b4
fstp st(1)
fstp st(0)
cmp edx, 3
jne 0x4080fc
mov ecx, dword [esi + 0x14]
mov esi, dword [esi + 0x10]
mov dword [ebp - 0x428], ecx
jmp 0x408119
mov ecx, dword [esi + 0x10]
mov esi, ecx
mov dword [ebp - 0x428], ecx
lea edx, [esi + 1]
lea ebx, [ebx]
mov al, byte [esi]
inc esi
test al, al
jne 0x408110
sub esi, edx
push esi
push ecx
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.ntdll.dll_RtlMultiByteToUnicodeSize]
test eax, eax
js 0x4091ae
mov ecx, dword [ebp - 0x418]
lfence
mov eax, dword [ebp - 0x454]
add ecx, eax
cmp edi, ecx
jae 0x4081c7
mov edx, dword [0x46ccf8]
lea eax, [edi + edi]
cmp eax, ecx
mov ebx, ecx
cmovae ebx, eax
mov dword [ebp - 0x420], ebx
lea ecx, [ebx + 0xa]
call fcn.004060e0
mov edi, eax
xor ecx, ecx
lea eax, [edi + 8]
mov dword [edi], ebx
mov dword [edi + 4], eax
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.00423850
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4081ab
call fcn.004061c0
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 - 0x454]
mov dword [ebp - 0x430], ebx
push esi
push dword [ebp - 0x428]
push 0
push eax
push ebx
call dword [sym.imp.ntdll.dll_RtlMultiByteToUnicodeN]
jmp 0x4081e0
test eax, eax
js 0x4091ae
mov eax, dword [ebp - 0x454]
shr eax, 1
lea ebx, [ebx + eax*2]
mov eax, dword [ebp - 0x418]
add eax, dword [ebp - 0x454]
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], eax
jmp 0x4091b4
mov eax, 0x10
mov eax, dword [ecx + eax]
mov ecx, eax
shr ecx, 0x1f
mov dword [ebp - 0x42c], ecx
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
mov edx, dword [ebp - 0x434]
jmp 0x408235
mov ecx, dword [esi + 0x10]
fstp st(1)
fstp st(0)
mov dword [ebp - 0x448], 0xa
test edx, 0x100
je 0x40825f
mov al, byte [esi + 0xa]
cmp al, 2
jb 0x40825f
cmp al, 0x45
ja 0x40825f
movzx eax, al
mov dword [ebp - 0x448], 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 - 0x440], eax
test ecx, ecx
je 0x408354
test edx, 0x10000
je 0x408323
xor eax, eax
mov dword [ebp - 0x430], eax
lea esp, [esp]
mov eax, ecx
xor edx, edx
div dword [ebp - 0x448]
inc esi
mov ecx, eax
mov eax, dword [ebp - 0x440]
movsx ax, byte [eax + edx]
mov word [edi], ax
sub edi, 2
mov eax, dword [ebp - 0x430]
inc eax
mov dword [ebp - 0x430], eax
cmp eax, 3
jne 0x408308
test ecx, ecx
je 0x40830c
movzx eax, word [0x46bd78]
xor edx, edx
mov word [edi], ax
mov eax, ecx
div dword [ebp - 0x448]
mov dword [ebp - 0x430], 1
mov ecx, eax
mov eax, dword [ebp - 0x440]
movsx eax, byte [eax + edx]
mov word [edi - 2], ax
add edi, 0xfffffffc
add esi, 2
test ecx, ecx
jne 0x4082a0
mov edx, dword [ebp - 0x434]
xor ecx, ecx
cmp dword [ebp - 0x42c], ecx
je 0x408365
mov ecx, 1
jmp 0x408373
mov ebx, dword [ebp - 0x440]
lea esp, [esp]
mov eax, ecx
xor edx, edx
div dword [ebp - 0x448]
inc esi
mov ecx, eax
movsx ax, byte [ebx + edx]
mov word [edi], ax
sub edi, 2
test ecx, ecx
jne 0x408330
mov ebx, dword [ebp - 0x430]
jmp 0x40830c
mov eax, 0x30
lea edi, [ebp - 0x18]
mov word [ebp - 0x16], ax
lea esi, [eax - 0x2f]
jmp 0x408312
test edx, 0x20000
mov eax, 1
cmovne ecx, eax
mov eax, edx
and eax, 0x50000
cmp eax, 0x40000
jne 0x4083b1
mov eax, dword [ebp - 0x438]
movzx edx, word [eax + 6]
lea eax, [ecx + esi]
cmp eax, edx
jae 0x4083ab
or dword [ebp - 0x42c], 4
sub edx, ecx
sub edx, esi
mov dword [ebp - 0x468], edx
add ecx, edx
mov edx, dword [ebp - 0x434]
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 - 0x428], ecx
cmp eax, ecx
jae 0x408461
add eax, eax
mov edx, ecx
cmp eax, ecx
cmovae edx, eax
mov dword [ebp - 0x420], edx
lea ecx, [edx + 0xa]
mov edx, dword [0x46ccf8]
call fcn.004060e0
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 [eax + edx], cx
mov eax, dword [ebp - 0x41c]
push dword [eax + 4]
push dword [ebx + 4]
call fcn.00423850
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x408445
lea esp, [esp]
call fcn.004061c0
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]
mov edx, dword [eax]
mov eax, dword [ebp - 0x42c]
test al, 1
je 0x408472
mov ecx, 0x2d
jmp 0x40847f
test edx, 0x20000
je 0x408485
mov ecx, 0x2b
mov word [ebx], cx
add ebx, 2
test al, 4
je 0x4084ae
mov edx, dword [ebp - 0x468]
test edx, edx
je 0x4084ab
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.00423850
mov eax, dword [ebp - 0x428]
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x430], ebx
jmp 0x4091b4
mov edx, dword [esi + 0x14]
fstp st(1)
mov eax, dword [esi + 0x10]
fstp st(0)
mov dword [ebp - 0x448], eax
test edx, edx
jg 0x408512
jl 0x4084ee
test eax, eax
jae 0x408512
neg eax
mov dword [ebp - 0x42c], 1
adc edx, 0
neg edx
jmp 0x40850c
mov eax, dword [esi + 0x10]
fstp st(1)
mov edx, dword [esi + 0x14]
fstp st(0)
mov dword [ebp - 0x448], eax
mov esi, dword [ebp - 0x434]
mov dword [ebp - 0x428], 0xa
test esi, 0x100
je 0x408546
mov ecx, dword [ebp - 0x438]
mov cl, byte [ecx + 0xa]
cmp cl, 2
jb 0x408546
cmp cl, 0x45
ja 0x408546
movzx ecx, cl
mov dword [ebp - 0x428], ecx
test esi, 0x20000000
lea edi, [ebp - 0x16]
mov esi, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_________._:_________
mov ecx, str.0123456789abcdefghijklmnopqrstuvwxyz_________._:_________
cmovne ecx, esi
xor esi, esi
or eax, edx
mov dword [ebp - 0x424], ecx
je 0x408649
test dword ds:[ebp - 0x434], 0x10000
mov ebx, dword [ebp - 0x448]
je 0x408610
xor eax, eax
mov dword [ebp - 0x440], eax
mov edi, edi
push ebx
push 0
push dword [ebp - 0x428]
push edx
push ebx
call fcn.0043d3c0
mov dword [ebp - 0x448], ebx
pop ebx
nop
mov ebx, eax
inc esi
mov eax, dword [ebp - 0x424]
movsx ax, byte [eax + ecx]
mov word [edi], ax
sub edi, 2
mov eax, dword [ebp - 0x440]
inc eax
cmp eax, 3
jne 0x4085e2
mov eax, ebx
or eax, edx
je 0x4085ee
mov ax, word [0x46bd78]
mov word [edi], ax
sub edi, 2
inc esi
jmp 0x408586
mov dword [ebp - 0x440], eax
mov eax, ebx
or eax, edx
jne 0x408590
mov ebx, dword [ebp - 0x430]
mov eax, dword ds:[ebp - 0x434]
xor ecx, ecx
cmp dword [ebp - 0x42c], ecx
je 0x40865a
mov ecx, 1
jmp 0x408667
push ebx
push 0
push dword [ebp - 0x428]
push edx
push ebx
call fcn.0043d3c0
mov dword [ebp - 0x440], ebx
pop ebx
nop
mov ebx, eax
inc esi
mov eax, dword [ebp - 0x424]
movsx ax, byte [eax + ecx]
mov word [edi], ax
mov eax, ebx
sub edi, 2
or eax, edx
jne 0x408610
jmp 0x4085ee
mov eax, 0x30
lea edi, [ebp - 0x18]
mov word [ebp - 0x16], ax
lea esi, [eax - 0x2f]
jmp 0x4085f4
test eax, 0x20000
mov edx, 1
cmovne ecx, edx
and eax, 0x50000
cmp eax, 0x40000
jne 0x408699
mov eax, dword [ebp - 0x438]
movzx edx, word [eax + 6]
lea eax, [ecx + esi]
cmp eax, edx
jae 0x408699
or dword [ebp - 0x42c], 4
mov eax, edx
sub eax, ecx
sub eax, esi
mov dword [ebp - 0x46c], eax
add ecx, eax
lea eax, ds:[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 - 0x428], ecx
cmp eax, ecx
jae 0x40874c
add eax, eax
mov edx, ecx
cmp eax, ecx
cmovae edx, eax
mov dword [ebp - 0x420], edx
lea ecx, [edx + 0xa]
mov edx, dword [0x46ccf8]
call fcn.004060e0
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.00423850
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40872e
call fcn.004061c0
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]
mov ecx, dword [eax]
jmp 0x408752
mov ecx, dword [ebp - 0x434]
mov eax, dword [ebp - 0x42c]
test al, 1
je 0x408763
mov ecx, 0x2d
jmp 0x408770
test ecx, 0x20000
je 0x408776
mov ecx, 0x2b
mov word [ebx], cx
add ebx, 2
test al, 4
je 0x40879f
mov edx, dword [ebp - 0x46c]
test edx, edx
je 0x40879c
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.00423850
mov eax, dword [ebp - 0x428]
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x430], ebx
jmp 0x4091b4
mov dword [ebp - 0x42c], 0
fstp st(1)
fstp st(0)
test dl, 0x40
je 0x4087ef
movzx edx, word ds:[esi + 4]
cmp edx, 0xa2
jbe 0x4087f4
mov edx, 0xa2
jmp 0x4087f4
mov edx, 6
fld qword [esi + 0x10]
sub esp, 0x10
mov edi, dword [ebp - 0x434]
lea esi, [ebp - 0x413]
mov eax, esi
mov dword [ebp - 0x424], esi
mov ecx, edi
fstp qword [esp + 8]
push eax
call fcn.0041a0e0
test al, al
jne 0x408826
mov byte [ebp - 0x413], al
jmp 0x408888
mov edx, dword [0x46ce94]
test edx, edx
je 0x408859
mov al, byte ds:[ebp - 0x413]
lea ecx, [ebp - 0x413]
test al, al
je 0x408859
cmp al, 0x2e
je 0x408852
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x408844
jmp 0x408859
mov al, byte [0x46bd34]
mov byte [ecx], al
lea esp, [esp]
test edi, 0x20000000
je 0x408888
lea eax, [ebp - 0x413]
test edx, edx
je 0x40887e
push edx
push eax
call fcn.00427b17
add esp, 8
jmp 0x408888
push eax
call fcn.00427abb
add esp, 4
mov eax, dword ds:[ebp - 0x438]
mov edx, dword ds:[eax]
mov dword [ebp - 0x428], edx
test edx, 0x8000
je 0x40892a
mov al, byte ds:[ebp - 0x413]
lea ecx, [ebp - 0x413]
mov ah, byte [0x46bd34]
test al, al
je 0x4088d0
cmp al, ah
je 0x4088d0
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4088c4
mov al, byte [ecx]
inc ecx
test al, al
je 0x40892a
mov al, byte [ecx]
test al, al
je 0x4088f0
lea ecx, [ecx]
cmp al, 0x65
je 0x4088f0
cmp al, 0x45
je 0x4088f0
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4088e0
mov al, byte [ecx - 1]
mov esi, ecx
dec ecx
cmp al, 0x30
jne 0x408908
lea ebx, [ebx]
mov al, byte [ecx - 1]
dec ecx
cmp al, 0x30
je 0x408900
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 0x408910
mov esi, dword [ebp - 0x424]
mov edx, dword [ebp - 0x428]
lea edi, [ebp - 0x413]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x408933
sub edi, ecx
cmp byte [ebp - 0x413], 0x2d
mov dword [ebp - 0x428], edi
jne 0x408964
dec edi
mov dword [ebp - 0x42c], 1
lea esi, [ebp - 0x412]
mov dword [ebp - 0x428], edi
jmp 0x40897e
mov ecx, dword [ebp - 0x42c]
test edx, 0x20000
mov eax, 2
cmovne ecx, eax
mov dword [ebp - 0x42c], ecx
mov eax, edx
and eax, 0x13000
cmp eax, 0x10000
jne 0x408b4a
mov al, byte ds:[esi]
mov ecx, esi
sub al, 0x30
mov dword [ebp - 0x448], esi
cmp al, 0xa
jae 0x4089b4
mov al, byte [ecx + 1]
inc ecx
sub al, 0x30
cmp al, 0xa
jb 0x4089a4
mov dword [ebp - 0x448], ecx
sub ecx, esi
mov dword [ebp - 0x428], ecx
lea ecx, [ecx + 2]
mov dword [ebp - 0x424], ecx
je 0x4089d5
mov eax, 0xaaaaaaab
mul ecx
mov eax, edx
shr eax, 1
dec eax
jmp 0x4089dd
xor eax, eax
mov dword [ebp - 0x424], ecx
lea ecx, [eax + edi]
mov dword [ebp - 0x440], eax
add ecx, ecx
cmp dword [ebp - 0x42c], 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 0x408a85
add eax, eax
mov edx, ecx
cmp eax, ecx
cmovae edx, eax
mov dword [ebp - 0x420], edx
lea ecx, [edx + 0xa]
mov edx, dword [0x46ccf8]
call fcn.004060e0
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.00423850
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x408a71
call fcn.004061c0
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 - 0x424]
xor edx, edx
div dword [ebp - 0x460]
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 0x428]
test al, 1
je 0x408aab
mov eax, 0x2d
jmp 0x408ab4
test al, 2
je 0x408aba
mov eax, 0x2b
mov word [ebx], ax
add ebx, 2
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x408b00
movsx ax, byte [esi]
dec ecx
inc esi
mov word [ebx], ax
mov eax, edx
add ebx, 2
dec edx
test eax, eax
jne 0x408af6
test ecx, ecx
je 0x408afa
movzx eax, word [0x46bd78]
dec ecx
mov word [ebx], ax
mov edx, 1
movsx eax, byte [esi]
mov word [ebx + 2], ax
add ebx, 4
inc esi
test ecx, ecx
jne 0x408ac4
mov eax, dword [ebp - 0x428]
cmp dword [ebp - 0x42c], 0
mov ecx, ebx
mov esi, dword [ebp - 0x418]
je 0x408b14
add esi, 2
mov edx, edi
sub edx, eax
mov eax, dword [ebp - 0x440]
add eax, edi
push ecx
lea ebx, [ebx + edx*2]
lea esi, [esi + eax*2]
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], esi
mov esi, dword [ebp - 0x448]
mov ecx, esi
call fcn.00407380
jmp 0x4091ae
mov eax, dword [ebp - 0x438]
xor ecx, ecx
cmp dword [ebp - 0x42c], ecx
setne cl
test dword [eax], 0x40000
mov edx, ecx
je 0x408b94
movzx eax, word [eax + 6]
mov dword [ebp - 0x424], eax
lea eax, [ecx + edi]
cmp eax, dword [ebp - 0x424]
jae 0x408b94
mov eax, dword [ebp - 0x424]
or dword [ebp - 0x42c], 4
sub eax, ecx
sub eax, edi
mov dword [ebp - 0x45c], eax
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x418]
lea eax, [edx + edi]
lea edx, [ecx + eax*2]
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x424], edx
cmp eax, edx
jae 0x408c34
add eax, eax
mov ecx, edx
cmp eax, edx
mov edx, dword [0x46ccf8]
cmovae ecx, eax
mov dword [ebp - 0x420], ecx
add ecx, 0xa
call fcn.004060e0
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.00423850
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x408c1a
call fcn.004061c0
mov ecx, dword [ebp - 0x418]
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 0x424]
shr ecx, 1
mov dword [ebp - 0x41c], ebx
lea ebx, [eax + ecx*2]
mov eax, dword [ebp - 0x42c]
test al, 1
je 0x408c45
mov ecx, 0x2d
jmp 0x408c4e
test al, 2
je 0x408c54
mov ecx, 0x2b
mov word [ebx], cx
add ebx, 2
test al, 4
je 0x408c85
mov eax, dword ds:[ebp - 0x45c]
test eax, eax
je 0x408c82
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 edi, dword [ebp - 0x428]
mov eax, dword [ebp - 0x45c]
lea ebx, [ebx + eax*2]
mov ecx, ebx
mov dword [ebp - 0x418], edx
push ecx
lea ebx, [ebx + edi*2]
mov edx, edi
mov ecx, esi
mov dword [ebp - 0x430], ebx
call fcn.00407380
jmp 0x4091ae
mov eax, dword [ebp - 0x438]
xor edi, edi
mov esi, dword [esi + 0x10]
mov dword [ebp - 0x474], esi
mov dword [ebp - 0x47c], edi
mov edx, dword [eax + 0x14]
mov eax, edx
mov ecx, edx
mov dword [ebp - 0x430], edi
and eax, 0x7fffffff
and ecx, 0x80000000
or esi, edx
mov dword [ebp - 0x470], eax
fild qword [ebp - 0x474]
mov dword [ebp - 0x478], ecx
fild qword [ebp - 0x47c]
fchs
faddp st(1)
jne 0x408da7
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 0x408d89
mov edx, dword [0x46ccf8]
add eax, eax
cmp eax, edi
mov ebx, edi
cmovae ebx, eax
mov dword [ebp - 0x420], ebx
lea ecx, [ebx + 0xa]
call fcn.004060e0
mov esi, eax
xor ecx, ecx
lea eax, [esi + 8]
mov dword [esi], ebx
mov dword [esi + 4], eax
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.00423850
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x408d7b
call fcn.004061c0
mov eax, dword [esi + 4]
shr ebx, 1
mov dword [ebp - 0x41c], esi
lea ebx, [eax + ebx*2]
mov eax, 0x30
mov word [ebx], ax
add ebx, 2
mov eax, edi
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], eax
jmp 0x4091b4
mov edx, dword [ebp - 0x434]
mov esi, dword [ebp - 0x438]
test edx, 0x100
je 0x408dc2
movzx ecx, byte ds:[esi + 0xa]
jmp 0x408dc5
or ecx, 0xffffffff
fcomi st(2)
jb 0x408ddf
cmp edi, 7
jae 0x408dd9
cmp edi, ecx
jae 0x408dd9
fmul st(1)
inc edi
fcomi st(2)
jae 0x408dc9
mov dword [ebp - 0x430], edi
fstp st(2)
fstp st(0)
test dl, 0x40
je 0x408dee
movzx eax, word [esi + 4]
jmp 0x408df3
mov eax, 2
movzx edx, ax
lea edi, [ebp - 0x413]
cmp edx, 0xa2
mov dword [ebp - 0x448], 0
mov eax, 0xa2
mov ecx, 0x1804b
cmova edx, eax
sub esp, 0x10
mov eax, edi
fstp qword [esp + 8]
push eax
call fcn.0041a0e0
test al, al
jne 0x408e36
xor dl, dl
mov byte [ebp - 0x413], dl
jmp 0x408e6d
cmp dword [0x46ce94], 0
mov dl, byte [ebp - 0x413]
je 0x408e6d
lea ecx, [ebp - 0x413]
test dl, dl
je 0x408e6d
mov al, dl
cmp al, 0x2e
je 0x408e5f
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x408e51
jmp 0x408e6d
mov ax, word [0x46bd34]
mov byte [ecx], al
mov dl, byte [ebp - 0x413]
lea ecx, [ebp - 0x413]
test dl, dl
je 0x408e90
mov al, dl
lea esp, [esp]
cmp al, byte [0x46bd34]
je 0x408e90
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x408e80
mov al, byte [ecx]
inc ecx
test al, al
je 0x408eea
mov al, byte ds:[ecx]
test al, al
je 0x408eb4
cmp al, 0x65
je 0x408eb4
cmp al, 0x45
je 0x408eb4
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x408ea4
mov al, byte [ecx - 1]
mov esi, ecx
dec ecx
cmp al, 0x30
jne 0x408ec8
mov edi, edi
mov al, byte [ecx - 1]
dec ecx
cmp al, 0x30
je 0x408ec0
cmp al, byte [0x46bd34]
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 0x408ed4
mov dl, byte [ebp - 0x413]
lea esi, [ebp - 0x413]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x408ef3
sub esi, ecx
mov dword [ebp - 0x42c], esi
cmp dl, 0x2d
jne 0x408f24
mov dl, byte [ebp - 0x412]
lea edi, [ebp - 0x412]
dec esi
mov dword [ebp - 0x448], 1
mov dword [ebp - 0x42c], esi
sub dl, 0x30
mov dword [ebp - 0x440], edi
mov ecx, edi
cmp dl, 0xa
jae 0x408f44
mov al, byte [ecx + 1]
inc ecx
sub al, 0x30
cmp al, 0xa
jb 0x408f34
mov dword [ebp - 0x440], ecx
sub ecx, edi
mov dword [ebp - 0x428], ecx
lea ecx, [ecx + 2]
mov dword [ebp - 0x424], ecx
je 0x408f65
mov eax, 0xaaaaaaab
mul ecx
mov eax, edx
shr eax, 1
dec eax
jmp 0x408f6d
xor eax, eax
mov dword [ebp - 0x424], ecx
lea ecx, [eax + esi]
mov dword [ebp - 0x434], eax
add ecx, ecx
cmp dword [ebp - 0x448], 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 0x409019
add eax, eax
mov edx, ecx
cmp eax, ecx
cmovae edx, eax
mov dword [ebp - 0x420], edx
lea ecx, [edx + 0xa]
mov edx, dword [0x46ccf8]
call fcn.004060e0
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.00423850
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x409005
lea esp, [esp]
call fcn.004061c0
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 - 0x424]
xor edx, edx
div dword [ebp - 0x460]
cmp dword [ebp - 0x448], 0
mov ecx, dword [ebp - 0x428]
je 0x409041
mov eax, 0x2d
mov word [ebx], ax
add ebx, 2
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x40908d
nop
movsx ax, byte ds:[edi]
dec ecx
inc edi
mov word [ebx], ax
mov eax, edx
add ebx, 2
dec edx
test eax, eax
jne 0x409083
test ecx, ecx
je 0x409087
movzx eax, word [0x46bd78]
dec ecx
mov word [ebx], ax
mov edx, 1
movsx eax, byte [edi]
mov word [ebx + 2], ax
add ebx, 4
inc edi
test ecx, ecx
jne 0x409050
mov eax, dword [ebp - 0x428]
cmp dword [ebp - 0x448], 0
je 0x40909d
add dword [ebp - 0x418], 2
mov ecx, dword [ebp - 0x440]
sub esi, eax
push ebx
mov edx, esi
call fcn.00407380
mov eax, dword [ebp - 0x42c]
lea edi, [ebx + esi*2]
add eax, dword [ebp - 0x434]
mov ecx, dword [ebp - 0x418]
mov esi, dword [ebp - 0x430]
mov edx, dword [ebp - 0x420]
lea ebx, [ecx + eax*2]
mov ecx, dword [esi*8 + 0x46bd40]
mov dword [ebp - 0x424], ebx
lea eax, [ecx + 2]
add eax, ebx
cmp edx, eax
jae 0x409160
add ecx, 2
lea eax, [edx + edx]
mov edx, dword [0x46ccf8]
add ecx, ebx
cmp eax, ecx
cmovae ecx, eax
mov dword [ebp - 0x420], ecx
add ecx, 0xa
call fcn.004060e0
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.00423850
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x409150
call fcn.004061c0
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 + 0x46bd40]
push dword [esi*8 + 0x46bd44]
push eax
call fcn.00423850
mov ecx, dword [esi*8 + 0x46bd40]
add esp, 0xc
lea eax, [ecx + 2]
shr eax, 1
lea ebx, [edi + eax*2]
mov eax, dword [ebp - 0x424]
add eax, 2
mov dword [ebp - 0x430], ebx
add eax, ecx
mov dword [ebp - 0x418], eax
jmp 0x4091b4
fstp st(1)
fstp st(0)
mov eax, dword [ebp - 0x418]
mov edx, dword [ebp - 0x438]
mov edi, eax
sub edi, dword [ebp - 0x450]
test dword [edx], 0xc0000000
je 0x40931f
movzx esi, word [edx + 6]
add esi, esi
cmp edi, esi
jae 0x40931f
sub esi, edi
lea ecx, [esi + eax]
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x440], ecx
cmp eax, ecx
jae 0x409275
add eax, eax
mov edx, ecx
cmp eax, ecx
cmovae edx, eax
mov dword [ebp - 0x420], edx
lea ecx, [edx + 0xa]
mov edx, dword [0x46ccf8]
call fcn.004060e0
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.00423850
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40925b
call fcn.004061c0
mov ecx, dword [ebp - 0x418]
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 0x438]
shr ecx, 1
mov dword [ebp - 0x41c], ebx
lea ebx, [eax + ecx*2]
mov ecx, dword [edx]
test cl, cl
jns 0x409282
movzx eax, word ds:[edx + 8]
jmp 0x409287
mov eax, 0x20
shr esi, 1
mov dword [ebp - 0x424], eax
test ecx, ecx
jns 0x4092b5
test esi, esi
je 0x4092ae
movzx edx, ax
mov ecx, esi
mov eax, edx
mov edi, ebx
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 0x40930b
mov eax, edi
mov ecx, ebx
and eax, 0xfffffffe
sub ecx, eax
lea eax, [esi + esi]
push edi
mov dword [ebp - 0x428], eax
add eax, ecx
push ecx
push eax
lfence
mov dword [ebp - 0x450], ecx
call fcn.00423850
add esp, 0xc
test esi, esi
je 0x409305
mov eax, dword [ebp - 0x424]
mov ecx, esi
mov edi, dword [ebp - 0x450]
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 - 0x428]
mov eax, dword [ebp - 0x440]
add ebx, esi
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], eax
mov esi, dword [ebp - 0x464]
fld qword [ebp - 0x484]
fld qword [ebp - 0x48c]
mov edi, dword [ebp - 0x420]
test esi, esi
jne 0x407e59
mov edx, dword [ebp - 0x41c]
xor esi, esi
pop edi
fstp st(1)
fstp st(0)
mov ecx, dword [edx + 4]
mov dword [edx], eax
shr eax, 1
mov word [ecx + eax*2], si
mov eax, edx
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.00420701
mov esp, ebp
pop ebp
ret 4