Function at 0x48f6f2
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x94
push ebx
push esi
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x7c]
mov eax, dword [edi + 0x68]
push 0x58
push eax
mov dword [ebp + 0x3c], ecx
mov byte [ebp + 0x6f], 0
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x38], ebx
call esi
push 0x5a
push dword [ebp + 0x70]
mov dword [ebp + 0x64], eax
call esi
push 0x6e
push dword [ebp + 0x70]
mov dword [ebp + 0x68], eax
call esi
push 0x6f
push dword [ebp + 0x70]
mov dword [ebp + 0x34], eax
call esi
push 0x70
push dword [ebp + 0x70]
mov dword [ebp + 0x38], eax
call esi
push 0x71
push dword [ebp + 0x70]
mov dword [ebp + 0x50], eax
call esi
push 8
push dword [ebp + 0x70]
mov dword [ebp + 0x54], eax
call esi
mov ecx, dword [ebp + 0x34]
sub ecx, dword [ebp + 0x50]
push 0xa
push dword [ebp + 0x70]
sub ecx, eax
mov dword [ebp + 0x58], ecx
call esi
mov ecx, dword [ebp + 0x38]
mov edx, dword [ebp + 0x54]
sub ecx, edx
sub ecx, eax
mov dword [ebp + 0x5c], ecx
cmp dword [edi + 0x30], ebx
jne 0x48f7c1
cmp dword [edi + 0x38], ebx
jne 0x48f7c1
cmp dword [edi + 0x34], ebx
jne 0x48f7c1
cmp dword [edi + 0x3c], ebx
jne 0x48f7c1
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x58]
mov dword [ebp + 0x44], edx
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x4c], ecx
jmp 0x48f856
push 3
lea eax, [ebp + 0x7c]
push eax
push 0xd
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp byte [ebp + 0x7c], 0x30
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
mov ebx, 0x9ec
je 0x48f7ea
mov ebx, 0x3e8
push ebx
push dword [ebp + 0x64]
push dword [edi + 0x30]
call esi
push ebx
push dword [ebp + 0x68]
mov dword [ebp + 0x24], eax
push dword [edi + 0x34]
call esi
push ebx
push dword [ebp + 0x64]
mov dword [ebp + 0x28], eax
push dword [edi + 0x38]
call esi
push ebx
push dword [ebp + 0x68]
mov dword [ebp + 0x2c], eax
push dword [edi + 0x3c]
call esi
mov ecx, dword [ebp + 0x50]
mov edx, dword [ebp + 0x24]
cmp ecx, edx
mov dword [ebp + 0x40], ecx
jg 0x48f827
mov dword [ebp + 0x40], edx
mov ecx, dword [ebp + 0x54]
mov edx, dword [ebp + 0x28]
cmp ecx, edx
mov dword [ebp + 0x44], ecx
jg 0x48f837
mov dword [ebp + 0x44], edx
mov ecx, dword [ebp + 0x58]
mov edx, dword [ebp + 0x2c]
cmp ecx, edx
mov dword [ebp + 0x48], ecx
jg 0x48f847
mov dword [ebp + 0x48], edx
mov ecx, dword [ebp + 0x5c]
xor ebx, ebx
cmp ecx, eax
mov dword [ebp + 0x4c], ecx
jg 0x48f856
mov dword [ebp + 0x4c], eax
mov esi, dword [sym.imp.GDI32.dll_DPtoLP]
push 2
lea eax, [ebp + 0x40]
push eax
push dword [ebp + 0x70]
call esi
push 2
lea eax, [ebp + 0x50]
push eax
push dword [ebp + 0x70]
call esi
push 1
lea eax, [ebp + 0x34]
push eax
push dword [ebp + 0x70]
call esi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x70]
mov dword [ebp + 0x10], 0x14
mov dword [ebp + 0x14], 0x50ba64
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x20], ebx
call dword [sym.imp.GDI32.dll_StartDocW]
test eax, eax
jl 0x48fa06
mov eax, dword [ebp + 0x3c]
push ebx
push ebx
push 0x7d6
push dword [eax]
call fcn.00490733
add esp, 0x10
test byte [edi + 0x6c], 1
mov esi, eax
mov dword [ebp + 0x7c], esi
mov dword [ebp + 0x60], ebx
je 0x48f913
mov esi, dword [ebp + 0x3c]
push ebx
push ebx
push 0x85f
push dword [esi]
call fcn.00490733
push ebx
push ebx
push 0x861
push dword [esi]
mov dword [ebp + 0x68], eax
call fcn.00490733
mov ecx, dword [ebp + 0x68]
add esp, 0x20
cmp ecx, eax
jle 0x48f8fe
mov dword [ebp + 0x60], eax
mov esi, ecx
jmp 0x48f903
mov dword [ebp + 0x60], ecx
mov esi, eax
cmp dword [ebp + 0x60], ebx
jge 0x48f90b
mov dword [ebp + 0x60], ebx
cmp esi, dword [ebp + 0x7c]
jle 0x48f913
mov esi, dword [ebp + 0x7c]
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x40]
sub eax, dword [ebp + 0x50]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x44]
sub eax, dword [ebp + 0x54]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x34]
mov ecx, eax
sub ecx, dword [ebp + 0x48]
sub eax, dword [ebp + 0x58]
sub ecx, dword [ebp + 0x50]
sub eax, dword [ebp + 0x50]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x38]
mov edx, ecx
sub edx, dword [ebp + 0x4c]
sub ecx, dword [ebp + 0x5c]
sub edx, dword [ebp + 0x54]
sub ecx, dword [ebp + 0x54]
dec eax
dec ecx
mov dword [ebp - 0xc], edx
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 0x68], 1
jmp 0x48f9e0
test byte [edi + 0x6c], 2
je 0x48f98b
movzx eax, word [edi + 0x70]
cmp dword [ebp + 0x68], eax
jl 0x48f985
movzx eax, word [edi + 0x72]
cmp dword [ebp + 0x68], eax
jle 0x48f98b
mov byte [ebp + 0x7f], 0
jmp 0x48f998
push dword [ebp + 0x70]
mov byte [ebp + 0x7f], 1
call dword [sym.imp.GDI32.dll_StartPage]
mov eax, dword [ebp + 0x60]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x20]
push eax
movzx eax, byte [ebp + 0x7f]
push eax
mov eax, dword [ebp + 0x3c]
push 0x867
push dword [eax]
mov dword [ebp + 0xc], esi
call fcn.00490733
add esp, 0x10
cmp byte [ebp + 0x7f], 0
mov dword [ebp + 0x60], eax
je 0x48f9ce
push dword [ebp + 0x70]
call dword [sym.imp.GDI32.dll_EndPage]
inc dword [ebp + 0x68]
test byte [edi + 0x6c], 2
je 0x48f9e0
movzx eax, word [edi + 0x72]
cmp dword [ebp + 0x68], eax
jg 0x48f9e5
cmp dword [ebp + 0x60], esi
jl 0x48f96d
mov eax, dword [ebp + 0x3c]
push ebx
push ebx
push 0x867
push dword [eax]
call fcn.00490733
add esp, 0x10
push dword [ebp + 0x70]
call dword [sym.imp.GDI32.dll_EndDoc]
mov byte [ebp + 0x6f], 1
push dword [ebp + 0x70]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov al, byte [ebp + 0x6f]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4