Function at 0x409000
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
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x454], ecx
mov ecx, dword [ebp + 8]
mov eax, edx
test ecx, ecx
mov dword [ebp - 0x450], eax
mov ebx, ecx
mov dword [ebp - 0x46c], ecx
sete byte [ebp - 0x415]
mov dword [ebp - 0x434], ebx
test byte [0x46ad1c], 1
mov dword [ebp - 0x41c], edi
jne 0x409132
mov esi, 0x46ad1c
lock bts dword [esi], 0x1f
setb al
test al, al
jne 0x4091b0
push 4
lea eax, [ebp - 0x10]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x409094
mov ax, word [ebp - 0x10]
test ax, ax
je 0x409094
cmp word [ebp - 0xe], di
jne 0x409094
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 0x4090c0
mov ax, word [ebp - 0x10]
test ax, ax
je 0x4090c0
cmp word [ebp - 0xe], di
jne 0x4090c0
mov word [0x46ad68], ax
cmp word [0x46ad24], 0x2e
je 0x4090de
push 0x4630d0
push 0
call fcn.00427feb
add esp, 8
mov dword [0x46be84], eax
lock bts dword [esi], 0
setb al
test al, al
jne 0x40912c
mov esi, dword [0x46ad20]
test esi, esi
je 0x4090fd
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 0x40912c
test esi, esi
je 0x40912c
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x46ad20], edi
mov eax, dword [ebp - 0x450]
fld qword [0x467c10]
mov cx, word [0x46ad68]
fst qword [ebp - 0x484]
fld qword [0x467c00]
fst qword [ebp - 0x48c]
mov dword [ebp - 0x460], 3
mov word [ebp - 0x426], cx
mov esi, dword ds:[ebp + 0xc]
dec eax
mov dword [ebp - 0x450], eax
mov eax, dword [ebp - 0x454]
mov edx, eax
add eax, 0x18
mov dword [ebp - 0x44c], edx
mov dword [ebp - 0x454], eax
mov dword [ebp - 0xc], edi
mov ecx, dword [edx]
mov eax, ecx
and eax, 0x3f
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x448], ecx
cmp eax, 0xc
ja case.default.0x4091a9
jmp dword [eax*4 + 0x40a358]
test byte [0x46ad1c], 1
jne 0x4091ca
mov ecx, esi
call fcn.00415020
jmp 0x40912c
mov eax, edx
jmp 0x409132
cmp byte [ebp - 0x415], 0
fstp st(1)
fstp st(0)
jne 0x40920c
lea eax, [edi + 2]
cmp esi, eax
jae 0x409205
add ebx, 2
mov byte [ebp - 0x415], 1
add edi, 2
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x41c], edi
jmp 0x40a21d
mov ax, word [edx + 0x10]
mov word [ebx], ax
add ebx, 2
add edi, 2
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x41c], edi
jmp 0x40a21d
cmp byte [ebp - 0x415], 0
fstp st(1)
fstp st(0)
jne 0x409258
mov ecx, dword [edx + 0x10]
lea eax, [ecx + edi]
cmp esi, eax
jae 0x409245
mov byte [ebp - 0x415], 1
jmp 0x409258
push ecx
push dword [edx + 0x14]
push ebx
call fcn.00421ff0
mov edx, dword [ebp - 0x44c]
add esp, 0xc
mov eax, dword [edx + 0x10]
shr eax, 1
add edi, dword [edx + 0x10]
mov dword [ebp - 0x41c], edi
lea ebx, [ebx + eax*2]
mov dword [ebp - 0x434], ebx
jmp 0x40a21d
mov ecx, dword ds:[edx + 0x10]
fstp st(1)
fstp st(0)
call fcn.004065a0
cmp byte [ebp - 0x415], 0
mov esi, eax
jne 0x4092b7
lea edx, [esi + esi]
lea ecx, [edx + edi]
cmp dword [ebp + 0xc], ecx
jae 0x4092a4
mov byte [ebp - 0x415], 1
jmp 0x4092b7
mov eax, dword [ebp - 0x44c]
push edx
push dword [eax + 0x10]
push ebx
call fcn.00421ff0
add esp, 0xc
lea eax, [esi + esi]
add edi, eax
lea ebx, [ebx + esi*2]
mov ax, word [0x46ad68]
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x41c], edi
mov word [ebp - 0x426], ax
jmp 0x40a21d
fstp st(1)
fstp st(0)
cmp ecx, 3
jne 0x4092ee
mov edi, dword [edx + 0x14]
mov esi, dword [edx + 0x10]
jmp 0x4092ff
mov edi, dword [edx + 0x10]
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4092f6
sub esi, ecx
push esi
push edi
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.ntdll.dll_RtlMultiByteToUnicodeSize]
test eax, eax
js 0x409e1b
cmp byte [ebp - 0x415], 0
jne 0x409352
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x458]
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x40933b
mov byte [ebp - 0x415], 1
jmp 0x409358
push esi
push edi
push 0
push ecx
push ebx
lfence
call dword [sym.imp.ntdll.dll_RtlMultiByteToUnicodeN]
test eax, eax
js 0x409e1b
mov ecx, dword [ebp - 0x458]
mov edi, dword [ebp - 0x41c]
mov eax, ecx
shr eax, 1
add edi, ecx
mov dword [ebp - 0x41c], edi
lea ebx, [ebx + eax*2]
mov ax, word [0x46ad68]
mov dword [ebp - 0x434], ebx
mov word [ebp - 0x426], ax
jmp 0x40a21d
mov ecx, 0x10
mov eax, edx
mov eax, dword [eax + ecx]
mov ecx, eax
cdq
shr ecx, 0x1f
mov esi, eax
xor esi, edx
mov dword [ebp - 0x42c], ecx
mov ecx, dword [ebp - 0x448]
sub esi, edx
mov edx, dword [ebp - 0x44c]
jmp 0x4093b2
mov esi, dword [edx + 0x10]
fstp st(1)
fstp st(0)
mov dword [ebp - 0x420], 0xa
test ecx, 0x100
je 0x4093dc
mov al, byte [edx + 0xa]
cmp al, 2
jb 0x4093dc
cmp al, 0x45
ja 0x4093dc
movzx eax, al
mov dword [ebp - 0x420], eax
test ecx, 0x20000000
mov eax, str.0123456789abcdefghijklmnopqrstuvwxyz_________._:_________
mov ecx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_________._:_________
cmovne eax, ecx
xor edi, edi
mov dword [ebp - 0x440], eax
lea ecx, [ebp - 0x16]
test esi, esi
je 0x4094cc
test dword [ebp - 0x448], 0x10000
je 0x40949e
xor eax, eax
mov dword [ebp - 0x430], eax
mov eax, esi
xor edx, edx
div dword [ebp - 0x420]
inc edi
mov esi, eax
mov dword [ebp - 0x424], edi
mov eax, dword [ebp - 0x440]
movsx ax, byte [eax + edx]
mov word [ecx], ax
sub ecx, 2
mov eax, dword [ebp - 0x430]
inc eax
mov dword [ebp - 0x430], eax
cmp eax, 3
jne 0x409498
test esi, esi
je 0x4094e3
mov ax, word [ebp - 0x426]
xor edx, edx
mov word [ecx], ax
mov eax, esi
div dword [ebp - 0x420]
mov dword [ebp - 0x430], 1
mov esi, eax
mov eax, dword [ebp - 0x440]
movsx eax, byte [edx + eax]
mov word [ecx - 2], ax
add ecx, 0xfffffffc
add edi, 2
mov dword [ebp - 0x424], edi
test esi, esi
jne 0x409420
jmp 0x4094e3
mov ebx, dword [ebp - 0x440]
mov eax, esi
xor edx, edx
div dword [ebp - 0x420]
inc edi
mov esi, eax
movsx ax, byte [ebx + edx]
mov word [ecx], ax
sub ecx, 2
test esi, esi
jne 0x4094a4
mov ebx, dword [ebp - 0x434]
jmp 0x4094dd
mov eax, 0x30
lea ecx, [ebp - 0x18]
mov word [ebp - 0x16], ax
mov edi, 1
mov dword [ebp - 0x424], edi
mov esi, dword [ebp - 0x448]
xor edx, edx
cmp dword [ebp - 0x42c], edx
je 0x4094fa
mov edx, 1
jmp 0x409508
test esi, 0x20000
mov eax, 1
cmovne edx, eax
mov eax, esi
mov dword [ebp - 0x420], edx
and eax, 0x50000
cmp eax, 0x40000
jne 0x40954c
mov eax, dword [ebp - 0x44c]
movzx esi, word [eax + 6]
lea eax, [edx + edi]
cmp eax, esi
jae 0x409546
or dword [ebp - 0x42c], 4
sub esi, edx
sub esi, edi
add edx, esi
mov dword [ebp - 0x464], esi
mov dword [ebp - 0x420], edx
mov esi, dword [ebp - 0x448]
add ecx, 2
cmp byte [ebp - 0x415], 0
mov dword [ebp - 0x43c], ecx
jne 0x409605
lea eax, [edx + edi]
mov edx, dword [ebp - 0x41c]
lea eax, [edx + eax*2]
cmp dword [ebp + 0xc], eax
jae 0x409596
mov eax, dword [ebp - 0x420]
add eax, edi
mov byte [ebp - 0x415], 1
mov edi, edx
lea edi, [edi + eax*2]
mov dword [ebp - 0x41c], edi
jmp 0x40a21d
mov eax, dword ds:[ebp - 0x42c]
test al, 1
je 0x4095ab
mov edx, 0x2d
jmp 0x4095b8
test esi, 0x20000
je 0x4095be
mov edx, 0x2b
mov word [ebx], dx
add ebx, 2
mov edi, edi
test al, 4
je 0x4095ef
mov edx, dword [ebp - 0x464]
test edx, edx
je 0x4095ec
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 ecx, dword [ebp - 0x43c]
mov edi, dword [ebp - 0x424]
lea ebx, [ebx + edx*2]
lea esi, [edi + edi]
push esi
push ecx
push ebx
call fcn.00421ff0
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x434], ebx
mov eax, dword ds:[ebp - 0x420]
add eax, edi
mov edi, dword [ebp - 0x41c]
lea edi, [edi + eax*2]
mov dword [ebp - 0x41c], edi
jmp 0x40a21d
mov eax, dword [edx + 0x14]
fstp st(1)
mov esi, dword [edx + 0x10]
fstp st(0)
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x424], eax
test eax, eax
jg 0x40966f
nop
jl 0x409646
test esi, esi
jae 0x40966f
neg esi
mov dword [ebp - 0x42c], 1
adc eax, 0
neg eax
jmp 0x409663
mov esi, dword [edx + 0x10]
fstp st(1)
mov eax, dword [edx + 0x14]
fstp st(0)
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x420], 0xa
mov dword [ebp - 0x430], 0
test ecx, 0x100
je 0x4096ce
mov al, byte [edx + 0xa]
mov dword [ebp - 0x420], 0xa
mov dword [ebp - 0x430], 0
cmp al, 2
jb 0x4096ce
mov dword [ebp - 0x420], 0xa
mov dword [ebp - 0x430], 0
cmp al, 0x45
ja 0x4096ce
movzx eax, al
cdq
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], edx
test ecx, 0x20000000
lea edi, [ebp - 0x16]
mov edx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_________._:_________
mov eax, str.0123456789abcdefghijklmnopqrstuvwxyz_________._:_________
cmovne eax, edx
mov edx, dword [ebp - 0x424]
mov dword [ebp - 0x43c], eax
xor eax, eax
mov dword [ebp - 0x440], eax
mov eax, esi
or eax, edx
je 0x409843
test ecx, 0x10000
je 0x4097ce
xor eax, eax
mov dword [ebp - 0x438], eax
lea ebx, [ebx]
push dword [ebp - 0x430]
push dword [ebp - 0x420]
push edx
push esi
call fcn.0043d0b0
push dword [ebp - 0x430]
mov esi, eax
mov eax, dword [ebp - 0x424]
push dword [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x444]
push eax
call fcn.0043d040
mov dword [ebp - 0x444], eax
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x424], edx
movsx cx, byte [eax + esi]
mov eax, dword [ebp - 0x438]
mov esi, dword [ebp - 0x444]
inc eax
mov word [edi], cx
sub edi, 2
mov ecx, dword [ebp - 0x440]
inc ecx
mov dword [ebp - 0x440], ecx
cmp eax, 3
jne 0x4097b3
mov eax, esi
or eax, edx
je 0x40985a
mov ax, word [ebp - 0x426]
mov word [edi], ax
sub edi, 2
inc ecx
mov dword [ebp - 0x440], ecx
jmp 0x409712
mov dword [ebp - 0x438], eax
mov eax, esi
or eax, edx
mov dword [ebp - 0x440], ecx
jne 0x409720
jmp 0x40985a
mov ebx, dword [ebp - 0x420]
push dword ds:[ebp - 0x430]
push ebx
push edx
push esi
call fcn.0043d0b0
push dword ds:[ebp - 0x430]
mov esi, eax
mov eax, dword [ebp - 0x424]
push ebx
push eax
mov eax, dword [ebp - 0x444]
push eax
call fcn.0043d040
mov ecx, dword [ebp - 0x440]
mov dword [ebp - 0x444], eax
inc ecx
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x440], ecx
movsx ax, byte [eax + esi]
mov esi, dword [ebp - 0x444]
mov word [edi], ax
mov eax, esi
sub edi, 2
or eax, edx
jne 0x4097d4
mov ebx, dword [ebp - 0x434]
jmp 0x40985a
mov eax, 0x30
lea edi, [ebp - 0x18]
mov ecx, 1
mov word [ebp - 0x16], ax
mov dword [ebp - 0x440], ecx
mov esi, dword [ebp - 0x448]
xor edx, edx
cmp dword [ebp - 0x42c], edx
je 0x409871
mov edx, 1
jmp 0x40987f
test esi, 0x20000
mov eax, 1
cmovne edx, eax
mov eax, esi
mov dword [ebp - 0x438], edx
and eax, 0x50000
cmp eax, 0x40000
jne 0x4098c3
mov eax, dword [ebp - 0x44c]
movzx esi, word [eax + 6]
lea eax, [edx + ecx]
cmp eax, esi
jae 0x4098bd
or dword [ebp - 0x42c], 4
sub esi, edx
sub esi, ecx
add edx, esi
mov dword [ebp - 0x468], esi
mov dword [ebp - 0x438], edx
mov esi, dword [ebp - 0x448]
add edi, 2
cmp byte [ebp - 0x415], 0
mov dword [ebp - 0x43c], edi
jne 0x40997b
lea eax, [edx + ecx]
mov edx, dword [ebp - 0x41c]
lea eax, [edx + eax*2]
cmp dword [ebp + 0xc], eax
jae 0x40990d
mov eax, dword [ebp - 0x440]
mov edi, edx
add eax, dword [ebp - 0x438]
mov byte [ebp - 0x415], 1
lea edi, [edi + eax*2]
mov dword [ebp - 0x41c], edi
jmp 0x40a21d
mov eax, dword [ebp - 0x42c]
test al, 1
je 0x40991e
mov edx, 0x2d
jmp 0x40992d
mov edi, edi
test esi, 0x20000
je 0x409933
mov edx, 0x2b
mov word [ebx], dx
add ebx, 2
test al, 4
je 0x409965
mov edx, dword ds:[ebp - 0x468]
test edx, edx
je 0x409962
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 - 0x43c]
mov ecx, dword [ebp - 0x440]
lea ebx, [ebx + edx*2]
lea esi, [ecx + ecx]
push esi
push edi
push ebx
call fcn.00421ff0
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x434], ebx
mov eax, dword [ebp - 0x440]
mov edi, dword [ebp - 0x41c]
add eax, dword [ebp - 0x438]
lea edi, [edi + eax*2]
mov dword [ebp - 0x41c], edi
jmp 0x40a21d
mov dword [ebp - 0x42c], 0
fstp st(1)
fstp st(0)
test cl, 0x40
je 0x4099c2
movzx edx, word [edx + 4]
cmp edx, 0xa2
jbe 0x4099c7
mov edx, 0xa2
jmp 0x4099c7
mov edx, 6
mov esi, dword [ebp - 0x44c]
lea edi, [ebp - 0x413]
sub esp, 0x10
mov dword [ebp - 0x438], edi
mov eax, edi
fld qword [esi + 0x10]
fstp qword [esp + 8]
push eax
call fcn.00419be0
test al, al
jne 0x4099f7
mov byte [ebp - 0x413], al
jmp 0x409a59
mov edx, dword [0x46be84]
lea ecx, [ecx]
test edx, edx
je 0x409a2d
mov al, byte [ebp - 0x413]
lea ecx, [ebp - 0x413]
test al, al
je 0x409a2d
cmp al, 0x2e
je 0x409a26
mov al, byte ds:[ecx + 1]
inc ecx
test al, al
jne 0x409a14
jmp 0x409a2d
mov al, byte [0x46ad24]
mov byte [ecx], al
test dword [ebp - 0x448], 0x20000000
je 0x409a59
lea eax, ds:[ebp - 0x413]
test edx, edx
je 0x409a50
push edx
push eax
call fcn.00427797
add esp, 8
jmp 0x409a59
push eax
call fcn.0042773b
add esp, 4
mov edx, dword [esi]
mov dword [ebp - 0x43c], edx
test edx, 0x8000
je 0x409ae4
mov al, byte ds:[ebp - 0x413]
lea ecx, [ebp - 0x413]
mov ah, byte [0x46ad24]
test al, al
je 0x409a90
cmp al, ah
je 0x409a90
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x409a84
mov al, byte [ecx]
inc ecx
test al, al
je 0x409ae4
mov al, byte [ecx]
test al, al
je 0x409ab0
lea ecx, [ecx]
cmp al, 0x65
je 0x409ab0
cmp al, 0x45
je 0x409ab0
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x409aa0
mov al, byte [ecx - 1]
mov esi, ecx
dec ecx
cmp al, 0x30
jne 0x409ac8
lea ebx, [ebx]
mov al, byte [ecx - 1]
dec ecx
cmp al, 0x30
je 0x409ac0
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 0x409ad0
mov edx, dword [ebp - 0x43c]
lea esi, [ebp - 0x413]
lea ecx, [esi + 1]
lea ecx, [ecx]
mov al, byte [esi]
inc esi
test al, al
jne 0x409af0
sub esi, ecx
cmp byte [ebp - 0x413], 0x2d
mov dword [ebp - 0x43c], esi
jne 0x409b27
lea edi, [ebp - 0x412]
mov dword [ebp - 0x42c], 1
dec esi
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], esi
jmp 0x409b41
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 0x409cf9
mov al, byte ds:[edi]
mov ecx, edi
sub al, 0x30
mov dword [ebp - 0x420], edi
cmp al, 0xa
jae 0x409b74
mov al, byte [ecx + 1]
inc ecx
sub al, 0x30
cmp al, 0xa
jb 0x409b64
mov dword [ebp - 0x420], ecx
mov eax, ecx
sub eax, edi
mov dword [ebp - 0x424], eax
lea edx, [eax + 2]
mov dword [ebp - 0x430], edx
je 0x409b9d
mov eax, 0xaaaaaaab
mul edx
mov eax, edx
mov edx, dword [ebp - 0x430]
shr eax, 1
dec eax
jmp 0x409b9f
xor eax, eax
mov dword [ebp - 0x438], eax
add eax, esi
add eax, eax
cmp dword [ebp - 0x42c], 0
lea ecx, [eax + 2]
cmove ecx, eax
cmp byte [ebp - 0x415], 0
mov ax, word [0x46ad68]
mov dword [ebp - 0x430], ecx
mov word [ebp - 0x426], ax
jne 0x409bf1
mov eax, ecx
mov ecx, dword [ebp - 0x420]
add eax, dword [ebp - 0x41c]
cmp dword [ebp + 0xc], eax
jae 0x409bf1
mov byte [ebp - 0x415], 1
jmp 0x409c96
mov ecx, dword [ebp - 0x424]
mov eax, edx
xor edx, edx
div dword [ebp - 0x460]
cmp byte [ebp - 0x415], 0
jne 0x409c90
mov eax, dword [ebp - 0x42c]
test al, 1
je 0x409c1f
mov eax, 0x2d
jmp 0x409c29
nop
test al, 2
je 0x409c35
mov eax, 0x2b
mov word [ebx], ax
add ebx, 2
mov dword [ebp - 0x434], ebx
mov eax, dword ds:[ebp - 0x424]
test eax, eax
je 0x409cf1
mov si, word [ebp - 0x426]
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 0x409c7d
test ecx, ecx
je 0x409c84
mov word [ebx], si
dec ecx
movsx ax, byte [edi]
mov edx, 1
mov word [ebx + 2], ax
add ebx, 4
inc edi
lea ecx, [ecx]
test ecx, ecx
jne 0x409c50
mov esi, dword [ebp - 0x43c]
mov dword [ebp - 0x434], ebx
mov ecx, dword [ebp - 0x420]
mov eax, dword [ebp - 0x424]
cmp dword [ebp - 0x42c], 0
mov edi, dword [ebp - 0x41c]
je 0x409cae
add edi, 2
add eax, dword [ebp - 0x438]
sub esi, dword [ebp - 0x424]
cmp byte [ebp - 0x415], 0
lea edi, [edi + eax*2]
mov dword [ebp - 0x41c], edi
jne 0x40a21d
push ebx
mov edx, esi
call fcn.00406f40
lea eax, [esi + esi]
lea ebx, [ebx + esi*2]
add edi, eax
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x41c], edi
jmp 0x40a21d
mov ecx, dword [ebp - 0x420]
jmp 0x409c9c
mov eax, dword [ebp - 0x44c]
xor ecx, ecx
cmp dword [ebp - 0x42c], ecx
setne cl
test dword [eax], 0x40000
mov edx, ecx
je 0x409d35
movzx edi, word [eax + 6]
lea eax, [ecx + esi]
cmp eax, edi
jae 0x409d35
or dword [ebp - 0x42c], 4
mov eax, edi
sub eax, ecx
sub eax, esi
mov dword [ebp - 0x45c], eax
lea edx, [ecx + eax]
mov cl, byte [ebp - 0x415]
mov edi, dword [ebp - 0x41c]
test cl, cl
jne 0x409dda
lea eax, [edx + esi]
lea eax, [edi + eax*2]
cmp dword [ebp + 0xc], eax
jae 0x409d76
mov ax, word [0x46ad68]
lea edi, [edi + edx*2]
mov byte [ebp - 0x415], 1
mov dword [ebp - 0x41c], edi
mov word [ebp - 0x426], ax
jmp 0x40a21d
mov eax, dword ds:[ebp - 0x42c]
test al, 1
je 0x409d8b
mov eax, 0x2d
jmp 0x409d94
test al, 2
je 0x409da6
mov eax, 0x2b
mov word [ebx], ax
add ebx, 2
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x434], ebx
test al, 4
je 0x409dda
mov eax, dword [ebp - 0x45c]
test eax, eax
je 0x409dd2
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 - 0x41c]
mov eax, dword [ebp - 0x45c]
lea ebx, [ebx + eax*2]
lea edi, [edi + edx*2]
jmp 0x409de7
lea edi, [edi + edx*2]
mov dword [ebp - 0x41c], edi
test cl, cl
jne 0x409e21
mov ecx, dword [ebp - 0x438]
mov edx, esi
push ebx
call fcn.00406f40
lea eax, [esi + esi]
add edi, eax
lea ebx, [ebx + esi*2]
mov ax, word [0x46ad68]
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x41c], edi
mov word [ebp - 0x426], ax
jmp 0x40a21d
mov edi, dword [ebp - 0x41c]
mov ax, word [0x46ad68]
mov word [ebp - 0x426], ax
jmp 0x40a21d
mov eax, dword [edx + 0x14]
xor edi, edi
mov esi, dword [edx + 0x10]
mov ecx, eax
and eax, 0x7fffffff
mov dword [ebp - 0x474], esi
and ecx, 0x80000000
mov dword [ebp - 0x470], eax
or esi, dword [edx + 0x14]
fild qword [ebp - 0x474]
mov dword [ebp - 0x478], ecx
mov dword [ebp - 0x47c], edi
mov dword [ebp - 0x438], edi
fild qword [ebp - 0x47c]
fchs
faddp st(1)
jne 0x409ed5
cmp byte [ebp - 0x415], 0
fstp st(0)
mov edi, dword [ebp - 0x41c]
fstp st(1)
fstp st(0)
jne 0x409ebe
lea eax, [edi + 2]
cmp dword [ebp + 0xc], eax
jae 0x409eb6
add ebx, 2
mov byte [ebp - 0x415], 1
add edi, 2
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x41c], edi
jmp 0x40a21d
mov eax, 0x30
mov word [ebx], ax
add ebx, 2
add edi, 2
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x41c], edi
jmp 0x40a21d
mov edx, dword [ebp - 0x448]
mov esi, dword [ebp - 0x44c]
test edx, 0x100
je 0x409eef
movzx ecx, byte [esi + 0xa]
jmp 0x409ef2
or ecx, 0xffffffff
fcomi st(2)
jb 0x409f0c
cmp edi, 7
jae 0x409f06
cmp edi, ecx
jae 0x409f06
fmul st(1)
inc edi
fcomi st(2)
jae 0x409ef6
mov dword [ebp - 0x438], edi
fstp st(2)
fstp st(0)
test dl, 0x40
je 0x409f1b
movzx eax, word [esi + 4]
jmp 0x409f20
mov eax, 2
movzx edx, ax
lea edi, [ebp - 0x413]
cmp edx, 0xa2
mov dword [ebp - 0x430], 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 0x409f63
xor dl, dl
mov byte [ebp - 0x413], dl
jmp 0x409f9c
cmp dword [0x46be84], 0
mov dl, byte [ebp - 0x413]
je 0x409f9c
lea ecx, [ebp - 0x413]
test dl, dl
je 0x409f9c
mov al, dl
mov edi, edi
cmp al, 0x2e
je 0x409f8e
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x409f80
jmp 0x409f9c
mov ax, word [0x46ad24]
mov byte [ecx], al
mov dl, byte [ebp - 0x413]
lea ecx, [ebp - 0x413]
test dl, dl
je 0x409fb8
mov al, dl
cmp al, byte [0x46ad24]
je 0x409fb8
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x409fa8
mov al, byte [ecx]
inc ecx
test al, al
je 0x40a00a
mov al, byte [ecx]
test al, al
je 0x409fd5
cmp al, 0x65
je 0x409fd5
cmp al, 0x45
je 0x409fd5
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x409fc5
mov al, byte [ecx - 1]
mov esi, ecx
dec ecx
cmp al, 0x30
jne 0x409fe8
nop
mov al, byte [ecx - 1]
dec ecx
cmp al, 0x30
je 0x409fe0
cmp al, byte [0x46ad24]
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 0x409ff4
mov dl, byte [ebp - 0x413]
lea esi, [ebp - 0x413]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40a013
sub esi, ecx
mov dword [ebp - 0x43c], esi
cmp dl, 0x2d
jne 0x40a03e
dec esi
mov dword [ebp - 0x430], 1
lea edi, [ebp - 0x412]
mov dword [ebp - 0x43c], esi
mov al, byte [edi]
mov ecx, edi
sub al, 0x30
mov dword [ebp - 0x420], edi
cmp al, 0xa
jae 0x40a060
mov edi, edi
mov al, byte [ecx + 1]
inc ecx
sub al, 0x30
cmp al, 0xa
jb 0x40a050
mov dword [ebp - 0x420], ecx
mov eax, ecx
sub eax, edi
mov dword [ebp - 0x424], eax
lea edx, [eax + 2]
mov dword [ebp - 0x444], edx
je 0x40a089
mov eax, 0xaaaaaaab
mul edx
mov eax, edx
mov edx, dword [ebp - 0x444]
shr eax, 1
dec eax
jmp 0x40a08b
xor eax, eax
mov dword [ebp - 0x440], eax
add eax, esi
add eax, eax
cmp dword [ebp - 0x430], 0
lea ecx, [eax + 2]
cmove ecx, eax
cmp byte [ebp - 0x415], 0
mov ax, word [0x46ad68]
mov dword [ebp - 0x444], ecx
mov word [ebp - 0x426], ax
jne 0x40a0dd
mov eax, ecx
mov ecx, dword [ebp - 0x420]
add eax, dword [ebp - 0x41c]
cmp dword [ebp + 0xc], eax
jae 0x40a0dd
mov byte [ebp - 0x415], 1
jmp 0x40a15f
mov ecx, dword [ebp - 0x424]
mov eax, edx
xor edx, edx
div dword [ebp - 0x460]
cmp byte [ebp - 0x415], 0
jne 0x40a159
cmp dword [ebp - 0x430], 0
je 0x40a10e
mov eax, 0x2d
mov word [ebx], ax
add ebx, 2
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x40a1c5
mov si, word [ebp - 0x426]
movsx ax, byte [edi]
dec ecx
inc edi
mov word [ebx], ax
mov eax, edx
add ebx, 2
dec edx
test eax, eax
jne 0x40a14f
test ecx, ecx
je 0x40a153
mov word [ebx], si
dec ecx
movsx ax, byte [edi]
mov edx, 1
mov word [ebx + 2], ax
add ebx, 4
inc edi
test ecx, ecx
jne 0x40a123
mov esi, dword [ebp - 0x43c]
mov ecx, dword [ebp - 0x420]
mov eax, dword [ebp - 0x424]
cmp dword [ebp - 0x430], 0
je 0x40a175
add dword [ebp - 0x41c], 2
add eax, dword [ebp - 0x440]
mov edx, dword [ebp - 0x41c]
sub esi, dword [ebp - 0x424]
cmp byte [ebp - 0x415], 0
lea edi, [edx + eax*2]
jne 0x40a1f1
push ebx
mov edx, esi
call fcn.00406f40
lea edi, [edi + esi*2]
lea ebx, [ebx + esi*2]
mov esi, dword [ebp - 0x438]
mov eax, dword [esi*8 + 0x46ad30]
add eax, 2
add eax, edi
cmp dword [ebp + 0xc], eax
jae 0x40a1cd
mov byte [ebp - 0x415], 1
jmp 0x40a1f7
mov ecx, dword [ebp - 0x420]
jmp 0x40a165
mov eax, 0x20
mov word [ebx], ax
lea eax, [ebx + 2]
push dword [esi*8 + 0x46ad30]
push dword [esi*8 + 0x46ad34]
push eax
call fcn.00421ff0
add esp, 0xc
jmp 0x40a1f7
mov esi, dword [ebp - 0x438]
mov ecx, dword [esi*8 + 0x46ad30]
add edi, 2
lea eax, [ecx + 2]
shr eax, 1
add edi, ecx
mov dword [ebp - 0x41c], edi
lea ebx, [ebx + eax*2]
mov dword [ebp - 0x434], ebx
jmp 0x40a21d
fstp st(1)
fstp st(0)
mov eax, dword [ebp - 0x44c]
mov ecx, edi
sub ecx, dword [ebp - 0xc]
mov edx, dword [eax]
test edx, 0xc0000000
je 0x40a2f2
movzx esi, word ds:[eax + 6]
add esi, esi
cmp ecx, esi
jae 0x40a2f2
sub esi, ecx
cmp byte [ebp - 0x415], 0
jne 0x40a2dd
lea eax, [esi + edi]
cmp dword [ebp + 0xc], eax
jae 0x40a26b
mov byte [ebp - 0x415], 1
jmp 0x40a2dd
test dl, dl
jns 0x40a27b
mov eax, dword [ebp - 0x44c]
movzx eax, word [eax + 8]
jmp 0x40a280
mov eax, 0x20
mov edi, esi
mov dword [ebp - 0x43c], eax
shr edi, 1
test edx, edx
jns 0x40a298
test edi, edi
je 0x40a2d7
mov ecx, edi
mov edi, ebx
jmp 0x40a2c4
mov eax, ecx
mov edx, ebx
and eax, 0xfffffffe
sub edx, eax
push ecx
push edx
lfence
lea eax, [edx + edi*2]
mov dword [ebp - 0xc], edx
push eax
call fcn.00421ff0
add esp, 0xc
test edi, edi
je 0x40a2d7
mov eax, dword [ebp - 0x43c]
mov ecx, edi
mov edi, dword [ebp - 0xc]
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 edi, dword [ebp - 0x41c]
mov eax, esi
shr eax, 1
add edi, esi
mov dword [ebp - 0x41c], edi
lea ebx, [ebx + eax*2]
mov dword [ebp - 0x434], ebx
mov eax, dword [ebp - 0x450]
fld qword [ebp - 0x484]
fld qword [ebp - 0x48c]
test eax, eax
jne 0x409162
mov cl, byte [ebp - 0x415]
fstp st(1)
fstp st(0)
test cl, cl
jne 0x40a327
lea eax, ds:[edi + 2]
cmp dword [ebp + 0xc], eax
jae 0x40a34e
mov cl, 1
mov eax, dword [ebp - 0x46c]
test eax, eax
je 0x40a336
xor edx, edx
mov word [eax], dx
test cl, cl
mov ecx, dword [ebp - 8]
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.00420226
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [ebx], ax
jmp 0x40a336