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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46e807
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4aac
call fcn.00450b80
mov eax, dword [0x498700]
xor eax, esp
mov dword [esp + 0x4aa8], eax
push ebx
push esi
push edi
mov eax, dword [0x498700]
xor eax, esp
push eax
lea eax, [esp + 0x4ac0]
mov dword fs:[0], eax
push 0x800
lea eax, [esp + 0x2b8]
mov ebx, ecx
push 0
push eax
mov dword [esp + 0x24], ebx
mov edi, edx
call fcn.00450a50
add esp, 0xc
push 0x4000
lea ecx, [esp + 0xab8]
push 0
push ecx
call fcn.00450a50
add esp, 0xc
push edi
push 0xffffffffffffffff
push str.value
push str.SKIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
push 4
mov dword [ebx + 0x24], eax
lea eax, [ebx + 0x1640]
push eax
push 0x481268
push str.value
push str.LANG
call esi
push edi
push 4
lea edx, [ebx + 0xa38]
push edx
push 0x481268
push str.value
push str.COUNTRY
call esi
push edi
push 0x100
lea eax, [ebx + 0xe40]
push eax
push 0x481268
push str.value
push str.INSTALLER_HOST_URL
call esi
push edi
push 0x100
lea ecx, [ebx + 0x1040]
push ecx
push 0x481268
push str.value1
push str.INSTALLER_HOST_URL_AB
call esi
push edi
push 0x100
lea edx, [ebx + 0x1240]
push edx
push 0x481268
push str.value2
push str.INSTALLER_HOST_URL_AB
call esi
push edi
push 0x100
lea eax, [ebx + 0x1440]
push eax
push 0x481268
push str.value
push str.INSTALLER_HOST_VER
call esi
push edi
push 0x100
lea ecx, [ebx + 0xc40]
push ecx
push 0x481268
push str.value
push str.SETUP_HOST_URL
call esi
push edi
push 0x100
lea edx, [ebx + 0x838]
push edx
push 0x481268
push str.value
push str.SERIAL
call esi
push edi
push 0x400
lea eax, [ebx + 0x38]
push eax
push 0x481268
push str.value
push str.TEST_DATA
call esi
push edi
push 0x100
lea ecx, [ebx + 0x1648]
push ecx
push 0x481268
push str.value
push str.REPORTING_URL
call esi
push edi
push 0x100
lea edx, [ebx + 0x1848]
push edx
push 0x481268
push str.value
push 0x481ca4
call esi
push edi
push 0x100
lea eax, [ebx + 0x1a48]
push eax
push 0x481268
push str.value
push str.NDL_HOST_URL
call esi
sub esp, 0x1c
mov ecx, esp
xor eax, eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], 7
mov word [ecx + 4], ax
lea eax, [ebx + 0x1640]
lea edx, [eax + 2]
mov dword [esp + 0x38], esp
mov dword [esp + 0x2c], edx
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40cb20
sub eax, dword [esp + 0x2c]
sar eax, 1
push eax
lea eax, [ebx + 0x1640]
push eax
call fcn.00406b60
call fcn.0040d130
push edi
push 0xffffffffffffffff
push str.Default_SKIN
push str.DEFAULTS
mov dword [ebx + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 0xffffffffffffffff
push str.Default_LANG
push str.DEFAULTS
mov dword [ebx + 0x1e64], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 4
mov dword [ebx + 0x1e68], eax
lea eax, [ebx + 0x1e6c]
push eax
push 0x481268
push str.Default_COUNTRY
push str.DEFAULTS
call esi
push edi
push 0x100
lea ecx, [ebx + 0x1e74]
push ecx
push 0x481268
push str.Default_SETUP_HOST_URL
push str.DEFAULTS
call esi
push edi
push 0x100
lea edx, [ebx + 0x2074]
push edx
push 0x481268
push str.Default_INSTALLER_HOST_URL
push str.DEFAULTS
call esi
push edi
push 0x400
lea eax, [esp + 0x2bc]
push eax
push 0x481268
push str.value
push str.LANGUAGES
call esi
xor esi, esi
lea eax, [esp + 0x2b4]
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], esi
mov word [esp + 0x64], si
lea ecx, [eax + 2]
jmp 0x40cc10
mov dx, word [eax]
add eax, 2
cmp dx, si
jne 0x40cc10
sub eax, ecx
sar eax, 1
push eax
lea ecx, [esp + 0x2b8]
push ecx
lea ecx, [esp + 0x68]
call fcn.00406b60
mov dword [esp + 0x4ac8], esi
lea eax, [esp + 0x2b4]
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], esi
mov word [esp + 0x48], si
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40cc53
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x2b8]
push edx
lea ecx, [esp + 0x4c]
call fcn.00406b60
push 1
push 0x481e40
lea eax, [esp + 0x68]
mov byte [esp + 0x4ad0], 1
call fcn.00406c40
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x40cdeb
jmp 0x40cca4
mov eax, dword [esp + 0x14]
push eax
xor ecx, ecx
lea esi, [esp + 0x24]
lea edx, [esp + 0x64]
call fcn.00406520
mov byte [esp + 0x4ac8], 2
cmp dword [eax + 0x18], 8
jb 0x40ccc7
mov edx, dword [eax + 4]
jmp 0x40ccca
lea edx, [eax + 4]
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ccd0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x4c]
call fcn.00406b60
mov esi, 8
mov byte [esp + 0x4ac8], 1
cmp dword [esp + 0x38], esi
jb 0x40cd0a
mov eax, dword [esp + 0x24]
push eax
call fcn.00430f55
add esp, 4
cmp dword [esp + 0x5c], esi
mov eax, dword [esp + 0x48]
jae 0x40cd18
lea eax, [esp + 0x48]
push eax
call fcn.0044e81d
mov ecx, dword [ebx + 0x14]
lea esi, [ebx + 0x10]
add esp, 4
test ecx, ecx
mov dword [esp + 0x10], eax
jne 0x40cd33
xor edx, edx
jmp 0x40cd3b
mov edx, dword [esi + 8]
sub edx, ecx
sar edx, 2
test ecx, ecx
je 0x40cd5c
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x40cd5c
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
add eax, 4
mov dword [esi + 8], eax
jmp 0x40cd83
mov eax, dword [esi + 8]
cmp ecx, eax
mov dword [esp + 0x1c], eax
jbe 0x40cd70
call fcn.0044ec76
mov eax, dword [esp + 0x1c]
push eax
push esi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x48]
push eax
mov eax, esi
call fcn.004113c0
mov ecx, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x18]
add ecx, 1
lea esi, [esp + 0x24]
lea edx, [esp + 0x64]
call fcn.00406520
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x4ad4], 3
call fcn.00406a70
mov byte [esp + 0x4ac8], 1
cmp dword [esp + 0x38], 8
jb 0x40cdce
mov edx, dword [esp + 0x24]
push edx
call fcn.00430f55
add esp, 4
push 1
push 0x481e40
lea eax, [esp + 0x68]
call fcn.00406c40
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x40cca0
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x40cdfa
lea eax, [esp + 0x64]
push eax
call fcn.0044e81d
lea esi, [ebx + 0x10]
add esp, 4
lea ebx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.00410e00
push edi
push 0xffffffffffffffff
push str.value
push 0x481e44
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
push 0x40
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0xa40]
push eax
push 0x481268
push str.value
push str.BRAND_NAME
call esi
push edi
push 0x40
lea ecx, [ebx + 0xac0]
push ecx
push 0x481268
push str.value
push str.BRAND_BACKEND_NAME
call esi
push edi
push 0x40
lea edx, [ebx + 0xb40]
push edx
push 0x481268
push str.value
push str.BRAND_DISPLAY_NAME
call esi
push edi
push 0x40
lea eax, [ebx + 0xbc0]
push eax
push 0x481268
push str.value
push str.SDL_NAME
call esi
push edi
push 0x1000
lea ecx, [esp + 0xabc]
push ecx
push 0
push 0
push str.SETUPS
call esi
mov dword [esp + 0x10], eax
xor eax, eax
mov ecx, 7
mov dword [esp + 0x94], ecx
mov dword [esp + 0x90], eax
mov word [esp + 0x80], ax
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xac], eax
mov word [esp + 0x9c], ax
push 0x200
push eax
lea edx, [esp + 0xbc]
push edx
mov byte [esp + 0x4ad4], 4
call fcn.00450a50
add esp, 0xc
cmp dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
jbe 0x40cfde
mov edx, dword [esp + 0x14]
lea edx, [esp + edx*2 + 0xab4]
mov eax, edx
lea ecx, [eax + 2]
mov dword [esp + 0x18], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cf34
sub eax, dword [esp + 0x18]
lea ecx, [esp + 0x7c]
sar eax, 1
push eax
push edx
call fcn.00406b60
cmp dword [esp + 0x94], 8
mov eax, dword [esp + 0x80]
jae 0x40cf68
lea eax, [esp + 0x80]
push edi
push 0x100
lea edx, [esp + 0xbc]
push edx
push 0x481268
push eax
push str.SETUPS
call esi
lea eax, [esp + 0x7c]
push eax
lea eax, [ebx + 4]
push eax
call fcn.00410e60
lea edx, [esp + 0xb4]
lea ecx, [edx + 2]
mov dword [esp + 0x18], ecx
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40cfa0
sub edx, dword [esp + 0x18]
mov ecx, eax
sar edx, 1
push edx
lea edx, [esp + 0xb8]
push edx
call fcn.00406b60
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x90]
lea eax, [ecx + eax + 1]
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
jb 0x40cf20
push edi
push 0x100
lea edx, [ebx + 0x1c64]
push edx
push 0x481268
push str.value
push str.TEST_URL_4_DEBUG
call esi
or eax, 0xffffffff
cmp dword [ebx + 0x24], eax
jne 0x40d00c
cmp dword [ebx + 0x1e64], eax
je 0x40d019
cmp dword [ebx + 0x28], eax
jne 0x40d067
cmp dword [ebx + 0x1e68], eax
jne 0x40d067
lea ecx, [esp + 0x7c]
call fcn.00409d70
mov esi, 8
cmp dword [esp + 0x5c], esi
jb 0x40d03a
mov eax, dword [esp + 0x48]
push eax
call fcn.00430f55
add esp, 4
xor eax, eax
cmp dword [esp + 0x78], esi
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], eax
mov word [esp + 0x48], ax
jb 0x40d060
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00430f55
add esp, 4
xor al, al
jmp 0x40d106
mov edi, 8
cmp dword [esp + 0xb0], edi
jb 0x40d085
mov edx, dword [esp + 0x9c]
push edx
call fcn.00430f55
add esp, 4
xor esi, esi
cmp dword [esp + 0x94], edi
mov ebx, 7
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xac], esi
mov word [esp + 0x9c], si
jb 0x40d0bb
mov eax, dword [esp + 0x80]
push eax
call fcn.00430f55
add esp, 4
cmp dword [esp + 0x5c], edi
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], esi
mov word [esp + 0x80], si
jb 0x40d0e4
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00430f55
add esp, 4
cmp dword [esp + 0x78], edi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], esi
mov word [esp + 0x48], si
jb 0x40d104
mov edx, dword [esp + 0x64]
push edx
call fcn.00430f55
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x4ac0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4aa8]
xor ecx, esp
call fcn.0044de0c
mov esp, ebp
pop ebp
ret