Function at 0x1009f16e
Capabilities:
Get geographical location

Disassembly:
push ebp
sub esp, 0x68
lea ebp, [esp - 4]
mov eax, dword [0x100fd640]
xor eax, ebp
mov dword [ebp + 0x68], eax
push 0x38
mov eax, 0x100b85b6
call fcn.100b4d71
mov esi, dword [ebp + 0x78]
mov ebx, dword [ebp + 0x74]
xor edi, edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], edi
call fcn.100b022b
call fcn.100130d0
mov eax, dword [ebx]
push esi
push ebx
call dword [eax + 0x54]
push dword [0x10100364]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x17c]
push dword [0x10100450]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x24]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x17c]
push dword [0x1010045c]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x1c]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x17c]
push dword [0x10100458]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x1c]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x17c]
mov dword [ebp + 0xc], eax
cmp dword [ebp - 0x28], edi
je 0x1009f221
push dword [0x10100378]
mov eax, dword [ebx]
push dword [ebp - 0x28]
push ebx
call dword [eax + 0x194]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x14], eax
jmp 0x1009f224
mov dword [ebp - 0x14], edi
push 0x54
pop esi
push esi
lea eax, [ebp + 0x14]
push edi
push eax
mov byte [ebp + 0x13], 0
call sub.MSVCR100.dll_memset
push dword [ebp + 0xc]
mov dword [ebp + 0x14], esi
push ebx
call fcn.1009ab14
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x1009f25b
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1009f25b
mov dword [ebp + 0x18], esi
jmp 0x1009f26b
mov eax, dword [ebp - 0x14]
neg eax
sbb eax, eax
and eax, dword [0x101004ec]
mov dword [ebp + 0x18], eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x24]
mov esi, 0x400
push ebx
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x24], esi
mov dword [ebp + 0x50], edi
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x58], 0x1009daed
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x64], edi
call fcn.1009964a
pop ecx
pop ecx
cmp eax, edi
je 0x1009f4bc
push dword [ebp + 0xc]
push ebx
call fcn.1009967f
pop ecx
pop ecx
cmp eax, edi
je 0x1009f4bc
mov edi, dword [sym.imp.kernel32.dll_GetLocaleInfoW]
push 0
push 0
push 0xd
push esi
mov dword [ebp], 4
call edi
mov dword [ebp + 4], eax
test eax, eax
jle 0x1009f32b
cmp eax, 0xffffffff
ja 0x1009f4a2
cmp eax, 0x7fffffff
ja 0x1009f4a2
add eax, eax
push eax
call fcn.100130d0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1009f32b
push dword [ebp + 4]
push eax
push 0xd
push esi
call edi
test eax, eax
jle 0x1009f321
push dword [ebp - 0x14]
push 0x100d6290
call dword [sym.imp.MSVCR100.dll_wcscmp]
pop ecx
pop ecx
test eax, eax
jne 0x1009f321
mov dword [ebp], 8
push dword [ebp - 0x14]
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
push dword [ebp + 0xc]
mov eax, dword [ebp]
or dword [ebp + 0x24], eax
push ebx
call fcn.1009964a
pop ecx
pop ecx
push dword [ebp + 0xc]
mov dword [ebp + 0x1c], eax
push ebx
call fcn.1009967f
pop ecx
pop ecx
mov dword [ebp + 0x20], eax
xor edi, edi
push dword [ebp + 0xc]
push ebx
call fcn.10099615
pop ecx
pop ecx
push eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 0x20]
mov eax, ebx
push dword [ebp + 0xc]
call fcn.100130d0
mov eax, dword [ebx]
add esp, 0x10
push ebx
call dword [eax + 0x390]
test al, al
jne 0x1009f4d8
mov dword [ebp + 0x58], 0x1009daed
mov dword [ebp + 0x24], 0x2002
call fcn.100801a0
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.COMDLG32.dll_PageSetupDlgW]
cmp eax, edi
je 0x1009f55e
push dword [ebp - 0x20]
mov esi, ebx
call fcn.1009c8ce
pop ecx
mov dword [ebp + 4], eax
cmp eax, edi
je 0x1009f4d8
test byte [ebp + 0x24], 4
push 0
pop eax
setne al
lea eax, [eax + eax + 3]
mov dword [ebp - 0x30], eax
cmp dword [ebp + 0x20], edi
je 0x1009f455
push dword [ebp + 0x20]
call dword [sym.imp.kernel32.dll_GlobalLock]
cmp eax, edi
je 0x1009f44c
movzx ecx, word [eax + 2]
mov esi, dword [sym.imp.MSVCR100.dll__control87]
lea eax, [eax + ecx*2]
push edi
push edi
mov dword [ebp - 0x14], eax
call esi
pop ecx
pop ecx
push edi
push edi
push dword [ebp - 0x14]
mov dword [ebp], eax
push str.WINSPOOL
call dword [sym.imp.GDI32.dll_CreateDCW]
push edi
push edi
mov dword [ebp - 0x14], eax
call esi
pop ecx
pop ecx
cmp eax, dword [ebp]
je 0x1009f422
push 0xffffffffffffffff
push dword [ebp]
call esi
pop ecx
pop ecx
cmp dword [ebp - 0x14], edi
je 0x1009f43d
push dword [ebp + 0xc]
push ebx
call fcn.10099615
pop ecx
pop ecx
cmp eax, edi
je 0x1009f43d
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1009962c
add esp, 0xc
push dword [ebp + 0x20]
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push dword [ebp + 0xc]
push ebx
call fcn.10099615
pop ecx
pop ecx
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.100130d0
push dword [ebp - 0x30]
lea esi, [ebp - 0x44]
push dword [ebp + 4]
lea edi, [ebp - 0x18]
call fcn.100130d0
mov eax, dword [ebx]
add esp, 0x1c
push ebx
call dword [eax + 0x390]
test al, al
je 0x1009f4e1
mov byte [ebp + 0x13], 0
xor edi, edi
jmp 0x1009f5ab
xor eax, eax
lea edi, [ebp + 0x13]
stosb byte es:[edi], al
mov al, byte [ebp + 0x13]
mov byte [ebp + 0xb], al
push 0x100da640
lea eax, [ebp + 0xb]
push eax
call sub.MSVCR100.dll__CxxThrowException
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.COMDLG32.dll_PageSetupDlgW]
cmp dword [ebp + 0x1c], edi
jne 0x1009f34f
cmp dword [ebp + 0x20], edi
jne 0x1009f34f
mov byte [ebp + 0x13], 0
jmp 0x1009f5ab
push dword [ebp + 4]
mov esi, ebx
push dword [ebp - 0x20]
call fcn.1009c902
mov eax, dword [ebx]
pop ecx
pop ecx
push ebx
call dword [eax + 0x390]
test al, al
jne 0x1009f497
push dword [ebp]
push dword [ebp - 0x20]
call fcn.1009c939
mov eax, dword [ebx]
pop ecx
pop ecx
push ebx
call dword [eax + 0x390]
test al, al
jne 0x1009f497
cmp dword [ebp + 0x1c], 0
je 0x1009f558
push dword [ebp + 0x1c]
call dword [sym.imp.kernel32.dll_GlobalLock]
test eax, eax
je 0x1009f54f
test byte [eax + 0x48], 2
je 0x1009f54f
movzx eax, word [eax + 0x4e]
push eax
push dword [0x100fd36c]
push dword [ebp + 0xc]
push ebx
call fcn.100130d0
add esp, 0x10
test al, al
jne 0x1009f497
push dword [ebp + 0x1c]
call dword [sym.imp.kernel32.dll_GlobalUnlock]
mov byte [ebp + 0x13], 1
xor edi, edi
call fcn.1007f3c7
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
push edi
call fcn.100130d0
mov esi, dword [ebp + 0xc]
add esp, 0xc
push esi
push ebx
call fcn.1009964a
pop ecx
pop ecx
cmp dword [ebp + 0x1c], eax
je 0x1009f590
push dword [ebp + 0x1c]
push esi
push ebx
call fcn.10099661
add esp, 0xc
push esi
push ebx
call fcn.1009967f
pop ecx
pop ecx
cmp dword [ebp + 0x20], eax
je 0x1009f5ab
push dword [ebp + 0x20]
push esi
push ebx
call fcn.10099696
add esp, 0xc
push dword [ebp - 0x24]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x58]
cmp dword [ebp - 0x1c], edi
je 0x1009f5c2
push dword [ebp - 0x1c]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x5c]
cmp dword [ebp - 0x28], edi
je 0x1009f5d0
push dword [ebp - 0x28]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x5c]
push dword [ebp - 0x20]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x5c]
push dword [ebp + 0xc]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x5c]
mov al, byte [ebp + 0x13]
jmp 0x1009f5f4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x68]
xor ecx, ebp
call fcn.100b4c22
add ebp, 0x6c
leave
ret 8