Function at 0x4050f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42455e
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x42e43c]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov eax, dword [0x42e43c]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
push 0xc
mov edi, ecx
call fcn.0040d736
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
xor ebx, ebx
mov dword [esp + 0x240], ebx
cmp esi, ebx
je 0x40516e
push 0x1000
call fcn.0040c03e
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0x800
mov dword [esi + 4], ebx
mov dword [esp + 0x14], esi
jmp 0x405174
mov dword [esp + 0x14], ebx
mov esi, ebx
push 0x11c
lea eax, [esp + 0x20]
push ebx
push eax
mov dword [esp + 0x24c], 0xffffffff
call fcn.0040f840
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [esp + 0x1c]
call fcn.004053f0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 9
lea edx, [esp + 0x154]
push edx
push 0x59
push 0x400
mov dword [esp + 0x28], eax
call ebx
test eax, eax
jne 0x40523d
cmp dword [edi + 0x430], 8
jb 0x4051e0
mov eax, dword [edi + 0x41c]
jmp 0x4051e6
lea eax, [edi + 0x41c]
push eax
lea eax, [esp + 0x168]
push 0x64
push eax
call fcn.0040d6ac
push str._Module:_
lea ecx, [esp + 0x174]
push 0x64
push ecx
call fcn.0040d5de
push str.Failed_to_get_the_locale_from_GetLocaleInfo_n
lea edx, [esp + 0x180]
push 0x64
push edx
call fcn.0040d5de
add esp, 0x24
lea eax, [esp + 0x164]
push eax
mov eax, dword [edi + 0x434]
mov esi, 0x64
call fcn.00402c20
mov esi, dword [esp + 0x14]
push 9
lea ecx, [esp + 0x140]
push ecx
push 0x5a
push 0x400
call ebx
test eax, eax
jne 0x4052c2
cmp dword [edi + 0x430], 8
jb 0x405265
mov eax, dword [edi + 0x41c]
jmp 0x40526b
lea eax, [edi + 0x41c]
push eax
lea edx, [esp + 0x168]
push 0x64
push edx
call fcn.0040d6ac
push str._Module:_
lea eax, [esp + 0x174]
push 0x64
push eax
call fcn.0040d5de
push str.Failed_to_get_the_locale_from_GetLocaleInfo_n
lea ecx, [esp + 0x180]
push 0x64
push ecx
call fcn.0040d5de
mov eax, dword [edi + 0x434]
add esp, 0x24
lea edx, [esp + 0x164]
push edx
mov esi, 0x64
call fcn.00402c20
mov esi, dword [esp + 0x14]
mov ecx, edi
call fcn.00404e50
test eax, eax
jne 0x40533b
cmp dword [edi + 0x430], 8
jb 0x4052de
mov eax, dword [edi + 0x41c]
jmp 0x4052e4
lea eax, [edi + 0x41c]
push eax
lea eax, [esp + 0x168]
push 0x64
push eax
call fcn.0040d6ac
push str._Module:_
lea ecx, [esp + 0x174]
push 0x64
push ecx
call fcn.0040d5de
push str.Failed_to_get_the_OS_architecture_information_n
lea edx, [esp + 0x180]
push 0x64
push edx
call fcn.0040d5de
add esp, 0x24
lea eax, [esp + 0x164]
push eax
mov eax, dword [edi + 0x434]
mov esi, 0x64
call fcn.00402c20
mov esi, dword [esp + 0x14]
movzx eax, word [esp + 0x132]
lea ecx, [esp + 0x13c]
push ecx
movzx ecx, word [esp + 0x134]
lea edx, [esp + 0x154]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [edx*4 + 0x42f560]
lea ecx, [edi + 0x444]
push ecx
mov ecx, dword [esi]
push eax
push str._t_t_osidentification_name__s__architecture__s__vendor_Microsoft__majorversion__d__minorversion__d__spmajorversion__d__spminorversion__d__locale__s__s____osidentification__n_t__systeminfo__n
push 0x800
push ecx
call fcn.0040cf33
add esp, 0x2c
mov dword [esi + 4], 0
cmp dword [edi + 0x43c], 0
jne 0x4053ad
mov dword [edi + 0x43c], esi
mov dword [edi + 0x440], esi
jmp 0x4053c5
mov edx, dword [edi + 0x440]
mov dword [edx + 4], esi
mov eax, dword [edi + 0x440]
mov ecx, dword [eax + 4]
mov dword [edi + 0x440], ecx
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0040cf24
mov esp, ebp
pop ebp
ret