Function at 0x404ca0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x478bf4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xd8], eax
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xd4], edi
test eax, eax
je 0x40514d
push ebx
push esi
xor ebx, ebx
lea eax, [ebx + 0x47]
lea ecx, [ebx + 0x46]
movd xmm3, eax
lea edx, [ebx + 0x45]
movd xmm0, ecx
lea esi, [ebx + 0x44]
movd xmm1, edx
movd xmm2, esi
punpckldq xmm2, xmm0
punpckldq xmm1, xmm3
punpckldq xmm2, xmm1
movups xmmword [ebp + ebx*4 - 0x188], xmm2
add ebx, 4
cmp ebx, 0xc
jl 0x404cd2
mov dword [ebp - 0x158], 0x100f
xor ebx, ebx
lea eax, [ebx + 0x3b]
lea ecx, [ebx + 0x3a]
movd xmm3, eax
lea edx, [ebx + 0x39]
movd xmm0, ecx
lea esi, [ebx + 0x38]
movd xmm1, edx
movd xmm2, esi
punpckldq xmm2, xmm0
punpckldq xmm1, xmm3
punpckldq xmm2, xmm1
movups xmmword [ebp + ebx*4 - 0x154], xmm2
add ebx, 4
cmp ebx, 0xc
jl 0x404d16
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [ebp - 0xcc]
push 0xc8
push eax
push 0x100c
push edi
mov dword [ebp - 0x124], 0x100e
mov dword [ebp - 0x120], 0x37
mov dword [ebp - 0x11c], 0x31
mov dword [ebp - 0x118], 0x32
mov dword [ebp - 0x114], 0x33
mov dword [ebp - 0x110], 0x34
mov dword [ebp - 0x10c], 0x35
mov dword [ebp - 0x108], 0x36
mov dword [ebp - 0x104], 0x30
mov dword [ebp - 0x100], 0x2a
mov dword [ebp - 0xfc], 0x2b
mov dword [ebp - 0xf8], 0x2c
mov dword [ebp - 0xf4], 0x2d
mov dword [ebp - 0xf0], 0x2e
mov dword [ebp - 0xec], 0x2f
call esi
lea eax, [ebp - 0xcc]
push eax
call fcn.0043e103
mov ecx, dword [ebp - 0xd8]
add esp, 4
mov dword [ecx + 0xb4], eax
xor ecx, ecx
mov dword [ebp - 0xe0], ecx
imul eax, ecx, 0x34
mov dword [ebp - 0xdc], 0
lea eax, [ebp + eax - 0x188]
mov dword [ebp - 0xd0], eax
nop dword [eax + eax]
mov eax, dword [eax]
push 0
push 0
push eax
push edi
test ecx, ecx
jne 0x404e86
call esi
mov edi, eax
lea ecx, [edi + 3]
push ecx
call fcn.0043d27d
add esp, 4
lea ecx, [edi + 1]
mov edi, dword [ebp - 0xd4]
mov ebx, eax
push ecx
mov ecx, dword [ebp - 0xd0]
push ebx
mov eax, dword [ecx]
push eax
push edi
call esi
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ebp - 0xd8]
mov dword [edx + ecx*4], ebx
jmp 0x404ebf
call esi
mov edi, eax
lea ecx, [edi + 3]
push ecx
call fcn.0043d27d
add esp, 4
lea ecx, [edi + 1]
mov edi, dword [ebp - 0xd4]
mov ebx, eax
push ecx
mov ecx, dword [ebp - 0xd0]
push ebx
mov eax, dword [ecx]
push eax
push edi
call esi
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ebp - 0xd8]
mov dword [edx + ecx*4 + 0x34], ebx
mov eax, dword [ebp - 0xd0]
inc ecx
add eax, 4
mov dword [ebp - 0xdc], ecx
cmp ecx, 0xd
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0xe0]
jl 0x404e40
inc ecx
mov dword [ebp - 0xe0], ecx
cmp ecx, 2
jl 0x404e21
xor ecx, ecx
lea eax, [edx + 0x84]
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xe4], eax
nop dword [eax + eax]
mov dword [ebp - 0xe0], eax
lea eax, [ecx*8]
sub eax, ecx
mov dword [ebp - 0xe8], 7
lea eax, [ebp + eax*4 - 0x120]
mov dword [ebp - 0xd0], eax
mov eax, dword [eax]
push 0
push 0
push eax
push edi
test ecx, ecx
jne 0x404f76
call esi
mov edi, eax
lea ecx, [edi + 3]
push ecx
call fcn.0043d27d
add esp, 4
lea ecx, [edi + 1]
mov edi, dword [ebp - 0xd4]
mov ebx, eax
push ecx
mov ecx, dword [ebp - 0xd0]
push ebx
mov eax, dword [ecx]
push eax
push edi
call esi
mov ecx, dword [ebp - 0xe0]
mov dword [ecx - 0x1c], ebx
jmp 0x404fa7
call esi
mov edi, eax
lea ecx, [edi + 3]
push ecx
call fcn.0043d27d
add esp, 4
lea ecx, [edi + 1]
mov edi, dword [ebp - 0xd4]
mov ebx, eax
push ecx
mov ecx, dword [ebp - 0xd0]
push ebx
mov eax, dword [ecx]
push eax
push edi
call esi
mov ecx, dword [ebp - 0xe0]
mov dword [ecx], ebx
mov eax, dword [ebp - 0xd0]
add ecx, 4
add eax, 4
mov dword [ebp - 0xe0], ecx
sub dword [ebp - 0xe8], 1
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xd0], eax
jne 0x404f36
mov eax, dword [ebp - 0xe4]
inc ecx
mov dword [ebp - 0xdc], ecx
cmp ecx, 2
jl 0x404f10
push 0
push 0
push 0x1f
push edi
call esi
mov edi, eax
lea ecx, [edi + 3]
push ecx
call fcn.0043d27d
add esp, 4
lea ecx, [edi + 1]
mov edi, dword [ebp - 0xd4]
mov ebx, eax
push ecx
push ebx
push 0x1f
push edi
call esi
mov ecx, dword [ebp - 0xd8]
push 0
push 0
push 0x20
push edi
mov dword [ecx + 0xa8], ebx
call esi
mov edi, eax
lea ecx, [edi + 3]
push ecx
call fcn.0043d27d
add esp, 4
lea ecx, [edi + 1]
mov edi, dword [ebp - 0xd4]
mov ebx, eax
push ecx
push ebx
push 0x20
push edi
call esi
mov eax, dword [ebp - 0xd8]
push 0
push 0
push 0x1003
push edi
mov dword [eax + 0xac], ebx
call esi
mov edi, eax
lea ecx, [edi + 3]
push ecx
call fcn.0043d27d
add esp, 4
lea ecx, [edi + 1]
mov edi, dword [ebp - 0xd4]
mov ebx, eax
push ecx
push ebx
push 0x1003
push edi
call esi
mov eax, dword [ebp - 0xd8]
push 0
push 0
push 0x28
mov dword [eax + 0xb0], ebx
mov ebx, edi
push ebx
call esi
mov edi, eax
lea ecx, [edi + 3]
push ecx
call fcn.0043d27d
add esp, 4
mov dword [ebp - 0xe4], eax
lea ecx, [edi + 1]
mov edi, eax
push ecx
push edi
push 0x28
push ebx
call esi
mov eax, dword [ebp - 0xd8]
add eax, 0xa0
mov dword [eax], edi
test edi, edi
je 0x4050ce
cmp byte [edi], 0
jne 0x4050ed
push 0x8a1
push str.D:MyProjectsProPilotLibDateTime.c
push fcn.0043be56
push 0
push 0x4546b4
push eax
call fcn.00406150
add esp, 0x18
push 0
push 0
push 0x29
push ebx
call esi
mov edi, eax
lea ecx, [edi + 3]
push ecx
call fcn.0043d27d
add esp, 4
mov dword [ebp - 0xe4], eax
lea ecx, [edi + 1]
mov edi, eax
push ecx
push edi
push 0x29
push ebx
call esi
mov eax, dword [ebp - 0xd8]
add eax, 0xa4
pop esi
pop ebx
mov dword [eax], edi
test edi, edi
je 0x40512e
cmp byte [edi], 0
jne 0x40514d
push 0x8a4
push str.D:MyProjectsProPilotLibDateTime.c
push fcn.0043be56
push 0
push 0x4546b8
push eax
call fcn.00406150
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004379e8
mov esp, ebp
pop ebp
ret