Function at 0x4c18f6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x68]
push 0x58
push eax
mov dword [ebp - 0x38], ecx
mov byte [ebp - 5], 0
mov dword [ebp - 4], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
call esi
push 0x5a
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call esi
push 0x6e
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call esi
push 0x6f
push dword [ebp - 4]
mov dword [ebp - 0x40], eax
call esi
push 0x70
push dword [ebp - 4]
mov dword [ebp - 0x3c], eax
call esi
push 0x71
push dword [ebp - 4]
mov dword [ebp - 0x24], eax
call esi
push 8
push dword [ebp - 4]
mov dword [ebp - 0x20], eax
call esi
mov ecx, dword [ebp - 0x40]
sub ecx, dword [ebp - 0x24]
push 0xa
push dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 0x1c], ecx
call esi
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x20]
sub ecx, edx
sub ecx, eax
mov dword [ebp - 0x18], ecx
cmp dword [edi + 0x30], ebx
jne 0x4c19c3
cmp dword [edi + 0x38], ebx
jne 0x4c19c3
cmp dword [edi + 0x34], ebx
jne 0x4c19c3
cmp dword [edi + 0x3c], ebx
jne 0x4c19c3
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
jmp 0x4c1a58
push 3
lea eax, [ebp + 8]
push eax
push 0xd
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp byte [ebp + 8], 0x30
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
mov ebx, 0x9ec
je 0x4c19ec
mov ebx, 0x3e8
push ebx
push dword [ebp - 0x10]
push dword [edi + 0x30]
call esi
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x50], eax
push dword [edi + 0x34]
call esi
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x4c], eax
push dword [edi + 0x38]
call esi
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x48], eax
push dword [edi + 0x3c]
call esi
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x34], ecx
cmp ecx, edx
jg 0x4c1a29
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x30], ecx
cmp ecx, edx
jg 0x4c1a39
mov dword [ebp - 0x30], edx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x2c], ecx
cmp ecx, edx
jg 0x4c1a49
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp - 0x18]
xor ebx, ebx
mov dword [ebp - 0x28], ecx
cmp ecx, eax
jg 0x4c1a58
mov dword [ebp - 0x28], eax
mov esi, dword [sym.imp.GDI32.dll_DPtoLP]
push 2
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
call esi
push 2
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call esi
push 1
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x64], 0x14
mov dword [ebp - 0x60], 0x50b544
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
call dword [sym.imp.GDI32.dll_StartDocW]
test eax, eax
js 0x4c1c1a
mov eax, dword [ebp - 0x38]
push ebx
push ebx
push 0x7d6
push dword [eax]
call fcn.004c2958
add esp, 0x10
test byte [edi + 0x6c], 1
mov esi, eax
mov dword [ebp + 8], esi
mov dword [ebp - 0x14], ebx
je 0x4c1b15
mov esi, dword [ebp - 0x38]
push ebx
push ebx
push 0x85f
push dword [esi]
call fcn.004c2958
push ebx
push ebx
push 0x861
push dword [esi]
mov dword [ebp - 0xc], eax
call fcn.004c2958
mov ecx, dword [ebp - 0xc]
add esp, 0x20
cmp ecx, eax
jle 0x4c1b00
mov dword [ebp - 0x14], eax
mov esi, ecx
jmp 0x4c1b05
mov dword [ebp - 0x14], ecx
mov esi, eax
cmp dword [ebp - 0x14], ebx
jge 0x4c1b0d
mov dword [ebp - 0x14], ebx
cmp esi, dword [ebp + 8]
jle 0x4c1b15
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x40]
mov ecx, eax
sub ecx, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x84], ecx
mov ecx, dword [ebp - 0x3c]
mov edx, ecx
sub edx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x20]
dec eax
dec ecx
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0xc], 1
jmp 0x4c1bf4
test byte [edi + 0x6c], 2
je 0x4c1b9c
movzx eax, word [edi + 0x70]
cmp dword [ebp - 0xc], eax
jl 0x4c1b96
movzx eax, word [edi + 0x72]
cmp dword [ebp - 0xc], eax
jle 0x4c1b9c
mov byte [ebp + 0xb], 0
jmp 0x4c1ba9
push dword [ebp - 4]
mov byte [ebp + 0xb], 1
call dword [sym.imp.GDI32.dll_StartPage]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x94]
push eax
movzx eax, byte [ebp + 0xb]
push eax
mov eax, dword [ebp - 0x38]
push 0x867
push dword [eax]
mov dword [ebp - 0x68], esi
call fcn.004c2958
add esp, 0x10
cmp byte [ebp + 0xb], 0
mov dword [ebp - 0x14], eax
je 0x4c1be2
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_EndPage]
inc dword [ebp - 0xc]
test byte [edi + 0x6c], 2
je 0x4c1bf4
movzx eax, word [edi + 0x72]
cmp dword [ebp - 0xc], eax
jg 0x4c1bf9
cmp dword [ebp - 0x14], esi
jl 0x4c1b7e
mov eax, dword [ebp - 0x38]
push ebx
push ebx
push 0x867
push dword [eax]
call fcn.004c2958
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_EndDoc]
mov byte [ebp - 5], 1
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
leave
ret 4