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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10218
call fcn.0046f160
mov eax, dword [0x4af6f0]
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.0046f7e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046f7e0
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 0x45f55d
lea esi, [ebp - 0x10208]
mov dword [ebp - 0x10218], esi
cmp word [ebp - 0x10208], bx
je 0x45f55d
xor eax, eax
inc eax
mov ecx, edi
push eax
mov dword [ebp - 0x10210], eax
call fcn.00461ce0
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.0043d9c0
mov esi, dword [edi]
lea eax, [ebp - 0x20c]
push eax
call fcn.004707b9
mov dword [esi + ebx + 0x3058], eax
mov eax, dword [edi]
mov dword [ebx + eax + 0x3064], 1
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.00469390
mov ecx, dword [edi]
add esp, 0x2c
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 0x48c8a4
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 0x48c8a4
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 0x48c8a4
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 0x48c8a4
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 0x48c8a4
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 0x48c8a4
push str.LUTgdFolder
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x45f4f8
mov eax, dword [edi]
add eax, 0x2e4e
add eax, ebx
push 0x104
push eax
call fcn.0045fb60
add esp, 8
mov eax, dword [edi]
add eax, 0x2e4e
add eax, ebx
cmp word [eax], 0
jne 0x45f51a
push 0x4c9a48
push 0x104
push eax
call fcn.0046fe12
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 0x45f525
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 0x45f347
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 0x45f72f
lea eax, [ebx + 1]
mov ecx, edi
push eax
mov dword [ebp - 0x10210], eax
call fcn.00461ce0
mov eax, dword [edi]
imul esi, ebx, 0x306c
push 0x48c8a4
push 0x104
add eax, esi
push eax
call fcn.0046fe12
mov eax, dword [edi]
push 0xa
push 0x104
mov dword [esi + eax + 0x3058], 0x809
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [edi]
push dword [esi + eax + 0x3058]
call fcn.00472e9a
mov eax, dword [edi]
add esp, 0x1c
mov dword [esi + eax + 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 0x48c8a4
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 0x48c8a4
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 0x48c8a4
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 0x48c8a4
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 0x48c8a4
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 0x48c8a4
push str.LUTgdFolder
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x45f707
mov eax, dword [edi]
add eax, 0x2e4e
add eax, esi
push 0x104
push eax
call fcn.0045fb60
add esp, 8
mov eax, dword [edi]
add eax, 0x2e4e
add eax, esi
cmp word [eax], 0
jne 0x45f729
push 0x4c9a48
push 0x104
push eax
call fcn.0046fe12
add esp, 0xc
mov ebx, dword [ebp - 0x10210]
push ebx
push str.ReadLanguages_____d
call fcn.00469390
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret