Function at 0x408800
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x234
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x408aa0
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov cl, byte [esp + 0x248]
mov ebx, eax
test bl, 9
setne al
test cl, cl
jne 0x40884b
mov cl, byte [esp + 0x24c]
test cl, cl
je 0x40884b
test al, al
jne 0x40891f
or ebx, 9
jmp 0x408856
test al, al
je 0x40891f
and ebx, 0xfffffff6
mov eax, dword [ebp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00445590
mov esi, eax
test esi, esi
je 0x40891f
mov edx, dword [ebp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x1001
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0x1c]
push 3
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov edx, dword [ebp + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.0044b27a
mov ecx, ebp
call fcn.00447fd9
mov ecx, dword [ebp + 0x1c]
push 0xffffffffffffffec
push ecx
mov edi, eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x14], eax
call dword [edx + 0x58]
mov ecx, dword [esp + 0x14]
push 0
push edi
lea eax, [esp + 0x34]
push esi
push eax
push ebx
push 0x4681a0
push 0x462588
push ecx
mov ecx, ebp
call fcn.00445a9b
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x408aa0
mov edx, dword [esp + 0x10]
push 3
push 0
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [esp + 0x18]
mov ecx, ebp
push eax
call fcn.0042b2b4
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x3e]
mov word [esp + 0x3c], 0
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
stosw word es:[edi], ax
mov al, byte [esp + 0x248]
test al, al
je 0x40897a
lea ecx, [esp + 0x3c]
push 0x104
push ecx
push 0x1f
push 0x400
call esi
mov al, byte [esp + 0x24c]
test al, al
je 0x408a8a
lea edx, [esp + 0x3c]
push 0x4620ec
push edx
call fcn.004330a9
add esp, 8
mov al, byte [esp + 0x24c]
test al, al
je 0x408a8a
lea eax, [esp + 0x3c]
push eax
call fcn.00432a93
mov ecx, 0x104
add esp, 4
sub ecx, eax
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.00432a93
add esp, 4
lea eax, [esp + eax*2 + 0x40]
push eax
push 0x1003
push 0x400
call esi
mov al, byte [esp + 0x250]
test al, al
jne 0x408a8a
lea ecx, [esp + 0x3c]
push 0x462580
push ecx
call fcn.00432be5
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x408a8a
cmp word [ebx], 0x20
lea edx, [ebx + 4]
mov dword [esp + 0x14], edx
jne 0x4089fd
sub ebx, 2
cmp word [ebx], 0x20
je 0x4089f4
xor eax, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1a], eax
push 0xa
mov dword [esp + 0x22], eax
push ecx
mov dword [esp + 0x2a], eax
push 0x1e
mov dword [esp + 0x32], eax
push 0x400
mov word [esp + 0x28], 0
mov word [esp + 0x3a], ax
call esi
lea edx, [esp + 0x18]
push edx
call fcn.00432a93
mov esi, eax
lea eax, [esp + 0x1c]
push eax
lea edi, [esp + 0x20]
shl esi, 1
call fcn.00432a93
mov ecx, esi
mov esi, ebx
add esp, 8
shl eax, 1
sub esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x408a6a
lea eax, [esp + 0x18]
push eax
call fcn.00432a93
add esp, 4
neg eax
lea ebx, [ebx + eax*2]
mov ecx, ebx
lea edx, [esp + 0x3c]
sub ecx, edx
mov eax, 0x104
sar ecx, 1
sub eax, ecx
mov ecx, dword [esp + 0x14]
push eax
push ecx
push ebx
call fcn.00432c60
add esp, 0xc
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x3c]
push edx
push 0
push 0x1032
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret 0xc