Function at 0x409080
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x468
mov eax, dword [0x46d040]
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 [0x46dd0c], 1
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebp
mov byte [esp + 0x13], cl
jne 0x4091d5
mov edi, 0x46dd0c
lock bts dword ds:[edi], 0x1f
setb al
test al, al
jne 0x4091b8
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 0x40911b
mov ax, word [esp + 0x68]
test ax, ax
je 0x40911b
cmp word [esp + 0x6a], bp
jne 0x40911b
mov word [0x46dd14], ax
push 4
lea eax, [esp + 0x6c]
push eax
push 0xf
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40914d
mov ax, word [esp + 0x68]
test ax, ax
je 0x40914d
nop dword [eax]
cmp word [esp + 0x6a], bp
jne 0x40914d
mov word [0x46dd58], ax
cmp word [0x46dd14], 0x2e
je 0x40916d
push 0x46542c
push 0
call fcn.0042921b
add esp, 8
mov dword [0x46ee34], eax
lock bts dword [edi], 0
setb al
test al, al
jne 0x4091c9
mov esi, dword [0x46dd10]
nop
test esi, esi
je 0x40918d
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 0x4091c9
test esi, esi
je 0x4091c9
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x46dd10], ebp
jmp 0x4091c9
test byte [0x46dd0c], 1
nop
jne 0x4091d1
mov ecx, edi
call fcn.00414d00
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.0x409220
nop dword [eax]
jmp dword [eax*4 + 0x40a400]
test cl, cl
jne 0x40924c
lea eax, [ebp + 2]
cmp esi, eax
jae 0x409245
add ebx, 2
mov byte [esp + 0x13], 1
add ebp, 2
jmp 0x40a2b4
mov ax, word [edi + 0x10]
mov word [ebx], ax
add ebx, 2
add ebp, 2
jmp 0x40a2b4
test cl, cl
jne 0x409282
mov ecx, dword [edi + 0x10]
lea eax, [ecx + ebp]
cmp esi, eax
jae 0x409275
mov eax, ecx
mov byte [esp + 0x13], 1
shr eax, 1
add ebp, ecx
jmp 0x40a2b1
push ecx
push dword [edi + 0x14]
push ebx
call fcn.00422f50
add esp, 0xc
mov eax, dword [edi + 0x10]
shr eax, 1
add ebp, dword [edi + 0x10]
jmp 0x40a2b1
mov ecx, dword [edi + 0x10]
call fcn.00406640
cmp byte ds:[esp + 0x13], 0
mov esi, eax
jne 0x4092d2
lea edx, [esi + esi]
lea ecx, [edx + ebp]
cmp dword [esp + 0x480], ecx
jae 0x4092c5
lea eax, ds:[esi + esi]
mov byte [esp + 0x13], 1
lea ebx, [ebx + esi*2]
add ebp, eax
jmp 0x40a2b4
push edx
push dword [edi + 0x10]
push ebx
call fcn.00422f50
add esp, 0xc
lea eax, [esi + esi]
lea ebx, [ebx + esi*2]
add ebp, eax
jmp 0x40a2b4
nop
cmp edx, 3
jne 0x4092f1
mov eax, dword [esp + 0x38]
mov edi, dword [edi + 0x14]
mov esi, dword [eax + 0x10]
jmp 0x409309
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 0x409300
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.0x409220
cmp byte [esp + 0x13], 0
jne 0x40935c
mov ecx, dword [esp + 0x58]
lea eax, [ecx + ebp]
cmp dword [esp + 0x480], eax
jae 0x409345
mov eax, ecx
mov byte [esp + 0x13], 1
shr eax, 1
add ebp, ecx
jmp 0x40a2b1
push esi
push edi
push 0
push ecx
push ebx
lfence
call dword [sym.imp.ntdll.dll_RtlMultiByteToUnicodeN]
test eax, eax
js case.default.0x409220
mov ecx, dword [esp + 0x58]
mov eax, ecx
shr eax, 1
add ebp, ecx
jmp 0x40a2b1
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 0x40938e
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x1c], 0xa
test edx, 0x100
je 0x4093b0
mov al, byte [edi + 0xa]
cmp al, 2
jb 0x4093b0
cmp al, 0x45
ja 0x4093b0
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 0x409472
nop dword [eax + eax]
test edx, 0x10000
je 0x40944f
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 0x409449
test ecx, ecx
je 0x40948f
movzx eax, word [0x46dd58]
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 0x4093f0
jmp 0x40948f
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 0x409453
mov ebx, dword [esp + 0x20]
jmp 0x40948b
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 0x4094a4
mov ecx, 1
jmp 0x4094b2
test esi, 0x20000
mov eax, 1
cmovne ecx, eax
mov eax, esi
mov dword [esp + 0x30], ecx
and eax, 0x50000
cmp eax, 0x40000
jne 0x4094ed
mov eax, dword [esp + 0x38]
movzx edx, word [eax + 6]
lea eax, [ecx + edi]
cmp eax, edx
jae 0x4094e9
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 0x40957e
lea eax, [ecx + edi]
mov ecx, dword [esp + 0x14]
lea eax, [ecx + eax*2]
cmp dword [esp + 0x480], eax
jae 0x409525
mov eax, dword ds:[esp + 0x30]
mov ebp, ecx
add eax, edi
mov byte [esp + 0x13], 1
lea ebp, [ebp + eax*2]
jmp 0x40a2b8
test dl, 1
je 0x409531
mov eax, 0x2d
jmp 0x40953e
test esi, 0x20000
je 0x409544
mov eax, 0x2b
mov word [ebx], ax
add ebx, 2
test dl, 4
je 0x40956a
mov edx, dword [esp + 0x5c]
test edx, edx
je 0x409567
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.00422f50
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 0x40a2b8
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 0x4095d0
jl 0x4095aa
test ecx, ecx
jae 0x4095d0
neg ecx
adc eax, 0
neg eax
mov dword [esp + 0x28], eax
mov eax, 1
mov dword [esp + 0x18], eax
jmp 0x4095cc
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 0x40961e
mov al, byte [edi + 0xa]
mov dword [esp + 0x40], esi
mov dword [esp + 0x1c], 0
cmp al, 2
jb 0x40961e
mov dword [esp + 0x40], esi
mov dword [esp + 0x1c], 0
cmp al, 0x45
ja 0x40961e
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 0x40973a
test dword [esp + 0x34], 0x10000
je 0x4096e8
xor eax, eax
mov dword [esp + 0x24], eax
push dword [esp + 0x1c]
push esi
push edx
push ecx
call fcn.0043eda0
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.0043ed30
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 0x4096ce
mov eax, ecx
or eax, edx
je 0x409757
mov ax, word [0x46dd58]
mov esi, dword [esp + 0x40]
mov word [ebp], ax
sub ebp, 2
inc edi
jmp 0x40965a
mov esi, dword ds:[esp + 0x40]
mov dword [esp + 0x24], eax
mov eax, ecx
or eax, edx
mov dword [esp + 0x30], edi
jne 0x409660
jmp 0x409757
mov ebx, dword [esp + 0x1c]
nop dword [eax]
push ebx
push esi
push edx
push ecx
call fcn.0043eda0
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.0043ed30
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 0x4096f0
mov ebx, dword [esp + 0x20]
jmp 0x409753
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 0x40976c
mov ecx, 1
jmp 0x40977a
test esi, 0x20000
mov eax, 1
cmovne ecx, eax
mov eax, esi
mov dword [esp + 0x24], ecx
and eax, 0x50000
cmp eax, 0x40000
jne 0x4097b2
mov eax, dword [esp + 0x38]
movzx edx, word [eax + 6]
lea eax, [ecx + edi]
cmp eax, edx
jae 0x4097ae
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 0x409851
lea eax, [ecx + edi]
mov ecx, dword [esp + 0x14]
lea eax, [ecx + eax*2]
cmp dword [esp + 0x480], eax
jae 0x4097ef
mov eax, dword [esp + 0x24]
mov ebp, ecx
add eax, edi
mov byte [esp + 0x13], 1
lea ebp, [ebp + eax*2]
jmp 0x40a2b8
test dl, 1
je 0x4097fb
mov eax, 0x2d
jmp 0x40980d
nop dword [eax + eax]
test esi, 0x20000
je 0x409813
mov eax, 0x2b
mov word [ebx], ax
add ebx, 2
test dl, 4
je 0x40983d
mov edx, dword ds:[esp + 0x60]
test edx, edx
je 0x40983a
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.00422f50
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 0x40a2b8
mov dword [esp + 0x18], 0
test dl, 0x40
je 0x409885
movzx edx, word [edi + 4]
cmp edx, 0xa2
jbe 0x40988a
mov edx, 0xa2
jmp 0x40988a
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.00419ce0
test al, al
jne 0x4098af
mov byte [esp + 0x71], al
jmp 0x409908
mov edx, dword [0x46ee34]
test edx, edx
je 0x4098da
mov al, byte [esp + 0x71]
lea ecx, [esp + 0x71]
test al, al
je 0x4098da
cmp al, 0x2e
je 0x4098d3
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4098c5
jmp 0x4098da
mov al, byte [0x46dd14]
mov byte [ecx], al
nop word [eax + eax]
test esi, 0x20000000
je 0x409908
lea eax, [esp + 0x71]
test edx, edx
je 0x4098fc
push edx
push eax
call fcn.004289b7
add esp, 8
jmp 0x409908
push eax
call fcn.0042895b
add esp, 4
mov edi, dword [edi]
test edi, 0x8000
je 0x40997e
mov al, byte [esp + 0x71]
lea ecx, [esp + 0x71]
mov ah, byte [0x46dd14]
test al, al
je 0x409934
cmp al, ah
je 0x409934
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x409928
mov al, byte [ecx]
inc ecx
test al, al
je 0x40997e
mov al, byte ds:[ecx]
test al, al
je 0x409954
cmp al, 0x65
je 0x409954
cmp al, 0x45
je 0x409954
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x409944
mov al, byte [ecx - 1]
mov esi, ecx
dec ecx
cmp al, 0x30
jne 0x409968
nop
mov al, byte [ecx - 1]
dec ecx
cmp al, 0x30
je 0x409960
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 0x409970
lea esi, [esp + 0x71]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x409985
sub esi, ecx
cmp byte [esp + 0x71], 0x2d
jne 0x4099a2
mov edx, 1
lea ebp, [esp + 0x72]
dec esi
jmp 0x4099b4
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 0x409b07
mov al, byte [ebp]
mov edi, ebp
sub al, 0x30
cmp al, 0xa
jae 0x4099e4
mov al, byte ds:[edi + 1]
inc edi
sub al, 0x30
cmp al, 0xa
jb 0x4099d6
mov eax, edi
sub eax, ebp
mov dword [esp + 0x1c], eax
lea edx, [eax + 2]
mov dword [esp + 0x24], edx
je 0x409a07
mov eax, 0xaaaaaaab
mul edx
mov eax, edx
mov edx, dword [esp + 0x24]
shr eax, 1
dec eax
jmp 0x409a09
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 0x409a45
mov eax, dword [esp + 0x14]
add eax, ecx
cmp dword [esp + 0x480], eax
jae 0x409a45
mov eax, dword ds:[esp + 0x1c]
mov dl, 1
mov byte [esp + 0x13], dl
jmp 0x409aca
mov ecx, dword [esp + 0x1c]
mov eax, edx
xor edx, edx
div dword [esp + 0x54]
cmp byte [esp + 0x13], 0
jne 0x409ac2
mov eax, dword [esp + 0x18]
test al, 1
je 0x409a6b
mov eax, 0x2d
jmp 0x409a74
test al, 2
je 0x409a7e
mov eax, 0x2b
mov word [ebx], ax
add ebx, 2
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x409ac6
movsx ax, byte [ebp]
dec ecx
inc ebp
mov word [ebx], ax
mov eax, edx
add ebx, 2
dec edx
test eax, eax
jne 0x409aba
test ecx, ecx
je 0x409abe
movzx eax, word [0x46dd58]
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 0x409a86
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 0x409ad8
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.0x409220
push ebx
mov edx, esi
mov ecx, edi
call fcn.00406f80
lea eax, [esi + esi]
lea ebx, [ebx + esi*2]
add ebp, eax
jmp 0x40a2b4
xor ecx, ecx
test edx, edx
setne cl
mov edx, ecx
test edi, 0x40000
je 0x409b39
mov eax, dword [esp + 0x38]
movzx edi, word [eax + 6]
lea eax, [esi + ecx]
cmp eax, edi
jae 0x409b39
or dword [esp + 0x18], 4
sub edi, esi
sub edi, ecx
mov dword [esp + 0x4c], edi
lea edx, [edi + ecx]
jmp 0x409b3d
mov edi, dword [esp + 0x4c]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x14]
test al, al
jne 0x409bc6
lea eax, [edx + esi]
lea eax, [ecx + eax*2]
cmp dword [esp + 0x480], eax
jae 0x409b6c
mov ebp, ecx
mov byte [esp + 0x13], 1
lea ebp, [ebp + edx*2]
jmp 0x40a2b8
mov eax, dword [esp + 0x18]
test al, 1
je 0x409b7b
mov edi, 0x2d
jmp 0x409b84
test al, 2
je 0x409b92
mov edi, 0x2b
mov word [ebx], di
add ebx, 2
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x20], ebx
test al, 4
je 0x409bc2
test edi, edi
je 0x409bb4
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 0x409bd5
mov al, byte [esp + 0x13]
lea ecx, [ecx + edx*2]
mov dword [esp + 0x14], ecx
test al, al
jne 0x409f7a
push ebx
mov edx, esi
mov ecx, ebp
call fcn.00406f80
mov ebp, dword [esp + 0x14]
lea eax, [esi + esi]
lea ebx, [ebx + esi*2]
add ebp, eax
jmp 0x40a2b4
mov dword [esp + 0x18], 0
test dl, 0x40
je 0x409c10
movzx edx, word [edi + 4]
cmp edx, 0xa2
jbe 0x409c15
mov edx, 0xa2
jmp 0x409c15
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.00419f00
test al, al
jne 0x409c3f
mov byte [esp + 0x71], al
jmp 0x409c93
mov edx, dword [0x46ee34]
test edx, edx
je 0x409c6d
mov al, byte [esp + 0x71]
lea ecx, [esp + 0x71]
test al, al
je 0x409c6d
cmp al, 0x2e
je 0x409c66
mov al, byte ds:[ecx + 1]
inc ecx
test al, al
jne 0x409c55
jmp 0x409c6d
mov al, byte [0x46dd14]
mov byte [ecx], al
test esi, 0x20000000
je 0x409c93
lea eax, [esp + 0x71]
test edx, edx
je 0x409c8a
push edx
push eax
call fcn.004289b7
add esp, 8
jmp 0x409c93
push eax
call fcn.0042895b
add esp, 4
mov edi, dword ds:[edi]
test edi, 0x8000
je 0x409d1e
mov al, byte [esp + 0x71]
lea ecx, [esp + 0x71]
mov ah, byte [0x46dd14]
test al, al
je 0x409ccc
nop
cmp al, ah
je 0x409ccc
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x409cc0
mov al, byte [ecx]
inc ecx
test al, al
je 0x409d1e
mov al, byte [ecx]
test al, al
je 0x409cf0
nop dword [eax]
cmp al, 0x65
je 0x409cf0
cmp al, 0x45
je 0x409cf0
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x409ce0
mov al, byte [ecx - 1]
mov esi, ecx
dec ecx
cmp al, 0x30
jne 0x409d08
nop word [eax + eax]
mov al, byte [ecx - 1]
dec ecx
cmp al, 0x30
je 0x409d00
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 0x409d10
lea esi, [esp + 0x71]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x409d25
sub esi, ecx
cmp byte [esp + 0x71], 0x2d
jne 0x409d42
mov edx, 1
lea ebp, [esp + 0x72]
dec esi
jmp 0x409d54
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 0x409e71
mov al, byte [ebp]
mov edi, ebp
sub al, 0x30
cmp al, 0xa
jae 0x409d84
mov al, byte ds:[edi + 1]
inc edi
sub al, 0x30
cmp al, 0xa
jb 0x409d76
mov eax, edi
sub eax, ebp
mov dword [esp + 0x1c], eax
lea edx, [eax + 2]
mov dword [esp + 0x24], edx
je 0x409da7
mov eax, 0xaaaaaaab
mul edx
mov eax, edx
mov edx, dword [esp + 0x24]
shr eax, 1
dec eax
jmp 0x409da9
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 0x409de5
mov eax, dword [esp + 0x14]
add eax, ecx
cmp dword [esp + 0x480], eax
jae 0x409de5
mov eax, dword ds:[esp + 0x1c]
mov dl, 1
mov byte [esp + 0x13], dl
jmp 0x409aca
mov ecx, dword [esp + 0x1c]
mov eax, edx
xor edx, edx
div dword [esp + 0x54]
cmp byte [esp + 0x13], 0
jne 0x409ac2
mov eax, dword [esp + 0x18]
test al, 1
je 0x409e0b
mov eax, 0x2d
jmp 0x409e14
test al, 2
je 0x409e1e
mov eax, 0x2b
mov word [ebx], ax
add ebx, 2
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x409ac6
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 0x409e68
test ecx, ecx
je 0x409abe
movzx eax, word [0x46dd58]
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 0x409e30
jmp 0x409abe
xor ecx, ecx
test edx, edx
setne cl
mov edx, ecx
test edi, 0x40000
je 0x409ea9
mov eax, dword [esp + 0x38]
movzx edi, word [eax + 6]
lea eax, [esi + ecx]
cmp eax, edi
jae 0x409ea9
or dword [esp + 0x18], 4
sub edi, esi
sub edi, ecx
mov dword [esp + 0x50], edi
lea edx, [edi + ecx]
jmp 0x409ead
mov edi, dword [esp + 0x50]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x14]
test al, al
jne 0x409f54
lea eax, [edx + esi]
lea eax, [ecx + eax*2]
cmp dword [esp + 0x480], eax
jae 0x409edc
mov ebp, ecx
mov byte [esp + 0x13], 1
lea ebp, [ebp + edx*2]
jmp 0x40a2b8
mov eax, dword [esp + 0x18]
test al, 1
je 0x409ef2
mov ecx, 0x2d
mov word [ebx], cx
mov ecx, dword [esp + 0x14]
jmp 0x409f02
test al, 2
je 0x409f09
mov edi, 0x2b
mov word [ebx], di
mov edi, dword [esp + 0x50]
add ebx, 2
mov dword [esp + 0x20], ebx
test al, 4
je 0x409f50
test edi, edi
je 0x409f2b
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.00406f80
mov ebp, dword [esp + 0x14]
lea eax, [esi + esi]
lea ebx, [ebx + esi*2]
add ebp, eax
jmp 0x40a2b4
mov al, byte [esp + 0x13]
lea ecx, [ecx + edx*2]
mov dword [esp + 0x14], ecx
test al, al
jne 0x409f7a
push ebx
mov edx, esi
mov ecx, ebp
call fcn.00406f80
mov ebp, dword [esp + 0x14]
lea eax, [esi + esi]
lea ebx, [ebx + esi*2]
add ebp, eax
jmp 0x40a2b4
mov ebp, dword ds:[esp + 0x14]
jmp case.default.0x409220
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.004406b0
or edi, esi
jne 0x409fdc
cmp byte [esp + 0x13], 0
mov ebp, dword [esp + 0x14]
jne 0x409fd1
lea eax, [ebp + 2]
cmp dword [esp + 0x480], eax
jae 0x409fc9
add ebx, 2
mov byte [esp + 0x13], 1
add ebp, 2
jmp 0x40a2b4
mov eax, 0x30
mov word [ebx], ax
add ebx, 2
add ebp, 2
jmp 0x40a2b4
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
test ecx, 0x100
je 0x409ff2
movzx eax, byte [edx + 0xa]
jmp 0x409ff5
or eax, 0xffffffff
movsd xmm1, qword [0x46a0b8]
comisd xmm0, xmm1
jb 0x40a028
movsd xmm2, qword [0x46a0a8]
nop dword [eax + eax]
cmp ebp, 7
jae 0x40a024
cmp ebp, eax
jae 0x40a024
mulsd xmm0, xmm2
inc ebp
comisd xmm0, xmm1
jae 0x40a010
mov dword [esp + 0x24], ebp
test cl, 0x40
je 0x40a033
movzx eax, word [edx + 4]
jmp 0x40a038
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.00419f00
test al, al
jne 0x40a077
xor dl, dl
mov byte [esp + 0x71], dl
jmp 0x40a0aa
cmp dword [0x46ee34], 0
mov dl, byte [esp + 0x71]
je 0x40a0aa
lea ecx, [esp + 0x71]
test dl, dl
je 0x40a0aa
mov al, dl
nop
cmp al, 0x2e
je 0x40a09e
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40a090
jmp 0x40a0aa
mov ax, word [0x46dd14]
mov byte [ecx], al
mov dl, byte [esp + 0x71]
lea ecx, [esp + 0x71]
test dl, dl
je 0x40a0c4
mov al, dl
cmp al, byte [0x46dd14]
je 0x40a0c4
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40a0b4
mov al, byte [ecx]
inc ecx
test al, al
je 0x40a116
mov al, byte [ecx]
test al, al
je 0x40a0e4
cmp al, 0x65
je 0x40a0e4
cmp al, 0x45
je 0x40a0e4
mov al, byte ds:[ecx + 1]
inc ecx
test al, al
jne 0x40a0d1
mov al, byte [ecx - 1]
mov esi, ecx
dec ecx
cmp al, 0x30
jne 0x40a0f8
nop
mov al, byte [ecx - 1]
dec ecx
cmp al, 0x30
je 0x40a0f0
cmp al, byte [0x46dd14]
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 0x40a104
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 0x40a120
sub esi, ecx
cmp dl, 0x2d
jne 0x40a13b
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 0x40a14f
mov al, byte [ebp + 1]
inc ebp
sub al, 0x30
cmp al, 0xa
jb 0x40a145
mov eax, ebp
sub eax, edi
mov dword [esp + 0x1c], eax
lea edx, [eax + 2]
mov dword [esp + 0x28], edx
je 0x40a174
mov eax, 0xaaaaaaab
mul edx
mov eax, edx
mov edx, dword [esp + 0x28]
shr eax, 1
dec eax
jmp 0x40a176
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 0x40a1ae
mov eax, dword [esp + 0x14]
add eax, ecx
cmp dword [esp + 0x480], eax
jae 0x40a1ae
mov eax, dword [esp + 0x1c]
mov dl, 1
mov byte [esp + 0x13], dl
jmp 0x40a222
mov ecx, dword ds:[esp + 0x1c]
mov eax, edx
xor edx, edx
div dword [esp + 0x54]
cmp byte [esp + 0x13], 0
jne 0x40a21a
cmp dword [esp + 0x30], 0
je 0x40a1d8
mov eax, 0x2d
mov word [ebx], ax
add ebx, 2
mov eax, dword ds:[esp + 0x1c]
test eax, eax
je 0x40a21e
movsx ax, byte [edi]
dec ecx
inc edi
mov word [ebx], ax
mov eax, edx
add ebx, 2
dec edx
test eax, eax
jne 0x40a216
test ecx, ecx
je 0x40a21a
movzx eax, word [0x46dd58]
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 0x40a1e4
mov eax, dword [esp + 0x1c]
mov dl, byte [esp + 0x13]
cmp dword [esp + 0x30], 0
je 0x40a22e
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 0x40a29c
push ebx
mov edx, esi
mov ecx, ebp
call fcn.00406f80
lea edi, [edi + esi*2]
lea ebx, [ebx + esi*2]
mov esi, dword [esp + 0x24]
mov eax, dword [esi*8 + 0x46dd20]
add eax, 2
add eax, edi
cmp dword [esp + 0x480], eax
jae 0x40a278
mov byte [esp + 0x13], 1
jmp 0x40a2a0
mov eax, 0x20
mov word [ebx], ax
lea eax, [ebx + 2]
push dword [esi*8 + 0x46dd20]
push dword [esi*8 + 0x46dd24]
push eax
call fcn.00422f50
add esp, 0xc
jmp 0x40a2a0
mov esi, dword [esp + 0x24]
mov ecx, dword [esi*8 + 0x46dd20]
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 0x40a3a3
movzx esi, word ds:[edi + 6]
add esi, esi
cmp ecx, esi
jae 0x40a3a3
sub esi, ecx
cmp byte [esp + 0x13], 0
jne 0x40a392
lea eax, ds:[esi + ebp]
cmp dword [esp + 0x480], eax
jae 0x40a313
mov byte [esp + 0x13], 1
jmp 0x40a392
test dl, dl
jns 0x40a31d
movzx eax, word [edi + 8]
jmp 0x40a322
mov eax, 0x20
mov edi, esi
mov dword [esp + 0x2c], eax
shr edi, 1
test edx, edx
jns 0x40a34f
test edi, edi
je 0x40a392
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 0x40a392
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.00422f50
add esp, 0xc
test edi, edi
je 0x40a38e
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 0x4091e0
test cl, cl
jne 0x40a3cb
lea eax, ss:[ebp + 2]
cmp dword [esp + 0x480], eax
jae 0x40a3f8
mov cl, 1
mov eax, dword [esp + 0x64]
test eax, eax
je 0x40a3d8
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.00421141
add esp, 0x468
ret 0xc
xor eax, eax
mov word [ebx], ax
jmp 0x40a3d8