Function at 0x586600
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b00c2
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x614040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
push 0x5e7af0
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 0x586670
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.00528e42
mov edx, eax
add esp, 8
test edx, edx
js 0x586973
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x586973
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
test esi, esi
je 0x58670b
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 0x5866f7
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.00414eab
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x586727
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 0x586759
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.00528e42
add esp, 8
test eax, eax
js 0x586973
cmp eax, dword [esi - 8]
jg 0x586973
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.00414eab
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x5867ad
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 0x5867e2
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.00528e42
add esp, 8
test eax, eax
js 0x586973
cmp eax, dword [edi - 8]
jg 0x586973
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 0x586903
test ebx, ebx
js 0x58684b
cmp ebx, dword [esi - 0xc]
jg 0x58684b
lea eax, [esi + ebx*2]
push edi
push eax
call fcn.00528f1f
add esp, 8
test eax, eax
je 0x58684b
sub eax, esi
sar eax, 1
mov dword [ebp - 0x1c], eax
jns 0x586851
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 0x5eb6f0
push ebx
call fcn.005295f6
add esp, 8
test eax, eax
je 0x5868e5
push 0x5eb6e8
push ebx
call fcn.005295f6
add esp, 8
test eax, eax
je 0x5868e5
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jle 0x5868a1
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 0x5868d4
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 0x586828
jmp 0x586903
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 0x586903
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 0x58693a
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 0x586957
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 0x5866ed
push 0x80070057
call fcn.00402740
int3