Function at 0x5506a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop edi
pop ecx
mov dword [ebp - 0x10], ecx
mov byte [ebp - 3], 0
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x53], 0
jne 0x55078e
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x54], 0x54
call fcn.0047bd00
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 0x10]
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 0x55070f
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], 8
jmp 0x55071d
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], 4
mov byte [ebp - 3], 1
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xb4], 0
je 0x550789
mov eax, dword [ebp - 0x10]
or dword [eax + 0x64], 0x400
mov eax, dword [ebp - 0x10]
add eax, 0x54
push eax
call sub.comdlg32.dll_PageSetupDlgA
cmp eax, 0
je 0x55077f
mov eax, dword [ebp - 0x10]
push dword [eax + 0x5c]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xb4], 1
jne 0x55076a
mov eax, dword [ebp - 8]
mov word [eax + 0x2c], 2
jmp 0x550773
mov eax, dword [ebp - 8]
mov word [eax + 0x2c], 1
mov eax, dword [ebp - 0x10]
push dword [eax + 0x5c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x10]
and dword [eax + 0x64], 0xfffffbff
jmp 0x55087b
mov eax, dword [ebp - 0x10]
or dword [eax + 0x64], 2
mov eax, dword [ebp - 0x10]
test dword [eax + 0x64], 4
setne dl
mov byte [ebp - 3], dl
cmp byte [ebp - 3], 0
je 0x55087b
mov eax, dword [ebp - 0x10]
push dword [eax + 0x80]
call fcn.0054c0b0
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x80], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x88]
call fcn.0054c0b0
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x88], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x84]
call fcn.0054c0b0
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x84], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x8c]
call fcn.0054c0b0
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x8c], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x70]
call fcn.0054c0b0
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x70], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x78]
call fcn.0054c0b0
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x78], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x74]
call fcn.0054c0b0
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x74], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x7c]
call fcn.0054c0b0
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x7c], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x68]
call fcn.0054c0b0
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x68], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x6c]
call fcn.0054c0b0
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x6c], eax
mov eax, dword [ebp - 0x10]
add eax, 0x54
push eax
call sub.comdlg32.dll_PageSetupDlgA
cmp eax, 0
je 0x5509c6
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x53], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 0xac], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xb4], 0
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x5c]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x19], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x60]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x1d], edx
cmp byte [ebp - 3], 0
je 0x55099c
mov eax, dword [ebp - 0x10]
push dword [eax + 0x80]
call fcn.0054c060
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x80], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x88]
call fcn.0054c060
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x88], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x84]
call fcn.0054c060
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x84], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x8c]
call fcn.0054c060
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x8c], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x70]
call fcn.0054c060
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x70], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x78]
call fcn.0054c060
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x78], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x74]
call fcn.0054c060
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x74], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x7c]
call fcn.0054c060
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x7c], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x68]
call fcn.0054c060
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x68], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x6c]
call fcn.0054c060
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x6c], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x5c]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.0054c420
mov eax, dword [ebp - 0x10]
push dword [eax + 0x5c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov al, 1
leave
ret
mov al, 0
leave
ret