Function at 0x409400
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x468
mov eax, dword [0x46e040]
xor eax, esp
mov dword [esp + 0x464], eax
push ebx
push ebp
mov eax, edx
xor ebp, ebp
mov edx, ecx
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x474]
mov ebx, ecx
test ecx, ecx
mov dword [esp + 0x5c], ecx
push esi
sete cl
mov dword [esp + 0x44], edx
test byte [0x46ed30], 1
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebp
mov byte [esp + 0x13], cl
jne 0x409555
mov edi, 0x46ed30
lock bts dword ds:[edi], 0x1f
setb al
test al, al
jne 0x409538
push 4
lea eax, [esp + 0x6c]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
nop dword [eax]
test eax, eax
je 0x40949b
mov ax, word [esp + 0x68]
test ax, ax
je 0x40949b
cmp word [esp + 0x6a], bp
jne 0x40949b
mov word [0x46ed38], ax
push 4
lea eax, [esp + 0x6c]
push eax
push 0xf
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4094cd
mov ax, word [esp + 0x68]
test ax, ax
je 0x4094cd
nop dword [eax]
cmp word [esp + 0x6a], bp
jne 0x4094cd
mov word [0x46ed78], ax
cmp word [0x46ed38], 0x2e
je 0x4094ed
push 0x46642c
push 0
call fcn.004299db
add esp, 8
mov dword [0x46fe54], eax
lock bts dword [edi], 0
setb al
test al, al
jne 0x409549
mov esi, dword [0x46ed34]
nop
test esi, esi
je 0x40950d
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
lock xadd dword [edi], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x409549
test esi, esi
je 0x409549
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x46ed34], ebp
jmp 0x409549
test byte [0x46ed30], 1
nop
jne 0x409551
mov ecx, edi
call fcn.00415400
mov cl, byte [esp + 0x13]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x54], 3
nop dword [eax]
mov esi, dword [esp + 0x480]
mov edi, edx
dec eax
mov dword [esp + 0x38], edi
add edx, 0x18
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
mov edx, dword [edi]
mov eax, edx
and eax, 0x3f
mov dword [esp + 0x68], ebp
mov dword [esp + 0x18], 0
mov dword [esp + 0x34], edx
cmp eax, 0xd
ja case.default.0x4095a0
nop dword [eax]
jmp dword [eax*4 + 0x40a780]
test cl, cl
jne 0x4095cc
lea eax, [ebp + 2]
cmp esi, eax
jae 0x4095c5
add ebx, 2
mov byte [esp + 0x13], 1
add ebp, 2
jmp 0x40a634
mov ax, word [edi + 0x10]
mov word [ebx], ax
add ebx, 2
add ebp, 2
jmp 0x40a634
test cl, cl
jne 0x409602
mov ecx, dword [edi + 0x10]
lea eax, [ecx + ebp]
cmp esi, eax
jae 0x4095f5
mov eax, ecx
mov byte [esp + 0x13], 1
shr eax, 1
add ebp, ecx
jmp 0x40a631
push ecx
push dword [edi + 0x14]
push ebx
call fcn.00423710
add esp, 0xc
mov eax, dword [edi + 0x10]
shr eax, 1
add ebp, dword [edi + 0x10]
jmp 0x40a631
mov ecx, dword [edi + 0x10]
call fcn.00406a00
cmp byte ds:[esp + 0x13], 0
mov esi, eax
jne 0x409652
lea edx, [esi + esi]
lea ecx, [edx + ebp]
cmp dword [esp + 0x480], ecx
jae 0x409645
lea eax, ds:[esi + esi]
mov byte [esp + 0x13], 1
lea ebx, [ebx + esi*2]
add ebp, eax
jmp 0x40a634
push edx
push dword [edi + 0x10]
push ebx
call fcn.00423710
add esp, 0xc
lea eax, [esi + esi]
lea ebx, [ebx + esi*2]
add ebp, eax
jmp 0x40a634
nop
cmp edx, 3
jne 0x409671
mov eax, dword [esp + 0x38]
mov edi, dword [edi + 0x14]
mov esi, dword [eax + 0x10]
jmp 0x409689
mov edi, dword [edi + 0x10]
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x409680
sub esi, ecx
push esi
push edi
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.ntdll.dll_RtlMultiByteToUnicodeSize]
test eax, eax
js case.default.0x4095a0
cmp byte [esp + 0x13], 0
jne 0x4096dc
mov ecx, dword [esp + 0x58]
lea eax, [ecx + ebp]
cmp dword [esp + 0x480], eax
jae 0x4096c5
mov eax, ecx
mov byte [esp + 0x13], 1
shr eax, 1
add ebp, ecx
jmp 0x40a631
push esi
push edi
push 0
push ecx
push ebx
lfence
call dword [sym.imp.ntdll.dll_RtlMultiByteToUnicodeN]
test eax, eax
js case.default.0x4095a0
mov ecx, dword [esp + 0x58]
mov eax, ecx
shr eax, 1
add ebp, ecx
jmp 0x40a631
mov ecx, 0x10
mov eax, edi
mov eax, dword [ecx + eax]
mov ecx, eax
shr ecx, 0x1f
mov dword [esp + 0x18], ecx
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
mov edx, dword [esp + 0x34]
jmp 0x40970e
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x1c], 0xa
test edx, 0x100
je 0x409730
mov al, byte [edi + 0xa]
cmp al, 2
jb 0x409730
cmp al, 0x45
ja 0x409730
movzx eax, al
mov dword [esp + 0x1c], eax
test edx, 0x20000000
lea ebp, [esp + 0x46e]
mov esi, str.0123456789abcdefghijklmnopqrstuvwxyz_________._:_________
mov eax, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_________._:_________
cmovne esi, eax
xor edi, edi
mov dword [esp + 0x24], esi
test ecx, ecx
je 0x4097f2
nop dword [eax + eax]
test edx, 0x10000
je 0x4097cf
xor esi, esi
nop word [eax + eax]
mov eax, ecx
xor edx, edx
div dword [esp + 0x1c]
inc edi
inc esi
mov ecx, eax
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x24]
movsx ax, byte [eax + edx]
mov word [ebp], ax
sub ebp, 2
cmp esi, 3
jne 0x4097c9
test ecx, ecx
je 0x40980f
movzx eax, word [0x46ed78]
xor edx, edx
mov word [ebp], ax
mov esi, 1
mov eax, ecx
div dword [esp + 0x1c]
mov ecx, eax
mov eax, dword [esp + 0x24]
movsx eax, byte [edx + eax]
mov word [ebp - 2], ax
add ebp, 0xfffffffc
add edi, 2
mov dword [esp + 0x28], edi
test ecx, ecx
jne 0x409770
jmp 0x40980f
mov ebx, dword [esp + 0x1c]
mov eax, ecx
xor edx, edx
div ebx
inc edi
mov ecx, eax
movsx ax, byte [esi + edx]
mov word [ebp], ax
sub ebp, 2
test ecx, ecx
jne 0x4097d3
mov ebx, dword [esp + 0x20]
jmp 0x40980b
mov eax, 0x30
lea ebp, [esp + 0x46c]
mov word [esp + 0x46e], ax
mov edi, 1
mov dword [esp + 0x28], edi
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov esi, dword [esp + 0x34]
test edx, edx
je 0x409824
mov ecx, 1
jmp 0x409832
test esi, 0x20000
mov eax, 1
cmovne ecx, eax
mov eax, esi
mov dword [esp + 0x30], ecx
and eax, 0x50000
cmp eax, 0x40000
jne 0x40986d
mov eax, dword [esp + 0x38]
movzx edx, word [eax + 6]
lea eax, [ecx + edi]
cmp eax, edx
jae 0x409869
or dword [esp + 0x18], 4
sub edx, ecx
sub edx, edi
add ecx, edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x18]
add ebp, 2
cmp byte [esp + 0x13], 0
jne 0x4098fe
lea eax, [ecx + edi]
mov ecx, dword [esp + 0x14]
lea eax, [ecx + eax*2]
cmp dword [esp + 0x480], eax
jae 0x4098a5
mov eax, dword ds:[esp + 0x30]
mov ebp, ecx
add eax, edi
mov byte [esp + 0x13], 1
lea ebp, [ebp + eax*2]
jmp 0x40a638
test dl, 1
je 0x4098b1
mov eax, 0x2d
jmp 0x4098be
test esi, 0x20000
je 0x4098c4
mov eax, 0x2b
mov word [ebx], ax
add ebx, 2
test dl, 4
je 0x4098ea
mov edx, dword [esp + 0x5c]
test edx, edx
je 0x4098e7
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 [esp + 0x28]
lea ebx, [ebx + edx*2]
lea esi, [edi + edi]
push esi
push ebp
push ebx
call fcn.00423710
add esp, 0xc
add ebx, esi
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x14]
add eax, edi
lea ebp, [ebp + eax*2]
jmp 0x40a638
mov eax, dword ds:[edi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], eax
test eax, eax
jg 0x409950
jl 0x40992a
test ecx, ecx
jae 0x409950
neg ecx
adc eax, 0
neg eax
mov dword [esp + 0x28], eax
mov eax, 1
mov dword [esp + 0x18], eax
jmp 0x40994c
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x1c], 0
mov esi, 0xa
mov dword [esp + 0x40], esi
test edx, 0x100
je 0x40999e
mov al, byte [edi + 0xa]
mov dword [esp + 0x40], esi
mov dword [esp + 0x1c], 0
cmp al, 2
jb 0x40999e
mov dword [esp + 0x40], esi
mov dword [esp + 0x1c], 0
cmp al, 0x45
ja 0x40999e
movzx eax, al
cdq
mov dword [esp + 0x1c], edx
mov esi, eax
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], eax
test edx, 0x20000000
lea ebp, [esp + 0x46e]
mov edx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_________._:_________
mov eax, str.0123456789abcdefghijklmnopqrstuvwxyz_________._:_________
cmovne eax, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
xor edi, edi
mov eax, ecx
or eax, edx
je 0x409aba
test dword [esp + 0x34], 0x10000
je 0x409a68
xor eax, eax
mov dword [esp + 0x24], eax
push dword [esp + 0x1c]
push esi
push edx
push ecx
call fcn.0043f570
push dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x2c]
push dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x48]
push eax
call fcn.0043f500
mov dword [esp + 0x3c], eax
inc edi
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], edi
movsx cx, byte [eax + esi]
mov eax, dword [esp + 0x24]
inc eax
mov word [ebp], cx
sub ebp, 2
mov ecx, dword [esp + 0x3c]
cmp eax, 3
jne 0x409a4e
mov eax, ecx
or eax, edx
je 0x409ad7
mov ax, word [0x46ed78]
mov esi, dword [esp + 0x40]
mov word [ebp], ax
sub ebp, 2
inc edi
jmp 0x4099da
mov esi, dword ds:[esp + 0x40]
mov dword [esp + 0x24], eax
mov eax, ecx
or eax, edx
mov dword [esp + 0x30], edi
jne 0x4099e0
jmp 0x409ad7
mov ebx, dword [esp + 0x1c]
nop dword [eax]
push ebx
push esi
push edx
push ecx
call fcn.0043f570
push ebx
push dword [esp + 0x44]
mov esi, eax
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x48]
push eax
call fcn.0043f500
mov ecx, eax
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x2c]
inc edi
mov dword [esp + 0x3c], ecx
movsx ax, byte [eax + esi]
mov esi, dword [esp + 0x40]
mov word [ebp], ax
mov eax, ecx
sub ebp, 2
or eax, edx
jne 0x409a70
mov ebx, dword [esp + 0x20]
jmp 0x409ad3
mov eax, 0x30
lea ebp, [esp + 0x46c]
mov word [esp + 0x46e], ax
mov edi, 1
mov dword [esp + 0x30], edi
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov esi, dword [esp + 0x34]
test edx, edx
je 0x409aec
mov ecx, 1
jmp 0x409afa
test esi, 0x20000
mov eax, 1
cmovne ecx, eax
mov eax, esi
mov dword [esp + 0x24], ecx
and eax, 0x50000
cmp eax, 0x40000
jne 0x409b32
mov eax, dword [esp + 0x38]
movzx edx, word [eax + 6]
lea eax, [ecx + edi]
cmp eax, edx
jae 0x409b2e
or dword [esp + 0x18], 4
sub edx, ecx
sub edx, edi
add ecx, edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x18]
add ebp, 2
cmp byte [esp + 0x13], 0
jne 0x409bd1
lea eax, [ecx + edi]
mov ecx, dword [esp + 0x14]
lea eax, [ecx + eax*2]
cmp dword [esp + 0x480], eax
jae 0x409b6f
mov eax, dword [esp + 0x24]
mov ebp, ecx
add eax, edi
mov byte [esp + 0x13], 1
lea ebp, [ebp + eax*2]
jmp 0x40a638
test dl, 1
je 0x409b7b
mov eax, 0x2d
jmp 0x409b8d
nop dword [eax + eax]
test esi, 0x20000
je 0x409b93
mov eax, 0x2b
mov word [ebx], ax
add ebx, 2
test dl, 4
je 0x409bbd
mov edx, dword ds:[esp + 0x60]
test edx, edx
je 0x409bba
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 [esp + 0x30]
lea ebx, [ebx + edx*2]
lea esi, [edi + edi]
push esi
push ebp
push ebx
call fcn.00423710
add esp, 0xc
add ebx, esi
mov dword [esp + 0x20], ebx
mov eax, dword ds:[esp + 0x24]
mov ebp, dword [esp + 0x14]
add eax, edi
lea ebp, [ebp + eax*2]
jmp 0x40a638
mov dword [esp + 0x18], 0
test dl, 0x40
je 0x409c05
movzx edx, word [edi + 4]
cmp edx, 0xa2
jbe 0x409c0a
mov edx, 0xa2
jmp 0x409c0a
mov edx, 6
mov esi, dword ds:[esp + 0x34]
lea ebp, [esp + 0x71]
movss xmm0, dword [edi + 0x10]
sub esp, 8
mov eax, ebp
mov ecx, esi
push eax
call fcn.0041a420
test al, al
jne 0x409c2f
mov byte [esp + 0x71], al
jmp 0x409c88
mov edx, dword [0x46fe54]
test edx, edx
je 0x409c5a
mov al, byte [esp + 0x71]
lea ecx, [esp + 0x71]
test al, al
je 0x409c5a
cmp al, 0x2e
je 0x409c53
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x409c45
jmp 0x409c5a
mov al, byte [0x46ed38]
mov byte [ecx], al
nop word [eax + eax]
test esi, 0x20000000
je 0x409c88
lea eax, [esp + 0x71]
test edx, edx
je 0x409c7c
push edx
push eax
call fcn.00429177
add esp, 8
jmp 0x409c88
push eax
call fcn.0042911b
add esp, 4
mov edi, dword [edi]
test edi, 0x8000
je 0x409cfe
mov al, byte [esp + 0x71]
lea ecx, [esp + 0x71]
mov ah, byte [0x46ed38]
test al, al
je 0x409cb4
cmp al, ah
je 0x409cb4
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x409ca8
mov al, byte [ecx]
inc ecx
test al, al
je 0x409cfe
mov al, byte ds:[ecx]
test al, al
je 0x409cd4
cmp al, 0x65
je 0x409cd4
cmp al, 0x45
je 0x409cd4
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x409cc4
mov al, byte [ecx - 1]
mov esi, ecx
dec ecx
cmp al, 0x30
jne 0x409ce8
nop
mov al, byte [ecx - 1]
dec ecx
cmp al, 0x30
je 0x409ce0
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 0x409cf0
lea esi, [esp + 0x71]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x409d05
sub esi, ecx
cmp byte [esp + 0x71], 0x2d
jne 0x409d22
mov edx, 1
lea ebp, [esp + 0x72]
dec esi
jmp 0x409d34
mov edx, dword [esp + 0x18]
test edi, 0x20000
mov eax, 2
cmovne edx, eax
mov eax, edi
mov dword [esp + 0x18], edx
and eax, 0x13000
cmp eax, 0x10000
jne 0x409e87
mov al, byte [ebp]
mov edi, ebp
sub al, 0x30
cmp al, 0xa
jae 0x409d64
mov al, byte ds:[edi + 1]
inc edi
sub al, 0x30
cmp al, 0xa
jb 0x409d56
mov eax, edi
sub eax, ebp
mov dword [esp + 0x1c], eax
lea edx, [eax + 2]
mov dword [esp + 0x24], edx
je 0x409d87
mov eax, 0xaaaaaaab
mul edx
mov eax, edx
mov edx, dword [esp + 0x24]
shr eax, 1
dec eax
jmp 0x409d89
xor eax, eax
mov dword [esp + 0x2c], eax
add eax, esi
add eax, eax
cmp dword [esp + 0x18], 0
lea ecx, [eax + 2]
cmove ecx, eax
cmp byte [esp + 0x13], 0
jne 0x409dc5
mov eax, dword [esp + 0x14]
add eax, ecx
cmp dword [esp + 0x480], eax
jae 0x409dc5
mov eax, dword ds:[esp + 0x1c]
mov dl, 1
mov byte [esp + 0x13], dl
jmp 0x409e4a
mov ecx, dword [esp + 0x1c]
mov eax, edx
xor edx, edx
div dword [esp + 0x54]
cmp byte [esp + 0x13], 0
jne 0x409e42
mov eax, dword [esp + 0x18]
test al, 1
je 0x409deb
mov eax, 0x2d
jmp 0x409df4
test al, 2
je 0x409dfe
mov eax, 0x2b
mov word [ebx], ax
add ebx, 2
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x409e46
movsx ax, byte [ebp]
dec ecx
inc ebp
mov word [ebx], ax
mov eax, edx
add ebx, 2
dec edx
test eax, eax
jne 0x409e3a
test ecx, ecx
je 0x409e3e
movzx eax, word [0x46ed78]
dec ecx
mov word [ebx], ax
mov edx, 1
movsx eax, byte [ebp]
mov word [ebx + 2], ax
add ebx, 4
inc ebp
test ecx, ecx
jne 0x409e06
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x1c]
mov dl, byte [esp + 0x13]
cmp dword [esp + 0x18], 0
mov ebp, dword [esp + 0x14]
je 0x409e58
add ebp, 2
add eax, dword [esp + 0x2c]
sub esi, dword [esp + 0x1c]
lea ebp, [ebp + eax*2]
mov dword [esp + 0x14], ebp
test dl, dl
jne case.default.0x4095a0
push ebx
mov edx, esi
mov ecx, edi
call fcn.004072e0
lea eax, [esi + esi]
lea ebx, [ebx + esi*2]
add ebp, eax
jmp 0x40a634
xor ecx, ecx
test edx, edx
setne cl
mov edx, ecx
test edi, 0x40000
je 0x409eb9
mov eax, dword [esp + 0x38]
movzx edi, word [eax + 6]
lea eax, [esi + ecx]
cmp eax, edi
jae 0x409eb9
or dword [esp + 0x18], 4
sub edi, esi
sub edi, ecx
mov dword [esp + 0x4c], edi
lea edx, [edi + ecx]
jmp 0x409ebd
mov edi, dword [esp + 0x4c]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x14]
test al, al
jne 0x409f46
lea eax, [edx + esi]
lea eax, [ecx + eax*2]
cmp dword [esp + 0x480], eax
jae 0x409eec
mov ebp, ecx
mov byte [esp + 0x13], 1
lea ebp, [ebp + edx*2]
jmp 0x40a638
mov eax, dword [esp + 0x18]
test al, 1
je 0x409efb
mov edi, 0x2d
jmp 0x409f04
test al, 2
je 0x409f12
mov edi, 0x2b
mov word [ebx], di
add ebx, 2
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x20], ebx
test al, 4
je 0x409f42
test edi, edi
je 0x409f34
mov ecx, edi
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 [esp + 0x14]
mov edi, dword [esp + 0x4c]
lea ecx, ds:[ecx + edx*2]
lea ebx, [ebx + edi*2]
mov dword [esp + 0x14], ecx
jmp 0x409f55
mov al, byte [esp + 0x13]
lea ecx, [ecx + edx*2]
mov dword [esp + 0x14], ecx
test al, al
jne 0x40a2fa
push ebx
mov edx, esi
mov ecx, ebp
call fcn.004072e0
mov ebp, dword [esp + 0x14]
lea eax, [esi + esi]
lea ebx, [ebx + esi*2]
add ebp, eax
jmp 0x40a634
mov dword [esp + 0x18], 0
test dl, 0x40
je 0x409f90
movzx edx, word [edi + 4]
cmp edx, 0xa2
jbe 0x409f95
mov edx, 0xa2
jmp 0x409f95
mov edx, 6
movsd xmm0, qword [edi + 0x10]
lea ebp, [esp + 0x71]
mov esi, dword [esp + 0x34]
sub esp, 0x10
mov eax, ebp
mov ecx, esi
movsd qword [esp + 8], xmm0
push eax
call fcn.0041a640
test al, al
jne 0x409fbf
mov byte [esp + 0x71], al
jmp 0x40a013
mov edx, dword [0x46fe54]
test edx, edx
je 0x409fed
mov al, byte [esp + 0x71]
lea ecx, [esp + 0x71]
test al, al
je 0x409fed
cmp al, 0x2e
je 0x409fe6
mov al, byte ds:[ecx + 1]
inc ecx
test al, al
jne 0x409fd5
jmp 0x409fed
mov al, byte [0x46ed38]
mov byte [ecx], al
test esi, 0x20000000
je 0x40a013
lea eax, [esp + 0x71]
test edx, edx
je 0x40a00a
push edx
push eax
call fcn.00429177
add esp, 8
jmp 0x40a013
push eax
call fcn.0042911b
add esp, 4
mov edi, dword ds:[edi]
test edi, 0x8000
je 0x40a09e
mov al, byte [esp + 0x71]
lea ecx, [esp + 0x71]
mov ah, byte [0x46ed38]
test al, al
je 0x40a04c
nop
cmp al, ah
je 0x40a04c
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40a040
mov al, byte [ecx]
inc ecx
test al, al
je 0x40a09e
mov al, byte [ecx]
test al, al
je 0x40a070
nop dword [eax]
cmp al, 0x65
je 0x40a070
cmp al, 0x45
je 0x40a070
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40a060
mov al, byte [ecx - 1]
mov esi, ecx
dec ecx
cmp al, 0x30
jne 0x40a088
nop word [eax + eax]
mov al, byte [ecx - 1]
dec ecx
cmp al, 0x30
je 0x40a080
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 0x40a090
lea esi, [esp + 0x71]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40a0a5
sub esi, ecx
cmp byte [esp + 0x71], 0x2d
jne 0x40a0c2
mov edx, 1
lea ebp, [esp + 0x72]
dec esi
jmp 0x40a0d4
mov edx, dword [esp + 0x18]
test edi, 0x20000
mov eax, 2
cmovne edx, eax
mov eax, edi
mov dword [esp + 0x18], edx
and eax, 0x13000
cmp eax, 0x10000
jne 0x40a1f1
mov al, byte [ebp]
mov edi, ebp
sub al, 0x30
cmp al, 0xa
jae 0x40a104
mov al, byte ds:[edi + 1]
inc edi
sub al, 0x30
cmp al, 0xa
jb 0x40a0f6
mov eax, edi
sub eax, ebp
mov dword [esp + 0x1c], eax
lea edx, [eax + 2]
mov dword [esp + 0x24], edx
je 0x40a127
mov eax, 0xaaaaaaab
mul edx
mov eax, edx
mov edx, dword [esp + 0x24]
shr eax, 1
dec eax
jmp 0x40a129
xor eax, eax
mov dword [esp + 0x2c], eax
add eax, esi
add eax, eax
cmp dword [esp + 0x18], 0
lea ecx, [eax + 2]
cmove ecx, eax
cmp byte [esp + 0x13], 0
jne 0x40a165
mov eax, dword [esp + 0x14]
add eax, ecx
cmp dword [esp + 0x480], eax
jae 0x40a165
mov eax, dword ds:[esp + 0x1c]
mov dl, 1
mov byte [esp + 0x13], dl
jmp 0x409e4a
mov ecx, dword [esp + 0x1c]
mov eax, edx
xor edx, edx
div dword [esp + 0x54]
cmp byte [esp + 0x13], 0
jne 0x409e42
mov eax, dword [esp + 0x18]
test al, 1
je 0x40a18b
mov eax, 0x2d
jmp 0x40a194
test al, 2
je 0x40a19e
mov eax, 0x2b
mov word [ebx], ax
add ebx, 2
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x409e46
nop word [eax + eax]
movsx ax, byte [ebp]
dec ecx
inc ebp
mov word [ebx], ax
mov eax, edx
add ebx, 2
dec edx
test eax, eax
jne 0x40a1e8
test ecx, ecx
je 0x409e3e
movzx eax, word [0x46ed78]
dec ecx
mov word [ebx], ax
mov edx, 1
movsx eax, byte [ebp]
mov word [ebx + 2], ax
add ebx, 4
inc ebp
test ecx, ecx
jne 0x40a1b0
jmp 0x409e3e
xor ecx, ecx
test edx, edx
setne cl
mov edx, ecx
test edi, 0x40000
je 0x40a229
mov eax, dword [esp + 0x38]
movzx edi, word [eax + 6]
lea eax, [esi + ecx]
cmp eax, edi
jae 0x40a229
or dword [esp + 0x18], 4
sub edi, esi
sub edi, ecx
mov dword [esp + 0x50], edi
lea edx, [edi + ecx]
jmp 0x40a22d
mov edi, dword [esp + 0x50]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x14]
test al, al
jne 0x40a2d4
lea eax, [edx + esi]
lea eax, [ecx + eax*2]
cmp dword [esp + 0x480], eax
jae 0x40a25c
mov ebp, ecx
mov byte [esp + 0x13], 1
lea ebp, [ebp + edx*2]
jmp 0x40a638
mov eax, dword [esp + 0x18]
test al, 1
je 0x40a272
mov ecx, 0x2d
mov word [ebx], cx
mov ecx, dword [esp + 0x14]
jmp 0x40a282
test al, 2
je 0x40a289
mov edi, 0x2b
mov word [ebx], di
mov edi, dword [esp + 0x50]
add ebx, 2
mov dword [esp + 0x20], ebx
test al, 4
je 0x40a2d0
test edi, edi
je 0x40a2ab
mov ecx, edi
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 [esp + 0x14]
mov edi, dword [esp + 0x50]
lea ecx, [ecx + edx*2]
mov edx, esi
lea ebx, [ebx + edi*2]
mov dword [esp + 0x14], ecx
push ebx
mov ecx, ebp
call fcn.004072e0
mov ebp, dword [esp + 0x14]
lea eax, [esi + esi]
lea ebx, [ebx + esi*2]
add ebp, eax
jmp 0x40a634
mov al, byte [esp + 0x13]
lea ecx, [ecx + edx*2]
mov dword [esp + 0x14], ecx
test al, al
jne 0x40a2fa
push ebx
mov edx, esi
mov ecx, ebp
call fcn.004072e0
mov ebp, dword [esp + 0x14]
lea eax, [esi + esi]
lea ebx, [ebx + esi*2]
add ebp, eax
jmp 0x40a634
mov ebp, dword ds:[esp + 0x14]
jmp case.default.0x4095a0
mov eax, dword [esp + 0x38]
xor ebp, ebp
mov edi, dword [edi + 0x10]
mov ecx, edi
mov dword [esp + 0x24], ebp
mov esi, dword [eax + 0x14]
mov edx, esi
call fcn.00440e80
or edi, esi
jne 0x40a35c
cmp byte [esp + 0x13], 0
mov ebp, dword [esp + 0x14]
jne 0x40a351
lea eax, [ebp + 2]
cmp dword [esp + 0x480], eax
jae 0x40a349
add ebx, 2
mov byte [esp + 0x13], 1
add ebp, 2
jmp 0x40a634
mov eax, 0x30
mov word [ebx], ax
add ebx, 2
add ebp, 2
jmp 0x40a634
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
test ecx, 0x100
je 0x40a372
movzx eax, byte [edx + 0xa]
jmp 0x40a375
or eax, 0xffffffff
movsd xmm1, qword [0x46b2c0]
comisd xmm0, xmm1
jb 0x40a3a8
movsd xmm2, qword [0x46b2b0]
nop dword [eax + eax]
cmp ebp, 7
jae 0x40a3a4
cmp ebp, eax
jae 0x40a3a4
mulsd xmm0, xmm2
inc ebp
comisd xmm0, xmm1
jae 0x40a390
mov dword [esp + 0x24], ebp
test cl, 0x40
je 0x40a3b3
movzx eax, word [edx + 4]
jmp 0x40a3b8
mov eax, 2
movzx edx, ax
lea edi, [esp + 0x71]
cmp edx, 0xa2
mov dword [esp + 0x30], 0
mov eax, 0xa2
mov ecx, 0x1804c
cmova edx, eax
sub esp, 0x10
mov eax, edi
movsd qword [esp + 8], xmm0
push eax
call fcn.0041a640
test al, al
jne 0x40a3f7
xor dl, dl
mov byte [esp + 0x71], dl
jmp 0x40a42a
cmp dword [0x46fe54], 0
mov dl, byte [esp + 0x71]
je 0x40a42a
lea ecx, [esp + 0x71]
test dl, dl
je 0x40a42a
mov al, dl
nop
cmp al, 0x2e
je 0x40a41e
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40a410
jmp 0x40a42a
mov ax, word [0x46ed38]
mov byte [ecx], al
mov dl, byte [esp + 0x71]
lea ecx, [esp + 0x71]
test dl, dl
je 0x40a444
mov al, dl
cmp al, byte [0x46ed38]
je 0x40a444
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40a434
mov al, byte [ecx]
inc ecx
test al, al
je 0x40a496
mov al, byte [ecx]
test al, al
je 0x40a464
cmp al, 0x65
je 0x40a464
cmp al, 0x45
je 0x40a464
mov al, byte ds:[ecx + 1]
inc ecx
test al, al
jne 0x40a451
mov al, byte [ecx - 1]
mov esi, ecx
dec ecx
cmp al, 0x30
jne 0x40a478
nop
mov al, byte [ecx - 1]
dec ecx
cmp al, 0x30
je 0x40a470
cmp al, byte [0x46ed38]
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 0x40a484
mov dl, byte [esp + 0x71]
lea esi, [esp + 0x71]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x40a4a0
sub esi, ecx
cmp dl, 0x2d
jne 0x40a4bb
mov dword [esp + 0x30], 1
lea edi, [esp + 0x72]
dec esi
mov al, byte [edi]
mov ebp, edi
sub al, 0x30
cmp al, 0xa
jae 0x40a4cf
mov al, byte [ebp + 1]
inc ebp
sub al, 0x30
cmp al, 0xa
jb 0x40a4c5
mov eax, ebp
sub eax, edi
mov dword [esp + 0x1c], eax
lea edx, [eax + 2]
mov dword [esp + 0x28], edx
je 0x40a4f4
mov eax, 0xaaaaaaab
mul edx
mov eax, edx
mov edx, dword [esp + 0x28]
shr eax, 1
dec eax
jmp 0x40a4f6
xor eax, eax
mov dword [esp + 0x2c], eax
add eax, esi
add eax, eax
cmp dword [esp + 0x30], 0
lea ecx, [eax + 2]
cmove ecx, eax
cmp byte [esp + 0x13], 0
jne 0x40a52e
mov eax, dword [esp + 0x14]
add eax, ecx
cmp dword [esp + 0x480], eax
jae 0x40a52e
mov eax, dword [esp + 0x1c]
mov dl, 1
mov byte [esp + 0x13], dl
jmp 0x40a5a2
mov ecx, dword ds:[esp + 0x1c]
mov eax, edx
xor edx, edx
div dword [esp + 0x54]
cmp byte [esp + 0x13], 0
jne 0x40a59a
cmp dword [esp + 0x30], 0
je 0x40a558
mov eax, 0x2d
mov word [ebx], ax
add ebx, 2
mov eax, dword ds:[esp + 0x1c]
test eax, eax
je 0x40a59e
movsx ax, byte [edi]
dec ecx
inc edi
mov word [ebx], ax
mov eax, edx
add ebx, 2
dec edx
test eax, eax
jne 0x40a596
test ecx, ecx
je 0x40a59a
movzx eax, word [0x46ed78]
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 0x40a564
mov eax, dword [esp + 0x1c]
mov dl, byte [esp + 0x13]
cmp dword [esp + 0x30], 0
je 0x40a5ae
add dword [esp + 0x14], 2
add eax, dword ds:[esp + 0x2c]
mov ecx, dword [esp + 0x14]
sub esi, dword [esp + 0x1c]
lea edi, [ecx + eax*2]
test dl, dl
jne 0x40a61c
push ebx
mov edx, esi
mov ecx, ebp
call fcn.004072e0
lea edi, [edi + esi*2]
lea ebx, [ebx + esi*2]
mov esi, dword [esp + 0x24]
mov eax, dword [esi*8 + 0x46ed40]
add eax, 2
add eax, edi
cmp dword [esp + 0x480], eax
jae 0x40a5f8
mov byte [esp + 0x13], 1
jmp 0x40a620
mov eax, 0x20
mov word [ebx], ax
lea eax, [ebx + 2]
push dword [esi*8 + 0x46ed40]
push dword [esi*8 + 0x46ed44]
push eax
call fcn.00423710
add esp, 0xc
jmp 0x40a620
mov esi, dword [esp + 0x24]
mov ecx, dword [esi*8 + 0x46ed40]
lea eax, [ecx + 2]
lea ebp, [ecx + 2]
shr eax, 1
add ebp, edi
lea ebx, [ebx + eax*2]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebp
mov edi, dword [esp + 0x38]
mov ecx, ebp
sub ecx, dword [esp + 0x68]
mov edx, dword [edi]
test edx, 0xc0000000
je 0x40a723
movzx esi, word ds:[edi + 6]
add esi, esi
cmp ecx, esi
jae 0x40a723
sub esi, ecx
cmp byte [esp + 0x13], 0
jne 0x40a712
lea eax, ds:[esi + ebp]
cmp dword [esp + 0x480], eax
jae 0x40a693
mov byte [esp + 0x13], 1
jmp 0x40a712
test dl, dl
jns 0x40a69d
movzx eax, word [edi + 8]
jmp 0x40a6a2
mov eax, 0x20
mov edi, esi
mov dword [esp + 0x2c], eax
shr edi, 1
test edx, edx
jns 0x40a6cf
test edi, edi
je 0x40a712
movzx edx, ax
mov ecx, edi
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
jmp 0x40a712
mov eax, ecx
mov ebp, ebx
and eax, 0xfffffffe
sub ebp, eax
lea eax, [edi*2]
push ecx
add eax, ebp
push ebp
push eax
lfence
call fcn.00423710
add esp, 0xc
test edi, edi
je 0x40a70e
mov eax, dword [esp + 0x2c]
mov ecx, edi
movzx edx, ax
mov edi, ebp
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 ebp, dword [esp + 0x14]
mov eax, esi
shr eax, 1
add ebp, esi
mov dword [esp + 0x14], ebp
lea ebx, [ebx + eax*2]
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov cl, byte [esp + 0x13]
test eax, eax
jne 0x409560
test cl, cl
jne 0x40a74b
lea eax, ss:[ebp + 2]
cmp dword [esp + 0x480], eax
jae 0x40a778
mov cl, 1
mov eax, dword [esp + 0x64]
test eax, eax
je 0x40a758
xor edx, edx
mov word [eax], dx
pop edi
test cl, cl
mov ecx, dword [esp + 0x470]
pop esi
pop ebp
sete al
pop ebx
xor ecx, esp
call fcn.004218f3
add esp, 0x468
ret 0xc
xor eax, eax
mov word [ebx], ax
jmp 0x40a758