Function at 0x1009f619
Capabilities:
Get geographical location

Disassembly:
push 0x44
mov eax, 0x100b85db
call fcn.100b4d71
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.100b022b
call fcn.100b493e
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, esi
call fcn.1009e822
mov eax, dword [esi]
push esi
call dword [eax + 0x390]
test al, al
jne 0x1009f6c4
push edi
push esi
call fcn.1009967f
pop ecx
pop ecx
push edi
push esi
mov dword [ebp - 0x20], eax
call fcn.10099615
pop ecx
pop ecx
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x20], ebx
je 0x1009f6c4
cmp eax, ebx
je 0x1009f6c4
push dword [ebp - 0x20]
call dword [sym.imp.kernel32.dll_GlobalLock]
cmp eax, ebx
je 0x1009f89d
movzx ecx, word [eax + 2]
lea eax, [eax + ecx*2]
push eax
call dword [sym.imp.MSVCR100.dll__wcsdup]
pop ecx
push ebx
lea ecx, [ebp + 0xc]
push ecx
push eax
mov dword [ebp - 0x24], eax
mov dword [ebp + 0xc], ebx
call sub.WINSPOOL.DRV_OpenPrinterW
test eax, eax
jne 0x1009f6cc
cmp dword [ebp + 0xc], ebx
je 0x1009f6b1
push dword [ebp + 0xc]
call sub.WINSPOOL.DRV_ClosePrinter
push dword [ebp - 0x20]
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push dword [ebp - 0x24]
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
call fcn.100b4e16
ret 0xc
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x24]
push dword [ebp + 0xc]
call fcn.100b493e
add esp, 0xc
cmp eax, ebx
jne 0x1009f6f2
cmp dword [ebp - 0x1c], ebx
je 0x1009f6a9
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_GlobalFree]
jmp 0x1009f6a9
mov eax, dword [ebp - 0x1c]
test byte [eax + 0x48], 0xe
jne 0x1009f712
push dword [0x100fd39c]
mov al, 1
push edi
push esi
call fcn.100b493e
add esp, 0xc
jmp 0x1009f882
mov esi, dword [sym.imp.kernel32.dll_GetLocaleInfoW]
push ebx
push ebx
push 0xd
mov edi, 0x400
push edi
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x18], 5
call esi
mov ebx, eax
test ebx, ebx
jle 0x1009f78e
cmp ebx, 0xffffffff
ja 0x1009f8ab
cmp ebx, 0x7fffffff
ja 0x1009f8ab
lea eax, [ebx + ebx]
push eax
call fcn.100b493e
pop ecx
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1009f78e
push ebx
push eax
push 0xd
push edi
call esi
test eax, eax
jle 0x1009f784
push dword [ebp - 0x28]
push 0x100d6290
call dword [sym.imp.MSVCR100.dll_wcscmp]
pop ecx
pop ecx
test eax, eax
jne 0x1009f784
mov dword [ebp - 0x18], 3
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
mov edi, dword [ebp - 0x30]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x6e
push edi
call esi
push 0x6f
push edi
mov dword [ebp - 0x30], eax
call esi
push 0x58
push edi
mov dword [ebp - 0x34], eax
call esi
push 0x5a
push edi
mov dword [ebp - 0x28], eax
call esi
fild dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x18]
fidiv dword [ebp - 0x28]
push ecx
push ecx
fild dword [ebp - 0x34]
fidiv dword [ebp - 0x3c]
fstp qword [ebp - 0x40]
fmul qword [0x100d5e48]
fstp qword [esp]
call fcn.1009cb22
fld qword [ebp - 0x40]
mov dword [ebp - 0x38], eax
fmul qword [0x100d5e48]
mov eax, dword [ebp - 0x18]
fstp qword [esp]
call fcn.1009cb22
fld qword [0x100d5e48]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
fstp qword [esp]
call fcn.1009cb22
mov ebx, dword [ebp + 8]
push dword [ebp + 0x10]
mov esi, ebx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
call fcn.1009c8ce
add esp, 0xc
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x1009f882
push dword [ebp - 0x18]
lea esi, [ebp - 0x50]
push eax
lea edi, [ebp - 0x38]
call fcn.100b493e
pop ecx
pop ecx
mov esi, ebx
mov eax, dword [esi]
push esi
call dword [eax + 0x390]
test al, al
jne 0x1009f882
push dword [ebp - 0x3c]
push dword [ebp + 0x10]
call fcn.1009c902
mov eax, dword [esi]
pop ecx
pop ecx
push esi
call dword [eax + 0x390]
test al, al
jne 0x1009f882
mov eax, dword [ebp - 0x1c]
test byte [eax + 0x48], 1
je 0x1009f875
cmp word [eax + 0x4c], 2
jne 0x1009f875
and dword [ebp - 0x2c], 0
push dword [ebp - 0x2c]
push dword [ebp + 0x10]
call fcn.1009c939
pop ecx
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_GlobalFree]
push dword [ebp - 0x24]
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
push dword [ebp + 0xc]
call sub.WINSPOOL.DRV_ClosePrinter
push dword [ebp - 0x20]
call dword [sym.imp.kernel32.dll_GlobalUnlock]
jmp 0x1009f6c4
xor eax, eax
lea edi, [ebp + 0xb]
stosb byte es:[edi], al
mov al, byte [ebp + 0xb]
mov byte [ebp - 0x11], al
push 0x100da640
lea eax, [ebp - 0x11]
push eax
call sub.MSVCR100.dll__CxxThrowException
call fcn.100b024a
mov eax, 0x1009f8d0
ret