Function at 0x415af0
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x44f0
call fcn.004d4ce0
push ebx
mov ebx, dword [esp + 0x4504]
mov dword [esp + 4], ecx
push ebp
mov ecx, dword [esp + 0x4504]
push esi
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
push edi
push ecx
lea eax, [ebx + 0x410]
push 0x4ed128
push 0x103
push eax
mov dword [esp + 0x38], eax
call esi
mov ebp, dword [esp + 0x4518]
mov eax, dword [esp + 0x4514]
lea edx, [ebx + 0x208]
push 0x104
push edx
push str.type
push ebp
push eax
call fcn.004ae040
mov cx, word [0x500df0]
xor eax, eax
mov word [esp + 0x464], cx
mov ecx, 0x81
lea edi, [esp + 0x466]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x73ff2c]
lea edx, [esp + 0x468]
push 0x104
push edx
push eax
call fcn.004a8e10
mov dx, word [0x500df0]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x66]
mov word [esp + 0x64], dx
mov word [esp + 0x26c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [esp + 0x4538]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x26e]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x64]
push 0x104
push ecx
push str.path
push ebp
push edx
stosw word es:[edi], ax
call fcn.004ae040
mov eax, dword [esp + 0x58]
add esp, 0x48
lea ecx, [esp + 0x30]
add eax, 0x6288c
push ebp
push ecx
push eax
push 0x4ee330
lea edx, [ebx + 0x820]
push 0x103
push edx
mov dword [esp + 0x44], eax
call esi
mov ax, word [0x500df0]
mov ecx, 0x411
mov word [esp + 0x1088], ax
xor eax, eax
lea edi, [esp + 0x108a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [esp + 0x451c]
lea ecx, [esp + 0x1088]
push 0x824
push ecx
push 0x4ed808
push ebp
push edx
call fcn.004ae040
push 0x4ee314
push ebp
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 0x34
test eax, eax
jne 0x415edf
mov dx, word [0x500df0]
mov ecx, 0x81
lea edi, [esp + 0xa5a]
mov word [esp + 0xa58], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x852]
mov word [esp + 0x850], dx
rep stosd dword es:[edi], eax
mov ecx, dword [0x73ff2c]
push 0x104
stosw word es:[edi], ax
lea eax, [esp + 0xa5c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x850]
push 0x104
lea eax, [esp + 0xa5c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [esp + 0xa58]
push ecx
call edi
push eax
push 0x4ed128
push 0x207
push ebx
call esi
add esp, 0x10
lea edx, [esp + 0x850]
push edx
call edi
push eax
lea eax, [esp + 0x34]
lea ecx, [esp + 0x444]
push eax
push ecx
push 0x4ee330
lea edx, [esp + 0x248]
push 0x103
push edx
call esi
add esp, 0x18
lea eax, [esp + 0x850]
push eax
call edi
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x444]
push ecx
push edx
push 0x4ee330
lea eax, [ebx + 0x618]
push 0x103
push eax
call esi
mov cx, word [0x500df0]
xor edx, edx
mov dword [esp + 0x2e], edx
add esp, 0x18
mov dword [esp + 0x1a], edx
lea eax, [esp + 0x238]
mov dword [esp + 0x1e], edx
mov word [esp + 0x14], cx
mov ecx, dword [0x71de20]
mov dword [esp + 0x22], edx
push edx
push eax
mov word [esp + 0x2e], dx
call fcn.004abab0
lea ecx, [esp + 0x14]
push 0xa
push ecx
and eax, 0xffff
push 3
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea edx, [esp + 0x14]
push 0x4ee310
lea ecx, [esp + 0x1074]
push edx
push ecx
lea eax, [ebx + 0xc30]
push str._sTheWorld__s__s.zip
push 0x823
push eax
call esi
mov ecx, dword [0x71de20]
add esp, 0x18
call fcn.004ac340
test eax, eax
mov dword [esp + 0x10], eax
je 0x415e80
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x415e80
mov dx, word [0x500df0]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x64a]
mov word [esp + 0x648], dx
mov edx, dword [0x73ff2c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
push str.languages_
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x64c]
mov dword [esp + 0x1c], eax
push 0x104
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x2c], eax
push edx
mov dword [esp + 0x34], eax
call fcn.004a8e10
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x648]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [0x71de20]
lea edx, [esp + 0x648]
push 0
push edx
call fcn.004abab0
lea ecx, [esp + 0x14]
push 0xa
push ecx
and eax, 0xffff
push 3
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dx, word [0x500df0]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xc62]
mov word [esp + 0xc60], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc60]
push eax
push str.SUBVER__s
push 0x104
push ecx
call esi
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x4514]
push 0x104
lea eax, [esp + 0xc74]
push edx
push eax
push ebp
push ecx
call fcn.004ae040
add esp, 0x24
jmp 0x415f57
lea edx, [esp + 0x1070]
lea eax, [ebx + 0xc30]
push edx
push 0x4ed128
push 0x823
push eax
call esi
add esp, 0x10
push ebp
push 0x4ed128
push 0x207
push ebx
call esi
add esp, 0x10
lea eax, [esp + 0x30]
lea ecx, [esp + 0x440]
lea edx, [esp + 0x238]
push ebp
push eax
push ecx
push 0x4ee330
push 0x103
push edx
call esi
add esp, 0x18
lea eax, [esp + 0x30]
lea ecx, [esp + 0x440]
lea edx, [ebx + 0x618]
push ebp
push eax
push ecx
push 0x4ee330
push 0x103
push edx
call esi
add esp, 0x18
lea eax, [esp + 0x20b8]
push 0
lea edi, [ebx + 0xc30]
push eax
push edi
call fcn.004a39e0
add esp, 0xc
test eax, eax
jne 0x415f81
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44f0
ret 0x14
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push eax
push ecx
push edx
push 0x4ee330
add ebx, 0xa28
push 0x103
push ebx
call esi
mov eax, dword [esp + 0x451c]
push 0
push str.needfile
push ebp
push eax
call fcn.004ae190
add esp, 0x28
cmp eax, 1
jne 0x415fe6
lea ecx, [esp + 0x238]
push 0
push ecx
call fcn.004a8e00
add esp, 8
test eax, eax
jne 0x415fe6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44f0
ret 0x14
mov eax, dword [esp + 0x4514]
test eax, eax
je 0x416003
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44f0
ret 0x14
mov dx, word [0x500df0]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe6a]
mov word [esp + 0xe68], dx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xe6c]
lea ecx, [esp + 0x23c]
push eax
push ecx
call fcn.004a9020
mov eax, dword [esp + 0x34]
lea edx, [esp + 0xe74]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 0x14
xor ecx, ecx
test eax, eax
pop edi
pop esi
setg cl
pop ebp
mov eax, ecx
pop ebx
add esp, 0x44f0
ret 0x14