Function at 0x6d09ed3b
Capabilities:
Get geographical location

Disassembly:
push ebp
sub esp, 0x68
lea ebp, [esp - 4]
mov eax, dword [0x6d0fb630]
xor eax, ebp
mov dword [ebp + 0x68], eax
push 0x38
mov eax, 0x6d0b7894
call fcn.6d0b4001
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.6d0af51c
call fcn.6d0a44f0
mov eax, dword [ebx]
push esi
push ebx
call dword [eax + 0x54]
push dword [0x6d0fe348]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x17c]
push dword [0x6d0fe430]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x24]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x17c]
push dword [0x6d0fe43c]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x1c]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x17c]
push dword [0x6d0fe438]
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 0x6d09eded
push dword [0x6d0fe35c]
mov eax, dword [ebx]
push dword [ebp - 0x28]
push ebx
call dword [eax + 0x194]
mov dword [ebp - 0x30], edx
mov esi, eax
jmp 0x6d09edef
xor esi, esi
push 0x54
lea eax, [ebp + 0x14]
push edi
push eax
mov byte [ebp + 0x13], 0
call sub.MSVCR100.dll_memset
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x24]
neg esi
sbb esi, esi
and esi, dword [0x6d0fe4cc]
push ebx
mov dword [ebp + 0x18], esi
mov esi, 0x400
mov dword [ebp + 0x14], 0x54
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], 0x6d09d6be
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x64], edi
call fcn.6d099222
add esp, 0x14
cmp eax, edi
je 0x6d09f065
push dword [ebp + 0xc]
push ebx
call fcn.6d099257
pop ecx
pop ecx
cmp eax, edi
je 0x6d09f065
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 0x6d09eed4
cmp eax, 0xffffffff
ja 0x6d09f04b
cmp eax, 0x7fffffff
ja 0x6d09f04b
add eax, eax
push eax
call fcn.6d0af480
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x6d09eed4
push dword [ebp + 4]
push eax
push 0xd
push esi
call edi
test eax, eax
jle 0x6d09eeca
push dword [ebp - 0x14]
push 0x6d0d5278
call dword [sym.imp.MSVCR100.dll_wcscmp]
pop ecx
pop ecx
test eax, eax
jne 0x6d09eeca
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.6d099222
pop ecx
pop ecx
push dword [ebp + 0xc]
mov dword [ebp + 0x1c], eax
push ebx
call fcn.6d099257
pop ecx
pop ecx
mov dword [ebp + 0x20], eax
xor edi, edi
push dword [ebp + 0xc]
push ebx
call fcn.6d0991ed
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.6d09eae1
mov eax, dword [ebx]
add esp, 0x10
push ebx
call dword [eax + 0x390]
test al, al
jne 0x6d09f081
mov dword [ebp + 0x58], 0x6d09d6be
mov dword [ebp + 0x24], 0x2002
call fcn.6d07fd43
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.COMDLG32.dll_PageSetupDlgW]
cmp eax, edi
je 0x6d09f107
push dword [ebp - 0x20]
mov esi, ebx
call fcn.6d09c49f
pop ecx
mov dword [ebp + 4], eax
cmp eax, edi
je 0x6d09f081
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 0x6d09effe
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
je 0x6d09eff5
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 0x6d09efcb
push 0xffffffffffffffff
push dword [ebp]
call esi
pop ecx
pop ecx
cmp dword [ebp - 0x14], edi
je 0x6d09efe6
push dword [ebp + 0xc]
push ebx
call fcn.6d0991ed
pop ecx
pop ecx
cmp eax, edi
je 0x6d09efe6
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.6d099204
add esp, 0xc
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 0xc]
push ebx
call fcn.6d0991ed
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.6d09d9c2
push dword [ebp - 0x30]
lea esi, [ebp - 0x44]
push dword [ebp + 4]
lea edi, [ebp - 0x18]
call fcn.6d09db11
mov eax, dword [ebx]
add esp, 0x1c
push ebx
call dword [eax + 0x390]
test al, al
je 0x6d09f08a
mov byte [ebp + 0x13], 0
xor edi, edi
jmp 0x6d09f154
xor eax, eax
lea edi, [ebp + 0x13]
stosb byte es:[edi], al
mov al, byte [ebp + 0x13]
mov byte [ebp + 0xb], al
push 0x6d0d93c8
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 0x6d09eef8
cmp dword [ebp + 0x20], edi
jne 0x6d09eef8
mov byte [ebp + 0x13], 0
jmp 0x6d09f154
push dword [ebp + 4]
mov esi, ebx
push dword [ebp - 0x20]
call fcn.6d09c4d3
mov eax, dword [ebx]
pop ecx
pop ecx
push ebx
call dword [eax + 0x390]
test al, al
jne 0x6d09f040
push dword [ebp]
push dword [ebp - 0x20]
call fcn.6d09c50a
mov eax, dword [ebx]
pop ecx
pop ecx
push ebx
call dword [eax + 0x390]
test al, al
jne 0x6d09f040
cmp dword [ebp + 0x1c], 0
je 0x6d09f101
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x6d09f0f8
test byte [eax + 0x48], 2
je 0x6d09f0f8
movzx eax, word [eax + 0x4e]
push eax
push dword [0x6d0fb364]
push dword [ebp + 0xc]
push ebx
call fcn.6d09c775
add esp, 0x10
test al, al
jne 0x6d09f040
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov byte [ebp + 0x13], 1
xor edi, edi
call fcn.6d07ef44
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
push edi
call fcn.6d07efd8
mov esi, dword [ebp + 0xc]
add esp, 0xc
push esi
push ebx
call fcn.6d099222
pop ecx
pop ecx
cmp dword [ebp + 0x1c], eax
je 0x6d09f139
push dword [ebp + 0x1c]
push esi
push ebx
call fcn.6d099239
add esp, 0xc
push esi
push ebx
call fcn.6d099257
pop ecx
pop ecx
cmp dword [ebp + 0x20], eax
je 0x6d09f154
push dword [ebp + 0x20]
push esi
push ebx
call fcn.6d09926e
add esp, 0xc
push dword [ebp - 0x24]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x58]
cmp dword [ebp - 0x1c], edi
je 0x6d09f16b
push dword [ebp - 0x1c]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x5c]
cmp dword [ebp - 0x28], edi
je 0x6d09f179
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 0x6d09f19d
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.6d0b3eb2
add ebp, 0x6c
leave
ret 8