Function at 0x51c900
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, 0xcccccccc
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [ebp - 0xc], ecx
mov byte [ebp - 3], 0
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x53], 0
jne 0x51c97d
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x54], 0x54
call fcn.00471210
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x64], 8
push 2
lea eax, [ebp - 2]
push eax
push 0xd
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp byte [ebp - 2], 0x30
jne 0x51c96a
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x64], 8
jmp 0x51c978
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x64], 4
mov byte [ebp - 3], 1
jmp 0x51ca6a
mov eax, dword [ebp - 0xc]
or dword [eax + 0x64], 2
mov eax, dword [ebp - 0xc]
test dword [eax + 0x64], 4
setne dl
mov byte [ebp - 3], dl
cmp byte [ebp - 3], 0
je 0x51ca6a
mov eax, dword [ebp - 0xc]
push dword [eax + 0x80]
call fcn.00518380
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x80], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x88]
call fcn.00518380
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x88], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x84]
call fcn.00518380
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x84], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x8c]
call fcn.00518380
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x8c], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x70]
call fcn.00518380
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x70], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x78]
call fcn.00518380
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x78], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x74]
call fcn.00518380
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x74], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x7c]
call fcn.00518380
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x7c], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x68]
call fcn.00518380
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x68], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x6c]
call fcn.00518380
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x6c], eax
mov eax, dword [ebp - 0xc]
add eax, 0x54
push eax
call sub.comdlg32.dll_PageSetupDlgA
cmp eax, 0
je 0x51cba8
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x53], 1
mov eax, dword [ebp - 0xc]
mov byte [eax + 0xac], 1
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x5c]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x19], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x60]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x1d], edx
cmp byte [ebp - 3], 0
je 0x51cb7e
mov eax, dword [ebp - 0xc]
push dword [eax + 0x80]
call fcn.00518330
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x80], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x88]
call fcn.00518330
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x88], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x84]
call fcn.00518330
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x84], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x8c]
call fcn.00518330
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x8c], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x70]
call fcn.00518330
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x70], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x78]
call fcn.00518330
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x78], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x74]
call fcn.00518330
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x74], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x7c]
call fcn.00518330
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x7c], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x68]
call fcn.00518330
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x68], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x6c]
call fcn.00518330
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x6c], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x5c]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
push dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.005186f0
mov eax, dword [ebp - 0xc]
push dword [eax + 0x5c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov al, 1
leave
ret
mov al, 0
leave
ret