Function at 0x588540
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b27c3
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x616040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
push 0x5e9af0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x30], 0
call fcn.00402f60
mov dword [ebp - 4], 0
mov edi, 1
mov eax, dword [ebp - 0x10]
mov edx, edi
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x5885b0
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00402c20
mov eax, dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x104
push eax
push 0x79
push 0x400
call ebx
mov ecx, dword [ebp - 0x10]
mov esi, eax
push dword [ecx - 8]
push ecx
call fcn.00528e72
mov edx, eax
add esp, 8
test edx, edx
js 0x5888b3
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x5888b3
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
test esi, esi
je 0x58864b
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00403660
mov ebx, dword [ebp - 0x24]
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov edx, dword [ebp - 0x10]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov dword [ebx], eax
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x588637
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041505f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x588667
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
mov ecx, edi
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x588699
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00402c20
mov esi, dword [ebp - 0x14]
push 0x104
push esi
push 0x1003
push 0x400
call ebx
push dword [esi - 8]
push esi
call fcn.00528e72
add esp, 8
test eax, eax
js 0x5888b3
cmp eax, dword [esi - 8]
jg 0x5888b3
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.0041505f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x5886ed
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 2
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x588722
push 0x104
lea ecx, [ebp - 0x20]
call fcn.00402c20
mov edi, dword [ebp - 0x20]
push 0x104
push edi
push 0x1e
push 0x400
call ebx
push dword [edi - 8]
push edi
call fcn.00528e72
add esp, 8
test eax, eax
js 0x5888b3
cmp eax, dword [edi - 8]
jg 0x5888b3
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
mov ebx, dword [esi - 0xc]
mov dword [ebp - 0x18], ebx
xor ebx, ebx
cmp dword [ebp - 0x18], ecx
jle 0x588843
test ebx, ebx
js 0x58878b
cmp ebx, dword [esi - 0xc]
jg 0x58878b
lea eax, [esi + ebx*2]
push edi
push eax
call fcn.00528f4f
add esp, 8
test eax, eax
je 0x58878b
sub eax, esi
sar eax, 1
mov dword [ebp - 0x1c], eax
jns 0x588791
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
sub eax, ebx
lea ecx, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
call fcn.004056e0
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x28]
push 0x5ed790
push ebx
call fcn.00529626
add esp, 8
test eax, eax
je 0x588825
push 0x5ed788
push ebx
call fcn.00529626
add esp, 8
test eax, eax
je 0x588825
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jle 0x5887e1
push dword [edi - 0xc]
lea ecx, [ebp - 0x10]
push edi
call fcn.00403430
push dword [ebx - 0xc]
lea ecx, [ebp - 0x10]
push ebx
call fcn.00403430
mov eax, dword [edi - 0xc]
add ebx, 0xfffffff0
add eax, dword [ebp - 0x1c]
or ecx, 0xffffffff
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x588814
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x2c]
jl 0x588768
jmp 0x588843
add ebx, 0xfffffff0
mov byte [ebp - 4], 2
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x588843
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00403660
mov ebx, dword [ebp - 0x24]
lea edx, [edi - 0x10]
add eax, 0x10
mov byte [ebp - 4], 1
or edi, 0xffffffff
add esp, 4
mov ecx, edi
mov dword [ebx], eax
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x58887a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x588897
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jmp 0x58862d
push 0x80070057
call fcn.00402740
int3