Function at 0x59ffce
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
push dword [esi]
xor ebx, ebx
call fcn.0059c9ec
mov edi, eax
mov eax, dword [ebp + 0x10]
and dword [eax], ebx
mov eax, dword [ebp + 0x20]
and dword [eax], ebx
test edi, edi
je 0x5a0298
mov edx, dword [ebp + 0x18]
mov eax, edx
imul eax, eax, 0x14
mov ecx, dword [eax + 0x43ab80]
test cl, 0x40
mov dword [ebp + 0x14], eax
je 0x5a00c8
mov ecx, dword [edi + 8]
mov dword [ebp + 0x18], ecx
mov ecx, edx
sub ecx, 0x10
je 0x5a0025
dec ecx
jne 0x5a0038
push dword [esi]
jmp 0x5a0028
push dword [esi + 0xc]
call fcn.0059f6a7
test al, al
je 0x5a028c
mov eax, dword [ebp + 0x14]
test byte [ebp + 0x1c], 0x20
je 0x5a0050
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
cmp ax, word [ebp + 0x18]
jne 0x5a004d
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x14]
test byte [ebp + 0x1c], 2
mov esi, dword [eax + 0x43ab78]
je 0x5a0062
or esi, 0x80000000
cmp dword [ebp + 0x18], 0x1000
jne 0x5a009a
call fcn.005a079c
test al, al
je 0x5a009a
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push dword [edi + 4]
call fcn.005a073e
mov ebx, eax
test ebx, ebx
jne 0x5a01d3
push eax
push eax
push esi
push dword [edi + 4]
call fcn.005a073e
jmp 0x5a00be
push dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push dword [ebp + 8]
push esi
push dword [ebp + 0x18]
call edi
mov ebx, eax
test ebx, ebx
jne 0x5a01d3
push eax
push eax
push esi
push dword [ebp + 0x18]
call edi
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x5a028c
test cl, cl
jns 0x5a01dd
mov eax, dword [esi + 8]
mov ecx, dword [edi + 8]
and dword [ebp - 8], ebx
test eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jne 0x5a00fd
lea eax, [ebp - 0xc]
push eax
push 1
push dword [esi]
call fcn.0059e442
test eax, eax
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
jl 0x5a02a1
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
call fcn.0059c788
test eax, eax
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
jl 0x5a02a1
cmp dword [ebp + 0x18], 0x29
jne 0x5a0134
push dword [esi + 0xc]
call fcn.0059c9ec
mov edi, eax
test edi, edi
je 0x5a028c
mov eax, dword [edi + 8]
mov dword [ebp - 4], eax
test byte [ebp + 0x1c], 0x20
je 0x5a0149
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
cmp ax, word [ebp - 4]
jne 0x5a0149
mov dword [ebp - 4], eax
test byte [ebp + 0x1c], 2
mov eax, dword [ebp + 0x14]
mov esi, dword [eax + 0x43ab78]
je 0x5a015e
or esi, 0x80000000
cmp dword [ebp - 4], 0x1000
jne 0x5a01a3
call fcn.005a079c
test al, al
je 0x5a01a3
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push 0
push dword [ebp - 8]
push dword [edi + 4]
call fcn.005a0757
mov ebx, eax
xor eax, eax
cmp ebx, eax
jne 0x5a01d3
push eax
push eax
push eax
push esi
push eax
push dword [ebp - 8]
push dword [edi + 4]
call fcn.005a0757
jmp 0x5a00be
mov edi, dword [sym.imp.KERNEL32.dll_GetCalendarInfoW]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call edi
mov ebx, eax
xor eax, eax
cmp ebx, eax
jne 0x5a01d3
push eax
push eax
push eax
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call edi
jmp 0x5a00be
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
jmp 0x5a028c
cmp edx, 4
jl 0x5a0298
cmp edx, 5
jle 0x5a0277
cmp edx, 0xe
je 0x5a0248
cmp edx, 0xf
jne 0x5a0298
mov edi, dword [edi + 8]
mov esi, edi
shr esi, 0x10
and esi, edx
test byte [ebp + 0x1c], 0x20
je 0x5a0220
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
cmp ax, di
jne 0x5a0220
shr eax, 0x10
and eax, 0xf
mov esi, eax
movzx eax, si
push eax
call fcn.0059f5f2
push dword [ebp + 0x20]
and word [ebp + 0x1e], bx
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0059dbd6
jmp 0x5a028a
cmp dword [esi + 4], ebx
jne 0x5a0261
lea eax, [ebp + 0x1c]
push eax
push dword [esi]
call fcn.0059ede6
test eax, eax
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
jl 0x5a02a1
push dword [ebp + 0x20]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call fcn.0059df38
jmp 0x5a028a
push dword [ebp + 0x20]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call fcn.0059e2f0
mov ebx, eax
mov eax, dword [ebp + 0x20]
cmp dword [eax], 0
jl 0x5a02a1
test ebx, ebx
jne 0x5a02a1
mov eax, dword [ebp + 0x20]
mov dword [eax], 0x80004005
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x1c