Function at 0x563e40
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, eax
xor bl, bl
call fcn.005599f0
fld qword [0x5a1030]
cmp byte [esi + 0x53], bl
fld qword [0x5a1028]
fld qword [0x5a1020]
mov dword [esi + 0x58], eax
jne 0x563f06
push 2
fstp st(2)
lea eax, [ebp - 4]
fstp st(0)
push eax
fstp st(0)
push 0xd
lea edi, [esi + 0x54]
push 0x400
mov dword [edi], 0x54
mov dword [esi + 0x64], 8
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
cmp byte [ebp - 4], 0x30
jne 0x563ea6
mov dword [esi + 0x64], 8
jmp 0x563eaf
mov dword [esi + 0x64], 4
mov bl, 1
cmp dword [esi + 0xb4], 0
je 0x564021
or dword [esi + 0x64], 0x400
push edi
call dword [sym.imp.comdlg32.dll_PageSetupDlgA]
test eax, eax
je 0x563efa
mov ecx, dword [esi + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
or dword [eax + 0x28], 1
mov edx, dword [esi + 0xb4]
sub edx, 1
neg edx
sbb edx, edx
add edx, 2
mov word [eax + 0x2c], dx
mov eax, dword [esi + 0x5c]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
and dword [esi + 0x64], 0xfffffbff
jmp 0x564021
or dword [esi + 0x64], 2
mov ebx, dword [esi + 0x64]
shr ebx, 2
and bl, 1
je 0x56401b
fild dword [esi + 0x80]
fdiv st(3)
fdiv st(2)
fmul st(1)
fstp dword [ebp - 4]
fld dword [ebp - 4]
call fcn.005734f0
fild dword [esi + 0x88]
mov dword [esi + 0x80], eax
fdiv st(3)
fdiv st(2)
fmul st(1)
fstp dword [ebp - 4]
fld dword [ebp - 4]
call fcn.005734f0
fild dword [esi + 0x84]
mov dword [esi + 0x88], eax
fdiv st(3)
fdiv st(2)
fmul st(1)
fstp dword [ebp - 4]
fld dword [ebp - 4]
call fcn.005734f0
fild dword [esi + 0x8c]
mov dword [esi + 0x84], eax
fdiv st(3)
fdiv st(2)
fmul st(1)
fstp dword [ebp - 4]
fld dword [ebp - 4]
call fcn.005734f0
fild dword [esi + 0x70]
mov dword [esi + 0x8c], eax
fdiv st(3)
fdiv st(2)
fmul st(1)
fstp dword [ebp - 4]
fld dword [ebp - 4]
call fcn.005734f0
fild dword [esi + 0x78]
mov dword [esi + 0x70], eax
fdiv st(3)
fdiv st(2)
fmul st(1)
fstp dword [ebp - 4]
fld dword [ebp - 4]
call fcn.005734f0
fild dword [esi + 0x74]
mov dword [esi + 0x78], eax
fdiv st(3)
fdiv st(2)
fmul st(1)
fstp dword [ebp - 4]
fld dword [ebp - 4]
call fcn.005734f0
fild dword [esi + 0x7c]
mov dword [esi + 0x74], eax
fdiv st(3)
fdiv st(2)
fmul st(1)
fstp dword [ebp - 4]
fld dword [ebp - 4]
call fcn.005734f0
fild dword [esi + 0x68]
mov dword [esi + 0x7c], eax
fdiv st(3)
fdiv st(2)
fmul st(1)
fstp dword [ebp - 4]
fld dword [ebp - 4]
call fcn.005734f0
fild dword [esi + 0x6c]
mov dword [esi + 0x68], eax
fdivrp st(3)
fxch st(2)
fdivrp st(1)
fmulp st(1)
fstp dword [ebp - 4]
fld dword [ebp - 4]
call fcn.005734f0
mov dword [esi + 0x6c], eax
jmp 0x564021
fstp st(2)
fstp st(0)
fstp st(0)
lea ecx, [esi + 0x54]
push ecx
call dword [sym.imp.comdlg32.dll_PageSetupDlgA]
test eax, eax
je 0x56418d
test bl, bl
mov edi, dword [esi + 0x5c]
mov edx, dword [esi + 0x60]
mov byte [esi + 0x53], 1
mov byte [esi + 0xac], 1
mov dword [esi + 0xb4], 0
mov dword [esi + 0x19], edi
mov dword [esi + 0x1d], edx
je 0x56416e
fild dword [esi + 0x80]
fld qword [0x5a1020]
fdiv st(1), st(0)
fld qword [0x5a1028]
fmul st(2), st(0)
fld qword [0x5a1030]
fmul st(3), st(0)
fxch st(3)
fstp dword [ebp - 4]
fld dword [ebp - 4]
call fcn.005734f0
fild dword [esi + 0x88]
mov dword [esi + 0x80], eax
fdiv st(2)
fmul st(1)
fmul st(3)
fstp dword [ebp - 4]
fld dword [ebp - 4]
call fcn.005734f0
fild dword [esi + 0x84]
mov dword [esi + 0x88], eax
fdiv st(2)
fmul st(1)
fmul st(3)
fstp dword [ebp - 4]
fld dword [ebp - 4]
call fcn.005734f0
fild dword [esi + 0x8c]
mov dword [esi + 0x84], eax
fdiv st(2)
fmul st(1)
fmul st(3)
fstp dword [ebp - 4]
fld dword [ebp - 4]
call fcn.005734f0
fild dword [esi + 0x70]
mov dword [esi + 0x8c], eax
fdiv st(2)
fmul st(1)
fmul st(3)
fstp dword [ebp - 4]
fld dword [ebp - 4]
call fcn.005734f0
fild dword [esi + 0x78]
mov dword [esi + 0x70], eax
fdiv st(2)
fmul st(1)
fmul st(3)
fstp dword [ebp - 4]
fld dword [ebp - 4]
call fcn.005734f0
fild dword [esi + 0x74]
mov dword [esi + 0x78], eax
fdiv st(2)
fmul st(1)
fmul st(3)
fstp dword [ebp - 4]
fld dword [ebp - 4]
call fcn.005734f0
fild dword [esi + 0x7c]
mov dword [esi + 0x74], eax
fdiv st(2)
fmul st(1)
fmul st(3)
fstp dword [ebp - 4]
fld dword [ebp - 4]
call fcn.005734f0
fild dword [esi + 0x68]
mov dword [esi + 0x7c], eax
fdiv st(2)
fmul st(1)
fmul st(3)
fstp dword [ebp - 4]
fld dword [ebp - 4]
call fcn.005734f0
fild dword [esi + 0x6c]
mov dword [esi + 0x68], eax
fdivrp st(2)
fmulp st(1)
fmulp st(1)
fstp dword [ebp - 4]
fld dword [ebp - 4]
call fcn.005734f0
mov dword [esi + 0x6c], eax
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
call fcn.005612c0
mov eax, dword [esi + 0x5c]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret