Function at 0x404dc0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x49199c
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x4ae498]
xor eax, esp
mov dword [esp + 0x2b4], eax
push ebx
push edi
mov eax, dword [0x4ae498]
xor eax, esp
push eax
lea eax, [esp + 0x2f8]
mov dword fs:[0], eax
lea eax, [esp + 0x38]
push eax
push 0x49d9cc
push 3
xor ebx, ebx
push ebx
push 0x49cdd4
mov dword [esp + 0x54], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x404e44
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x16
mov word [esi + 4], cx
push str._error_id_internal___
mov ecx, esi
call fcn.00402740
jmp 0x4050b2
mov edx, dword [0x49cd24]
mov eax, dword [0x49cd28]
mov ecx, dword [0x49cd2c]
mov dword [esp + 0x90], edx
mov edx, dword [0x49cd30]
push 1
mov dword [esp + 0xa0], edx
push 1
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x98]
push edx
mov dword [esp + 0xa4], ecx
mov ecx, dword [eax]
push ebx
push eax
mov eax, dword [ecx + 0x2c]
call eax
test eax, eax
mov eax, dword [esp + 0x38]
jge 0x404ec3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 0x1b
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push str._error_id_access_denied___
mov ecx, esi
mov word [esi + 4], ax
call fcn.00402740
jmp 0x4050b2
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x40]
push ecx
push edx
push 0x49cd24
push eax
call fcn.00451de0
mov edi, eax
add esp, 0x10
cmp edi, ebx
jge 0x404f14
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, esi
cmp edi, 0x80010115
jne 0x404f05
push str._error_id_timeout___
call fcn.00401de0
jmp 0x4050b2
push str._error_id_internal___
call fcn.00401de0
jmp 0x4050b2
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x300], ebx
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
lea edx, [esp + 0x3c]
push edx
push 0x49d9dc
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jge 0x404f61
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push str._error_id_internal___
mov ecx, esi
call fcn.00401de0
jmp 0x405097
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
lea edx, [esp + 0x44]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jge 0x404f9f
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push str._error_id_internal___
mov ecx, esi
call fcn.00401de0
jmp 0x405097
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jge 0x404fdd
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push str._error_id_internal___
mov ecx, esi
call fcn.00401de0
jmp 0x405097
fld qword [esp + 0x4c]
sub esp, 0x10
fstp qword [esp + 8]
lea edx, [esp + 0xcc]
fld qword [esp + 0x54]
fstp qword [esp]
push str.latitude__f__longitude__f_
call fcn.00406ac0
add esp, 0x14
push str._result
lea ecx, [esp + 0x5c]
call fcn.00401de0
lea ecx, [esp + 0xbc]
push ecx
push eax
lea edx, [esp + 0x7c]
push edx
mov byte [esp + 0x30c], 1
call fcn.00402d50
push 0x49d79c
push eax
lea eax, [esp + 0xb4]
push eax
mov byte [esp + 0x318], 2
call fcn.00402d50
add esp, 0x18
lea ecx, [esp + 0x74]
call fcn.00401e50
lea ecx, [esp + 0x58]
mov byte [esp + 0x300], 5
call fcn.00401e50
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0xa0]
push eax
mov ecx, esi
call fcn.00401e20
lea ecx, [esp + 0xa0]
call fcn.00401e50
mov dword [esp + 0x300], 0xffffffff
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x4050b2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0x2f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x2b4]
xor ecx, esp
call fcn.0046aaed
mov esp, ebp
pop ebp
ret 4