Function at 0x420830
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571cc9
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5e1da0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp + 0x18]
xor ebx, ebx
push 0x58a320
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x30], ebx
call fcn.00401100
mov edi, 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], edi
call fcn.004587ad
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4208b0
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], edi
call fcn.004587ad
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4208dc
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x2c], edi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x64
mov byte [ebp - 4], 2
cmp dword [ebp + 0x1c], ebx
je 0x420943
or eax, ecx
jge 0x420913
push 0x64
lea ecx, [ebp - 0x24]
call fcn.00401560
mov esi, dword [ebp - 0x24]
push 0x64
push esi
push 0x1f
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00553862
add esp, 8
cmp eax, ebx
jl 0x420939
cmp eax, dword [esi - 8]
jle 0x42097a
push 0x80070057
call fcn.00401000
or eax, ecx
jge 0x420954
push 0x64
lea ecx, [ebp - 0x24]
call fcn.00401560
mov esi, dword [ebp - 0x24]
push 0x64
push esi
push 0x20
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00553862
add esp, 8
cmp eax, ebx
jl 0x420939
cmp eax, dword [esi - 8]
jg 0x420939
mov dword [esi - 0xc], eax
mov byte [eax + esi], bl
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x64
or eax, ecx
jge 0x42099f
push 0x64
lea ecx, [ebp - 0x2c]
call fcn.00401560
mov edi, dword [ebp - 0x2c]
push 0x64
push edi
push esi
lea ecx, [ebp - 0x20]
push ecx
push ebx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.00553862
add esp, 8
cmp eax, ebx
jl 0x420939
cmp eax, dword [edi - 8]
jg 0x420939
mov edx, dword [ebp - 0x28]
push edi
push 0x58a764
mov dword [edi - 0xc], eax
push edx
mov byte [eax + edi], bl
call fcn.004026d0
lea eax, [edi - 0x10]
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420a09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420a28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005520da
mov esp, ebp
pop ebp
ret 0x18