Function at 0x45f780
Capabilities:
Get geographical location
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10218
call fcn.0046f7a0
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
push 0xfff8
mov dword [ebp - 0x10214], esi
mov dword [ebp - 0x1020c], ebx
mov eax, dword [edi]
mov dword [edi + 4], eax
xor eax, eax
push eax
mov word [ebp - 0x10208], ax
lea eax, [ebp - 0x10206]
push eax
call fcn.0046fe20
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046fe20
add esp, 0x18
lea eax, [ebp - 0x10208]
push esi
push 0x7ffd
push eax
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x45fa69
lea esi, [ebp - 0x10208]
mov dword [ebp - 0x10218], esi
cmp word [ebp - 0x10208], bx
je 0x45fa69
xor eax, eax
inc eax
mov ecx, edi
push eax
mov dword [ebp - 0x10210], eax
call fcn.00462330
mov eax, dword [edi]
push 0x3d
push 0x104
add eax, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0043da30
mov esi, dword [edi]
lea eax, [ebp - 0x20c]
push eax
call fcn.00470df9
mov dword [esi + ebx + 0x3058], eax
add esp, 0x1c
mov eax, dword [edi]
mov dword [ebx + eax + 0x3064], 1
mov eax, dword [edi]
add eax, ebx
cmp word [eax], 0
jne 0x45f8a2
cmp dword [eax + 0x3058], 0x809
jne 0x45f8a2
push str.English.lng
push 0x104
push eax
call fcn.00470452
add esp, 0xc
mov eax, dword [edi]
add eax, ebx
push eax
push dword [eax + 0x3058]
push dword [ebp - 0x1020c]
push str.ReadLanguages__d___LangID:__d_FileName:__s
call fcn.004699e0
mov ecx, dword [edi]
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x100
lea eax, [ecx + 0x410]
add eax, ebx
push eax
push 2
push dword [ecx + ebx + 0x3058]
call esi
mov ecx, dword [edi]
push 8
lea eax, [ecx + 0x610]
add eax, ebx
push eax
push 3
push dword [ecx + ebx + 0x3058]
call esi
mov eax, dword [edi]
mov esi, dword [ebp - 0x10214]
add eax, 0x62e
push esi
push 0x104
add eax, ebx
push eax
push 0x48d8a4
push str.LicenseFile
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi]
push esi
push 0x800
add eax, 0x836
add eax, ebx
push eax
push 0x48d8a4
push str.LicenseUrl
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi]
push esi
push 0x800
add eax, 0x1836
add eax, ebx
push eax
push 0x48d8a4
push str.PrivacyUrl
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi]
push esi
push 0x104
add eax, 0x2a3e
add eax, ebx
push eax
push 0x48d8a4
push str.LUUrl
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi]
push esi
push 0x104
add eax, 0x2c46
add eax, ebx
push eax
push 0x48d8a4
push str.LUExeParams
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi]
push esi
add eax, 0x2e4e
push 0x104
add eax, ebx
push eax
push 0x48d8a4
push str.LUTgdFolder
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x45fa04
mov eax, dword [edi]
add eax, 0x2e4e
add eax, ebx
push 0x104
push eax
call fcn.00460070
add esp, 8
mov eax, dword [edi]
add eax, 0x2e4e
add eax, ebx
cmp word [eax], 0
jne 0x45fa26
push 0x4cb028
push 0x104
push eax
call fcn.00470452
add esp, 0xc
mov esi, dword [ebp - 0x10218]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45fa31
sub eax, edx
add ebx, 0x306c
sar eax, 1
lea esi, [esi + eax*2]
mov eax, dword [ebp - 0x10210]
add esi, 2
mov dword [ebp - 0x1020c], eax
mov dword [ebp - 0x10218], esi
cmp word [esi], cx
jne 0x45f827
mov ebx, eax
mov ecx, dword [edi + 4]
mov eax, 0x2a4b80c9
sub ecx, dword [edi]
imul ecx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x45fc3b
lea eax, [ebx + 1]
mov ecx, edi
push eax
mov dword [ebp - 0x10210], eax
call fcn.00462330
mov eax, dword [edi]
imul esi, ebx, 0x306c
push 0x48d8a4
push 0x104
add eax, esi
push eax
call fcn.00470452
mov eax, dword [edi]
push 0xa
push 0x104
mov dword [eax + esi + 0x3058], 0x809
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [edi]
push dword [eax + esi + 0x3058]
call fcn.004734da
mov eax, dword [edi]
add esp, 0x1c
mov dword [eax + esi + 0x3064], 1
mov ecx, dword [edi]
push 0x100
lea eax, [ecx + 0x410]
add eax, esi
push eax
push 2
push dword [ecx + esi + 0x3058]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov eax, dword [edi]
mov ebx, dword [ebp - 0x10214]
add eax, 0x62e
push ebx
push 0x104
add eax, esi
push eax
push 0x48d8a4
push str.LicenseFile
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi]
push ebx
push 0x800
add eax, 0x836
add eax, esi
push eax
push 0x48d8a4
push str.LicenseUrl
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi]
push ebx
push 0x800
add eax, 0x1836
add eax, esi
push eax
push 0x48d8a4
push str.PrivacyUrl
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi]
push ebx
push 0x104
add eax, 0x2a3e
add eax, esi
push eax
push 0x48d8a4
push str.LUUrl
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi]
push ebx
push 0x104
add eax, 0x2c46
add eax, esi
push eax
push 0x48d8a4
push str.LUExeParams
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi]
push ebx
add eax, 0x2e4e
push 0x104
add eax, esi
push eax
push 0x48d8a4
push str.LUTgdFolder
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x45fc13
mov eax, dword [edi]
add eax, 0x2e4e
add eax, esi
push 0x104
push eax
call fcn.00460070
add esp, 8
mov eax, dword [edi]
add eax, 0x2e4e
add eax, esi
cmp word [eax], 0
jne 0x45fc35
push 0x4cb028
push 0x104
push eax
call fcn.00470452
add esp, 0xc
mov ebx, dword [ebp - 0x10210]
push ebx
push str.ReadLanguages_____d
call fcn.004699e0
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046f33a
mov esp, ebp
pop ebp
ret