Function at 0x59fa07
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x72acfc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, dword [esi + 8]
mov dword [ebp - 0x20c], eax
mov eax, dword [esi]
xor edx, edx
push edi
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x21c], eax
mov eax, dword [esi + 4]
mov dword [ecx], edx
push esi
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x214], edx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x208], edx
mov dword [edi], edx
call fcn.0059f616
test al, al
jne 0x59ffae
mov eax, dword [ebp + 0x18]
cmp eax, 0xc
jg 0x59fc52
je 0x59fbc6
mov ecx, eax
sub ecx, 0
je 0x59fb46
dec ecx
je 0x59fad3
dec ecx
dec ecx
je 0x59fb46
dec ecx
jne 0x59fc6d
mov eax, dword [esi]
mov ecx, dword [0x72da30]
imul eax, eax, 0x24
push edi
push dword [eax + ecx + 4]
push dword [ebp - 0x210]
push dword [ebp + 0xc]
push dword [ebp - 0x20c]
call fcn.0059dbd6
mov dword [ebp - 0x208], eax
jmp 0x59ffa0
call fcn.005a079c
test al, al
je 0x59fb1f
push dword [esi + 0xc]
call fcn.0059f6a7
test al, al
je 0x59fb1f
mov eax, dword [esi]
push dword [ebp + 0xc]
imul eax, eax, 0x24
push dword [ebp - 0x20c]
mov ecx, dword [0x72da30]
push 2
push dword [eax + ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
mov dword [ebp - 0x208], eax
jbe 0x59fb1f
mov ecx, dword [ebp - 0x210]
mov dword [ecx], eax
jmp 0x59ffa0
mov eax, dword [esi + 0xc]
mov ecx, dword [0x72da30]
mov dword [ebp - 0x218], eax
mov eax, dword [esi]
imul eax, eax, 0x24
mov ebx, dword [eax + ecx + 4]
mov dword [ebp - 0x214], 0x43b92c
jmp 0x59fc1f
mov ebx, dword [esi]
push ebx
call fcn.0059ca26
test al, al
jne 0x59ffae
and dword [ebp - 0x228], 0
lea eax, [ebp - 0x228]
push eax
xor eax, eax
cmp dword [ebp + 0x18], eax
setne al
inc eax
push eax
push ebx
call fcn.0059eea9
test eax, eax
mov dword [edi], eax
jl 0x59fb84
mov ecx, dword [ebp - 0x228]
test ecx, ecx
jne 0x59fb8a
mov ecx, dword [ebp - 0x21c]
cmp eax, 0x8007000e
je 0x59ffa0
cmp dword [ebp + 0x18], 0
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], 0x43b954
je 0x59fbb8
mov dword [ebp - 0x214], 0x43b978
mov eax, dword [0x72da30]
imul ecx, ecx, 0x24
mov ebx, dword [eax + ecx + 4]
jmp 0x59fc1f
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x220], 0
mov dword [ebp - 0x214], 0x43b908
jne 0x59fbfa
lea eax, [ebp - 0x220]
push eax
push dword [esi]
call fcn.0059ede6
test eax, eax
mov dword [edi], eax
jl 0x59ffb4
push edi
push 0
push 5
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x220]
call fcn.0059df38
test eax, eax
je 0x59ffa0
lea ebx, [ebp - 0x104]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x21c], ecx
and dword [ebp - 0x21c], 0x7100
je 0x59fd67
xor eax, eax
test dword [eax*8 + 0x43b534], ecx
jne 0x59fd43
inc eax
cmp eax, 4
jl 0x59fc3a
jmp 0x59fd67
mov ecx, eax
sub ecx, 0xd
je 0x59fbcf
sub ecx, 0x1c
je 0x59fcf7
dec ecx
je 0x59fd00
imul eax, eax, 0x14
mov ecx, dword [eax + 0x43ab80]
test cl, 0x10
mov dword [ebp - 0x228], eax
je 0x59fc8d
mov dword [ebp - 0x214], 0x43b8d4
jmp 0x59fcec
test cl, 0x20
je 0x59fcec
test ebx, ebx
jne 0x59fcb6
lea eax, [ebp - 0x224]
push eax
push 1
push dword [esi]
call fcn.0059e442
test eax, eax
mov dword [edi], eax
jl 0x59ffb4
mov ebx, dword [ebp - 0x224]
mov eax, dword [0x72da78]
push 0
shl ebx, 4
push dword [ebx + eax + 4]
lea eax, [ebp - 0x104]
push 0x7f
push eax
call fcn.005a0d65
test al, al
je 0x59ffa0
lea eax, [ebp - 0x104]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x228]
mov ebx, dword [eax + 0x43ab74]
jmp 0x59fc1f
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x218], eax
test ebx, ebx
mov dword [ebp - 0x214], 0x43b99c
jne 0x59fd32
lea eax, [ebp - 0x224]
push eax
push 1
push dword [ebp - 0x21c]
call fcn.0059e442
test eax, eax
mov dword [edi], eax
jl 0x59ffb4
mov ebx, dword [ebp - 0x224]
mov eax, dword [0x72da78]
shl ebx, 4
mov ebx, dword [ebx + eax + 4]
jmp 0x59fc1f
push ebx
push dword [eax*8 + 0x43b538]
lea eax, [ebp - 0x204]
push 0x7f
push eax
call fcn.005a0df0
test al, al
je 0x59ffa0
lea ebx, [ebp - 0x204]
lea eax, [ebp - 0x254]
push eax
push 0
push ebx
push dword [ebp - 0x214]
push dword [ebp - 0x218]
call fcn.0059c61f
test eax, eax
jl 0x59fdb1
mov eax, dword [ebp - 0x254]
mov eax, dword [eax]
test eax, eax
mov ecx, dword [ebp + 0x18]
jne 0x59fdfa
mov edx, ecx
imul edx, edx, 0x14
test word [edx + 0x43ab80], 0x4000
jne 0x59fdfa
lea eax, [ebp - 0x254]
push eax
call fcn.0059c68c
cmp dword [ebp - 0x21c], 0
jne 0x59ffa0
mov eax, dword [ebp + 0x18]
xor edx, edx
sub eax, edx
je 0x59ff4d
push 3
pop ecx
sub eax, ecx
je 0x59ff4d
dec eax
dec eax
je 0x59faa4
sub eax, ecx
je 0x59feee
sub eax, ecx
je 0x59fec4
sub eax, ecx
je 0x59fe64
sub eax, 4
jmp 0x59ff40
imul ecx, ecx, 0x14
mov ecx, dword [ecx + 0x43ab80]
test cx, 0x2000
jne 0x59ff78
test cx, cx
jns 0x59fe2f
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x20c]
call fcn.005a04e4
mov ecx, dword [ebp - 0x210]
mov dword [ecx], eax
jmp 0x59ff8e
test cx, 0x4000
je 0x59ff94
push edi
push 0
push 0
push dword [ebp - 0x254]
push dword [ebp - 0x250]
push dword [ebp - 0x210]
push dword [ebp + 0xc]
push dword [ebp - 0x20c]
call fcn.005a0b5a
jmp 0x59ff8e
cmp dword [ebp - 0x220], edx
je 0x59fe8c
push edi
push dword [ebp - 0x210]
push dword [ebp + 0xc]
push dword [ebp - 0x20c]
push dword [ebp - 0x220]
call fcn.0059df38
jmp 0x59ff33
mov eax, dword [esi]
mov ecx, dword [0x72da30]
imul eax, eax, 0x24
push dword [eax + ecx + 4]
lea eax, [ebp - 0x23c]
push eax
call fcn.005a05ba
mov eax, dword [ebp - 0x234]
test eax, eax
jbe 0x59ff39
push edi
push 4
mov ecx, dword [ebp - 0x23c]
lea eax, [ecx + eax*2]
push eax
jmp 0x59ff1f
mov eax, dword [esi]
mov ecx, dword [0x72da30]
imul eax, eax, 0x24
push dword [eax + ecx + 4]
lea eax, [ebp - 0x23c]
push eax
call fcn.005a05ba
mov eax, dword [ebp - 0x230]
test eax, eax
jbe 0x59ff39
push edi
push 2
jmp 0x59feb8
mov eax, dword [esi]
mov ecx, dword [0x72da30]
imul eax, eax, 0x24
push dword [eax + ecx + 4]
lea eax, [ebp - 0x23c]
push eax
call fcn.005a05ba
cmp dword [ebp - 0x238], 0
jbe 0x59ff39
push edi
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
push dword [ebp - 0x210]
push dword [ebp + 0xc]
push dword [ebp - 0x20c]
call fcn.0059f999
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
jne 0x59ffa0
push edi
push 0x40322c
jmp 0x59fab4
lea eax, [ebp - 0x254]
push eax
push edx
push ebx
push 0x43b92c
push dword [ebp - 0x218]
call fcn.0059c61f
test eax, eax
mov dword [edi], eax
jl 0x59ffb4
mov eax, dword [ebp - 0x254]
mov eax, dword [eax]
test eax, eax
je 0x59ff94
push edi
push eax
push dword [ebp - 0x210]
push dword [ebp + 0xc]
push dword [ebp - 0x20c]
call fcn.0059dbd6
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x254]
push eax
call fcn.0059c68c
cmp dword [edi], 0
jl 0x59ffb4
cmp dword [ebp - 0x208], 0
jne 0x59ffb4
mov dword [edi], 0x80004005
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x208]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0066d880
leave
ret 0x1c