Function at 0x4078a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x490
mov eax, dword [0x46a040]
xor eax, ebp
mov dword [ebp - 8], eax
mov edx, dword [0x46bce8]
push ebx
push esi
mov esi, 2
mov dword [ebp - 0x454], ecx
push edi
lea ecx, [esi + 0x2e]
call fcn.00405c60
mov ecx, eax
xor edx, edx
lea eax, [ecx + 8]
mov dword [ebp - 0x41c], ecx
mov edi, 0x26
mov dword [ebp - 0x424], edi
mov dword [ecx + 4], eax
mov dword [ecx], 0x26
mov word [eax + 0x26], dx
xor eax, eax
test byte [0x46ad1c], 1
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], eax
jne 0x407a01
mov ecx, 0x46ad1c
lock bts dword ds:[ecx], 0x1f
setb al
test al, al
jne 0x407a70
push 4
lea eax, [ebp - 0x10]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x407955
mov ax, word [ebp - 0x10]
test ax, ax
je 0x407955
cmp word [ebp - 0xe], 0
jne 0x407955
mov word [0x46ad24], ax
push 4
lea eax, [ebp - 0x10]
push eax
push 0xf
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x407982
mov ax, word [ebp - 0x10]
test ax, ax
je 0x407982
cmp word [ebp - 0xe], 0
jne 0x407982
mov word [0x46ad68], ax
cmp word [0x46ad24], 0x2e
je 0x4079a0
push 0x4630d0
push 0
call fcn.00427feb
add esp, 8
mov dword [0x46be84], eax
mov eax, 0x46ad1c
lock bts dword [eax], 0
setb al
test al, al
jne 0x4079ff
mov esi, dword [0x46ad20]
test esi, esi
je 0x4079c6
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
mov ecx, 0x46ad1c
lock xadd dword [ecx], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x4079fa
test esi, esi
je 0x4079fa
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x46ad20], 0
mov esi, 2
xor eax, eax
fld qword [0x467c10]
fst qword [ebp - 0x484]
fld qword [0x467c00]
fst qword [ebp - 0x48c]
mov dword [ebp - 0x45c], 3
mov ecx, dword ds:[ebp - 0x454]
dec esi
mov dword [ebp - 0x460], esi
mov esi, ecx
mov dword [ebp - 0x44c], eax
add ecx, 0x18
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x454], ecx
mov edx, dword [esi]
mov eax, edx
and eax, 0x3f
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x448], edx
cmp eax, 0xc
ja case.default.0x407a69
jmp dword [eax*4 + 0x408fbc]
test byte [0x46ad1c], 1
jne 0x4079ff
call fcn.00415020
mov edi, edi
jmp 0x4079ff
mov edi, dword [ebp - 0x418]
fstp st(1)
mov eax, dword [ebp - 0x424]
add edi, 2
fstp st(0)
cmp eax, edi
jae 0x407b19
mov edx, dword [0x46bce8]
add eax, eax
cmp eax, edi
mov ebx, edi
cmovae ebx, eax
mov dword [ebp - 0x424], ebx
lea ecx, [ebx + 0xa]
call fcn.00405c60
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.00421ff0
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x407b05
lea esp, [esp]
call fcn.00405d40
mov eax, dword [esi + 4]
shr ebx, 1
mov dword [ebp - 0x41c], esi
mov esi, dword [ebp - 0x43c]
lea ebx, [eax + ebx*2]
mov ax, word [esi + 0x10]
mov word [ebx], ax
add ebx, 2
mov eax, edi
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], eax
jmp 0x408e09
mov ecx, dword [esi + 0x10]
fstp st(1)
mov edi, dword [ebp - 0x418]
fstp st(0)
mov eax, dword [ebp - 0x424]
add ecx, edi
cmp eax, ecx
jae 0x407bbb
mov edx, dword [0x46bce8]
add eax, eax
cmp eax, ecx
mov ebx, ecx
cmovae ebx, eax
mov dword [ebp - 0x424], ebx
lea ecx, [ebx + 0xa]
call fcn.00405c60
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.00421ff0
add esp, 0xc
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x407ba5
nop
call fcn.00405d40
mov eax, dword [esi + 4]
mov ecx, edi
shr ecx, 1
mov dword [ebp - 0x41c], esi
mov esi, dword [ebp - 0x43c]
lea ebx, [eax + ecx*2]
push dword [esi + 0x10]
push dword [esi + 0x14]
push ebx
call fcn.00421ff0
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 - 0x434], ebx
mov dword [ebp - 0x418], eax
jmp 0x408e09
mov ecx, dword [esi + 0x10]
fstp st(1)
fstp st(0)
call fcn.004065a0
mov ecx, dword [ebp - 0x418]
lea esi, [eax + eax]
add ecx, esi
mov dword [ebp - 0x428], ecx
cmp edi, ecx
jae 0x407c7d
mov edx, dword [0x46bce8]
lea eax, [edi + edi]
cmp eax, ecx
mov ebx, ecx
cmovae ebx, eax
mov dword [ebp - 0x424], ebx
lea ecx, [ebx + 0xa]
call fcn.00405c60
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.00421ff0
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x407c6f
call fcn.00405d40
mov eax, dword [edi + 4]
shr ebx, 1
mov dword [ebp - 0x41c], edi
lea ebx, [eax + ebx*2]
mov ecx, dword [ebp - 0x43c]
push esi
push dword [ecx + 0x10]
push ebx
call fcn.00421ff0
mov eax, dword [ebp - 0x428]
add esp, 0xc
shr esi, 1
mov dword [ebp - 0x418], eax
lea ebx, [ebx + esi*2]
mov dword [ebp - 0x434], ebx
jmp 0x408e09
fstp st(1)
fstp st(0)
cmp edx, 3
jne 0x407cc3
mov ecx, dword [esi + 0x14]
mov esi, dword [esi + 0x10]
mov dword [ebp - 0x420], ecx
jmp 0x407cda
mov ecx, dword [esi + 0x10]
mov esi, ecx
mov dword [ebp - 0x420], ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x407cd1
sub esi, edx
push esi
push ecx
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.ntdll.dll_RtlMultiByteToUnicodeSize]
test eax, eax
js 0x408e03
mov ecx, dword [ebp - 0x418]
lfence
mov eax, dword [ebp - 0x450]
add ecx, eax
cmp edi, ecx
jae 0x407d85
mov edx, dword [0x46bce8]
lea eax, ds:[edi + edi]
cmp eax, ecx
mov ebx, ecx
cmovae ebx, eax
mov dword [ebp - 0x424], ebx
lea ecx, [ebx + 0xa]
call fcn.00405c60
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.00421ff0
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x407d69
call fcn.00405d40
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 - 0x450]
mov dword [ebp - 0x434], ebx
push esi
push dword [ebp - 0x420]
push 0
push eax
push ebx
call dword [sym.imp.ntdll.dll_RtlMultiByteToUnicodeN]
test eax, eax
js 0x408e03
mov eax, dword [ebp - 0x450]
shr eax, 1
lea ebx, [ebx + eax*2]
mov eax, dword [ebp - 0x418]
add eax, dword [ebp - 0x450]
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], eax
jmp 0x408e09
mov ecx, 0x10
mov eax, esi
mov eax, dword [eax + ecx]
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 - 0x448]
jmp 0x407ded
mov ecx, dword [esi + 0x10]
fstp st(1)
fstp st(0)
mov dword ds:[ebp - 0x420], 0xa
test edx, 0x100
je 0x407e1c
mov al, byte [esi + 0xa]
cmp al, 2
jb 0x407e1c
cmp al, 0x45
ja 0x407e1c
movzx eax, al
mov dword [ebp - 0x420], 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 0x407f14
test edx, 0x10000
je 0x407ee3
xor eax, eax
mov dword [ebp - 0x430], eax
lea esp, [esp]
mov eax, ecx
xor edx, edx
div dword [ebp - 0x420]
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 - 0x430]
inc eax
mov dword [ebp - 0x430], eax
cmp eax, 3
jne 0x407ec8
test ecx, ecx
je 0x407ecc
movzx eax, word [0x46ad68]
xor edx, edx
mov word [edi], ax
mov eax, ecx
div dword [ebp - 0x420]
mov dword [ebp - 0x430], 1
mov ecx, eax
mov eax, dword [ebp - 0x438]
movsx eax, byte [edx + eax]
mov word [edi - 2], ax
add edi, 0xfffffffc
add esi, 2
test ecx, ecx
jne 0x407e60
mov edx, dword [ebp - 0x448]
xor ecx, ecx
cmp dword [ebp - 0x42c], ecx
je 0x407f25
mov ecx, 1
jmp 0x407f33
mov ebx, dword [ebp - 0x438]
lea esp, [esp]
mov eax, ecx
xor edx, edx
div dword [ebp - 0x420]
inc esi
mov ecx, eax
movsx ax, byte [ebx + edx]
mov word [edi], ax
sub edi, 2
test ecx, ecx
jne 0x407ef0
mov ebx, dword [ebp - 0x434]
jmp 0x407ecc
mov eax, 0x30
lea edi, [ebp - 0x18]
mov word [ebp - 0x16], ax
lea esi, [eax - 0x2f]
jmp 0x407ed2
test edx, 0x20000
mov eax, 1
cmovne ecx, eax
and edx, 0x50000
cmp edx, 0x40000
jne 0x407f6e
mov eax, dword [ebp - 0x43c]
movzx edx, word [eax + 6]
lea eax, [ecx + esi]
cmp eax, edx
jae 0x407f6e
or dword [ebp - 0x42c], 4
mov eax, edx
sub eax, ecx
sub eax, esi
mov dword [ebp - 0x464], eax
add ecx, eax
lea eax, [ecx + esi]
add edi, 2
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x428], edi
lea ecx, [ecx + eax*2]
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x420], ecx
cmp eax, ecx
jae 0x408019
add eax, eax
mov edx, ecx
cmp eax, ecx
cmovae edx, eax
mov dword [ebp - 0x424], edx
lea ecx, [edx + 0xa]
mov edx, dword [0x46bce8]
call fcn.00405c60
mov edx, dword ds:[ebp - 0x424]
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.00421ff0
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x408005
lea esp, [esp]
call fcn.00405d40
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 - 0x42c]
test al, 1
je 0x40802b
mov ecx, 0x2d
jmp 0x40803e
mov ecx, dword [ebp - 0x43c]
test dword [ecx], 0x20000
je 0x408044
mov ecx, 0x2b
mov word [ebx], cx
add ebx, 2
test al, 4
je 0x40806d
mov edx, dword [ebp - 0x464]
test edx, edx
je 0x40806a
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 - 0x428]
lea ebx, [ebx + edx*2]
add esi, esi
push esi
push edi
push ebx
call fcn.00421ff0
mov eax, dword [ebp - 0x420]
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x434], ebx
jmp 0x408e09
mov eax, dword [ebp - 0x43c]
fstp st(1)
mov esi, dword [esi + 0x10]
fstp st(0)
mov dword [ebp - 0x444], esi
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x420], ecx
test ecx, ecx
jg 0x4080e8
jl 0x4080b9
test esi, esi
jae 0x4080e8
neg esi
mov dword [ebp - 0x42c], 1
adc ecx, 0
neg ecx
jmp 0x4080dc
mov eax, dword [ebp - 0x43c]
fstp st(1)
mov esi, dword [esi + 0x10]
fstp st(0)
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x444], esi
mov dword ds:[ebp - 0x430], 0xa
mov dword [ebp - 0x438], 0
test edx, 0x100
je 0x408152
mov al, byte ds:[eax + 0xa]
mov dword [ebp - 0x430], 0xa
mov dword [ebp - 0x438], 0
cmp al, 2
jb 0x408152
mov dword [ebp - 0x430], 0xa
mov dword [ebp - 0x438], 0
cmp al, 0x45
ja 0x408152
movzx eax, al
cdq
mov dword [ebp - 0x438], edx
mov edx, dword [ebp - 0x448]
mov dword [ebp - 0x430], eax
test edx, 0x20000000
mov dword [ebp - 0x440], 0
mov edi, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_________._:_________
mov eax, str.0123456789abcdefghijklmnopqrstuvwxyz_________._:_________
cmovne eax, edi
lea edi, [ebp - 0x16]
mov dword [ebp - 0x428], eax
mov eax, esi
or eax, ecx
je 0x4082c5
test edx, 0x10000
je 0x40824e
xor eax, eax
mov dword [ebp - 0x434], eax
lea ebx, [ebx]
push dword [ebp - 0x438]
push dword [ebp - 0x430]
push ecx
push esi
call fcn.0043d0b0
push dword [ebp - 0x438]
mov esi, eax
mov eax, dword [ebp - 0x444]
push dword [ebp - 0x430]
push dword [ebp - 0x420]
push eax
call fcn.0043d040
mov dword [ebp - 0x444], eax
mov ecx, edx
mov eax, dword [ebp - 0x428]
mov edx, dword [ebp - 0x440]
inc edx
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x440], edx
movsx ax, byte [eax + esi]
mov esi, dword [ebp - 0x444]
mov word [edi], ax
sub edi, 2
mov eax, dword [ebp - 0x434]
inc eax
cmp eax, 3
jne 0x408233
mov eax, esi
or eax, ecx
je 0x4082dc
mov ax, word [0x46ad68]
mov word [edi], ax
sub edi, 2
inc edx
mov dword [ebp - 0x440], edx
jmp 0x408192
mov dword [ebp - 0x434], eax
mov eax, esi
or eax, ecx
mov dword [ebp - 0x440], edx
jne 0x4081a0
jmp 0x4082dc
mov ebx, dword [ebp - 0x430]
push dword ds:[ebp - 0x438]
push ebx
push ecx
push esi
call fcn.0043d0b0
push dword ds:[ebp - 0x438]
mov esi, eax
mov eax, dword [ebp - 0x444]
push ebx
push dword [ebp - 0x420]
push eax
call fcn.0043d040
mov dword [ebp - 0x444], eax
mov ecx, edx
mov eax, dword [ebp - 0x428]
mov edx, dword [ebp - 0x440]
inc edx
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x440], edx
movsx ax, byte [eax + esi]
mov esi, dword [ebp - 0x444]
mov word [edi], ax
mov eax, esi
sub edi, 2
or eax, ecx
jne 0x408254
mov ebx, dword [ebp - 0x434]
jmp 0x4082dc
mov eax, 0x30
lea edi, [ebp - 0x18]
mov edx, 1
mov word [ebp - 0x16], ax
mov dword [ebp - 0x440], edx
mov eax, dword [ebp - 0x448]
xor ecx, ecx
cmp dword [ebp - 0x42c], ecx
je 0x4082f3
mov ecx, 1
jmp 0x408300
test eax, 0x20000
mov esi, 1
cmovne ecx, esi
and eax, 0x50000
cmp eax, 0x40000
jne 0x408332
mov eax, dword [ebp - 0x43c]
movzx esi, word [eax + 6]
lea eax, [ecx + edx]
cmp eax, esi
jae 0x408332
or dword [ebp - 0x42c], 4
mov eax, esi
sub eax, ecx
sub eax, edx
mov dword [ebp - 0x468], eax
add ecx, eax
lea eax, [ecx + edx]
add edi, 2
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x428], edi
lea ecx, [ecx + eax*2]
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x420], ecx
cmp eax, ecx
jae 0x4083cc
mov edx, dword [0x46bce8]
add eax, eax
cmp eax, ecx
mov ebx, ecx
cmovae ebx, eax
mov dword [ebp - 0x424], ebx
lea ecx, [ebx + 0xa]
call fcn.00405c60
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.00421ff0
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4083b8
call fcn.00405d40
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x440]
shr ebx, 1
mov dword [ebp - 0x41c], esi
lea ebx, [eax + ebx*2]
mov eax, dword [ebp - 0x42c]
test al, 1
je 0x4083dd
mov ecx, 0x2d
jmp 0x4083f0
mov ecx, dword [ebp - 0x43c]
test dword [ecx], 0x20000
je 0x4083f6
mov ecx, 0x2b
mov word [ebx], cx
add ebx, 2
test al, 4
je 0x40841f
mov esi, dword [ebp - 0x468]
test esi, esi
je 0x40841c
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 - 0x428]
lea ebx, [ebx + esi*2]
lea esi, [edx + edx]
push esi
push edi
push ebx
call fcn.00421ff0
mov eax, dword [ebp - 0x420]
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x434], ebx
jmp 0x408e09
mov dword [ebp - 0x42c], 0
fstp st(1)
fstp st(0)
test dl, 0x40
je 0x40846f
movzx edx, word ds:[esi + 4]
cmp edx, 0xa2
jbe 0x408474
mov edx, 0xa2
jmp 0x408474
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 - 0x428], edi
mov ecx, esi
fstp qword [esp + 8]
push eax
call fcn.00419be0
test al, al
jne 0x4084a6
mov byte [ebp - 0x413], al
jmp 0x408508
mov edx, dword [0x46be84]
test edx, edx
je 0x4084d9
mov al, byte ds:[ebp - 0x413]
lea ecx, [ebp - 0x413]
test al, al
je 0x4084d9
cmp al, 0x2e
je 0x4084d2
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4084c4
jmp 0x4084d9
mov al, byte [0x46ad24]
mov byte [ecx], al
lea esp, [esp]
test esi, 0x20000000
je 0x408508
lea eax, [ebp - 0x413]
test edx, edx
je 0x4084fe
push edx
push eax
call fcn.00427797
add esp, 8
jmp 0x408508
push eax
call fcn.0042773b
add esp, 4
mov eax, dword [ebp - 0x43c]
mov edx, dword [eax]
mov dword [ebp - 0x420], edx
test edx, 0x8000
je 0x408594
mov al, byte [ebp - 0x413]
lea ecx, [ebp - 0x413]
mov ah, byte [0x46ad24]
test al, al
je 0x408544
cmp al, ah
je 0x408544
mov al, byte ds:[ecx + 1]
inc ecx
test al, al
jne 0x408534
mov al, byte [ecx]
inc ecx
test al, al
je 0x408594
mov al, byte [ecx]
test al, al
je 0x408564
cmp al, 0x65
je 0x408564
cmp al, 0x45
je 0x408564
mov al, byte ds:[ecx + 1]
inc ecx
test al, al
jne 0x408551
mov al, byte [ecx - 1]
mov esi, ecx
dec ecx
cmp al, 0x30
jne 0x408578
mov edi, edi
mov al, byte [ecx - 1]
dec ecx
cmp al, 0x30
je 0x408570
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 0x408580
mov edx, dword [ebp - 0x420]
lea esi, [ebp - 0x413]
lea ecx, [esi + 1]
lea ecx, [ecx]
mov al, byte [esi]
inc esi
test al, al
jne 0x4085a0
sub esi, ecx
cmp byte [ebp - 0x413], 0x2d
jne 0x4085cb
lea edi, [ebp - 0x412]
mov dword [ebp - 0x42c], 1
mov dword [ebp - 0x428], edi
dec esi
jmp 0x4085e5
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 0x4087aa
mov al, byte [edi]
mov ecx, edi
sub al, 0x30
mov dword [ebp - 0x438], edi
cmp al, 0xa
jae 0x408617
mov al, byte [ecx + 1]
inc ecx
sub al, 0x30
cmp al, 0xa
jb 0x408607
mov dword [ebp - 0x438], ecx
sub ecx, edi
mov dword [ebp - 0x420], ecx
lea ecx, [ecx + 2]
mov dword [ebp - 0x428], ecx
je 0x408638
mov eax, 0xaaaaaaab
mul ecx
mov eax, edx
shr eax, 1
dec eax
jmp 0x408640
xor eax, eax
mov dword [ebp - 0x428], ecx
lea ecx, [eax + esi]
mov dword [ebp - 0x430], 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 - 0x424]
cmp eax, ecx
jae 0x4086e8
add eax, eax
mov edx, ecx
cmp eax, ecx
cmovae edx, eax
mov dword [ebp - 0x424], edx
lea ecx, [edx + 0xa]
mov edx, dword [0x46bce8]
call fcn.00405c60
mov edx, dword [ebp - 0x424]
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.00421ff0
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4086d4
call fcn.00405d40
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 - 0x428]
xor edx, edx
div dword [ebp - 0x45c]
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 0x420]
test al, 1
je 0x40870d
mov eax, 0x2d
jmp 0x408716
test al, 2
je 0x40871c
mov eax, 0x2b
mov word [ebx], ax
add ebx, 2
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x408762
movsx ax, byte [edi]
dec ecx
inc edi
mov word [ebx], ax
mov eax, edx
add ebx, 2
dec edx
test eax, eax
jne 0x408758
test ecx, ecx
je 0x40875c
movzx eax, word [0x46ad68]
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 0x408726
mov eax, dword [ebp - 0x420]
cmp dword [ebp - 0x42c], 0
mov edi, ebx
mov ecx, dword [ebp - 0x418]
je 0x408776
add ecx, 2
mov edx, esi
sub edx, eax
mov eax, dword [ebp - 0x430]
add eax, esi
push edi
lea ebx, [ebx + edx*2]
lea ecx, [ecx + eax*2]
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], ecx
mov ecx, dword [ebp - 0x438]
call fcn.00406f40
jmp 0x408e03
mov eax, dword [ebp - 0x43c]
xor ecx, ecx
cmp dword [ebp - 0x42c], ecx
setne cl
test dword [eax], 0x40000
mov edx, ecx
je 0x4087e6
movzx edi, word [eax + 6]
lea eax, [esi + ecx]
cmp eax, edi
jae 0x4087e6
or dword [ebp - 0x42c], 4
mov eax, edi
sub eax, esi
sub eax, ecx
mov dword [ebp - 0x458], eax
lea edx, [eax + ecx]
mov ecx, dword ds:[ebp - 0x418]
lea eax, [edx + esi]
lea edx, [ecx + eax*2]
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x420], edx
cmp eax, edx
jae 0x40887d
add eax, eax
mov ebx, edx
cmp eax, edx
mov edx, dword [0x46bce8]
cmovae ebx, eax
mov dword [ebp - 0x424], ebx
lea ecx, [ebx + 0xa]
call fcn.00405c60
mov edi, eax
xor ecx, ecx
lea eax, [edi + 8]
mov dword [edi], ebx
mov dword [edi + 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 [edi + 4]
call fcn.00421ff0
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x408869
call fcn.00405d40
mov eax, dword [edi + 4]
mov edx, dword [ebp - 0x420]
shr ebx, 1
mov dword [ebp - 0x41c], edi
lea ebx, [eax + ebx*2]
mov eax, dword [ebp - 0x42c]
test al, 1
je 0x40888e
mov ecx, 0x2d
jmp 0x408897
test al, 2
je 0x40889d
mov ecx, 0x2b
mov word [ebx], cx
add ebx, 2
lea ecx, [ecx]
test al, 4
je 0x4088c9
mov eax, dword [ebp - 0x458]
test eax, eax
je 0x4088c6
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 - 0x458]
lea ebx, [ebx + eax*2]
mov ecx, dword [ebp - 0x428]
mov edi, ebx
mov dword [ebp - 0x418], edx
lea ebx, [ebx + esi*2]
mov edx, esi
mov dword [ebp - 0x434], ebx
push edi
call fcn.00406f40
jmp 0x408e03
mov eax, dword ds:[ebp - 0x43c]
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 - 0x444], 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 0x4089f1
mov edi, dword [ebp - 0x418]
fstp st(0)
mov eax, dword [ebp - 0x424]
add edi, 2
fstp st(1)
fstp st(0)
cmp eax, edi
jae 0x4089d3
mov edx, dword [0x46bce8]
add eax, eax
cmp eax, edi
mov ebx, edi
cmovae ebx, eax
mov dword [ebp - 0x424], ebx
lea ecx, [ebx + 0xa]
call fcn.00405c60
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.00421ff0
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4089c5
lea esp, [esp]
call fcn.00405d40
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 - 0x434], ebx
mov dword [ebp - 0x418], eax
jmp 0x408e09
mov edx, dword ds:[ebp - 0x448]
mov esi, dword [ebp - 0x43c]
test edx, 0x100
je 0x408a0e
movzx ecx, byte [esi + 0xa]
jmp 0x408a11
or ecx, 0xffffffff
fcomi st(2)
jb 0x408a2b
cmp edi, 7
jae 0x408a25
cmp edi, ecx
jae 0x408a25
fmul st(1)
inc edi
fcomi st(2)
jae 0x408a15
mov dword [ebp - 0x444], edi
fstp st(2)
fstp st(0)
test dl, 0x40
je 0x408a3a
movzx eax, word [esi + 4]
jmp 0x408a3f
mov eax, 2
movzx edx, ax
lea edi, [ebp - 0x413]
cmp edx, 0xa2
mov dword [ebp - 0x420], 0
mov eax, 0xa2
mov ecx, 0x1804b
cmova edx, eax
sub esp, 0x10
mov eax, edi
fstp qword [esp + 8]
push eax
call fcn.00419be0
test al, al
jne 0x408b71
xor ah, ah
mov byte [ebp - 0x413], ah
mov dx, word [0x46ad24]
lea ecx, [ebp - 0x413]
test ah, ah
je 0x408aa4
mov al, ah
cmp al, dl
je 0x408aa4
mov al, byte ds:[ecx + 1]
inc ecx
test al, al
jne 0x408a97
mov al, byte [ecx]
inc ecx
test al, al
je 0x408af8
mov al, byte [ecx]
test al, al
je 0x408ac4
cmp al, 0x65
je 0x408ac4
cmp al, 0x45
je 0x408ac4
mov al, byte ds:[ecx + 1]
inc ecx
test al, al
jne 0x408ab1
mov al, byte [ecx - 1]
mov esi, ecx
dec ecx
cmp al, 0x30
jne 0x408ad8
mov edi, edi
mov al, byte [ecx - 1]
dec ecx
cmp al, 0x30
je 0x408ad0
cmp al, byte [0x46ad24]
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 0x408ae4
mov ah, byte [ebp - 0x413]
lea esi, [ebp - 0x413]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x408b01
sub esi, ecx
mov dword [ebp - 0x440], esi
cmp ah, 0x2d
jne 0x408b2c
dec esi
mov dword [ebp - 0x420], 1
lea edi, [ebp - 0x412]
mov dword [ebp - 0x440], esi
mov al, byte [edi]
mov ecx, edi
sub al, 0x30
mov dword [ebp - 0x438], edi
cmp al, 0xa
jae 0x408b50
lea esp, [esp]
mov al, byte [ecx + 1]
inc ecx
sub al, 0x30
cmp al, 0xa
jb 0x408b40
mov dword [ebp - 0x438], ecx
sub ecx, edi
mov dword [ebp - 0x430], ecx
lea ecx, [ecx + 2]
mov dword [ebp - 0x428], ecx
je 0x408bbd
mov eax, 0xaaaaaaab
mul ecx
mov eax, edx
shr eax, 1
dec eax
jmp 0x408bc5
cmp dword [0x46be84], 0
mov ah, byte ds:[ebp - 0x413]
je 0x408a84
lea ecx, [ebp - 0x413]
test ah, ah
je 0x408a84
mov al, ah
cmp al, 0x2e
je 0x408ba9
mov al, byte ds:[ecx + 1]
inc ecx
test al, al
jne 0x408b96
jmp 0x408a84
mov dx, word [0x46ad24]
mov byte [ecx], dl
mov ah, byte [ebp - 0x413]
jmp 0x408a8b
xor eax, eax
mov dword [ebp - 0x428], ecx
lea ecx, [eax + esi]
mov dword [ebp - 0x448], eax
add ecx, ecx
cmp dword [ebp - 0x420], 0
lea eax, [ecx + 2]
cmove eax, ecx
mov ecx, dword [ebp - 0x418]
add ecx, eax
mov eax, dword [ebp - 0x424]
cmp eax, ecx
jae 0x408c6d
add eax, eax
mov edx, ecx
cmp eax, ecx
cmovae edx, eax
mov dword [ebp - 0x424], edx
lea ecx, [edx + 0xa]
mov edx, dword [0x46bce8]
call fcn.00405c60
mov ecx, dword [ebp - 0x424]
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.00421ff0
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x408c59
call fcn.00405d40
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 - 0x428]
xor edx, edx
div dword [ebp - 0x45c]
cmp dword [ebp - 0x420], 0
mov ecx, dword [ebp - 0x430]
je 0x408c95
mov eax, 0x2d
mov word [ebx], ax
add ebx, 2
mov eax, dword [ebp - 0x430]
test eax, eax
je 0x408cdc
nop
movsx ax, byte [edi]
dec ecx
inc edi
mov word [ebx], ax
mov eax, edx
add ebx, 2
dec edx
test eax, eax
jne 0x408cd2
test ecx, ecx
je 0x408cd6
movzx eax, word [0x46ad68]
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 0x408ca0
mov eax, dword [ebp - 0x430]
cmp dword [ebp - 0x420], 0
je 0x408cec
add dword [ebp - 0x418], 2
mov ecx, dword [ebp - 0x438]
sub esi, eax
push ebx
mov edx, esi
call fcn.00406f40
mov eax, dword [ebp - 0x440]
lea edi, [ebx + esi*2]
add eax, dword [ebp - 0x448]
mov ecx, dword [ebp - 0x418]
mov esi, dword [ebp - 0x444]
mov edx, dword [ebp - 0x424]
lea ebx, [ecx + eax*2]
mov ecx, dword [esi*8 + 0x46ad30]
mov dword [ebp - 0x428], ebx
lea eax, [ecx + 2]
add eax, ebx
cmp edx, eax
jae 0x408db5
add ecx, 2
lea eax, [edx + edx]
mov edx, dword [0x46bce8]
add ecx, ebx
cmp eax, ecx
cmovae ecx, eax
mov dword [ebp - 0x424], ecx
add ecx, 0xa
call fcn.00405c60
mov ecx, dword ds:[ebp - 0x424]
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.00421ff0
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x408da5
lea esp, [esp]
call fcn.00405d40
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 + 0x46ad30]
push dword [esi*8 + 0x46ad34]
push eax
call fcn.00421ff0
mov ecx, dword [esi*8 + 0x46ad30]
add esp, 0xc
lea eax, [ecx + 2]
shr eax, 1
lea ebx, [edi + eax*2]
mov eax, dword [ebp - 0x428]
add eax, 2
mov dword [ebp - 0x434], ebx
add eax, ecx
mov dword [ebp - 0x418], eax
jmp 0x408e09
fstp st(1)
fstp st(0)
mov eax, dword [ebp - 0x418]
mov edx, dword ds:[ebp - 0x43c]
mov edi, eax
sub edi, dword [ebp - 0x44c]
test dword [edx], 0xc0000000
je 0x408f70
movzx esi, word [edx + 6]
add esi, esi
cmp edi, esi
jae 0x408f70
sub esi, edi
lea ecx, [esi + eax]
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x430], ecx
cmp eax, ecx
jae 0x408ecd
add eax, eax
mov edx, ecx
cmp eax, ecx
cmovae edx, eax
mov dword [ebp - 0x424], edx
lea ecx, [edx + 0xa]
mov edx, dword [0x46bce8]
call fcn.00405c60
mov ecx, dword [ebp - 0x424]
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.00421ff0
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x408eb3
call fcn.00405d40
mov ecx, dword [ebp - 0x418]
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 0x43c]
shr ecx, 1
mov dword [ebp - 0x41c], ebx
lea ebx, [eax + ecx*2]
mov ecx, dword [edx]
test cl, cl
jns 0x408ed9
movzx eax, word [edx + 8]
jmp 0x408ede
mov eax, 0x20
shr esi, 1
mov dword [ebp - 0x428], eax
test ecx, ecx
jns 0x408f09
test esi, esi
je 0x408f05
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 0x408f5c
mov eax, edi
mov ecx, ebx
and eax, 0xfffffffe
sub ecx, eax
lea eax, [esi + esi]
push edi
mov dword [ebp - 0x420], eax
add eax, ecx
push ecx
push eax
lfence
mov dword [ebp - 0x44c], ecx
call fcn.00421ff0
add esp, 0xc
test esi, esi
je 0x408f56
mov eax, dword [ebp - 0x428]
mov ecx, esi
mov edi, dword [ebp - 0x44c]
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 - 0x420]
mov eax, dword [ebp - 0x430]
add ebx, esi
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], eax
mov esi, dword [ebp - 0x460]
fld qword [ebp - 0x484]
fld qword [ebp - 0x48c]
mov edi, dword [ebp - 0x424]
test esi, esi
jne 0x407a23
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.00420226
mov esp, ebp
pop ebp
ret 4