Function at 0x40c140
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4705c9
mov eax, dword fs:[0]
push eax
sub esp, 0x888
mov eax, dword [0x498700]
xor eax, esp
mov dword [esp + 0x880], eax
push ebx
push esi
push edi
mov eax, dword [0x498700]
xor eax, esp
push eax
lea eax, [esp + 0x898]
mov dword fs:[0], eax
push 0x800
lea eax, [esp + 0x90]
mov ebx, ecx
push 0
push eax
mov dword [esp + 0x28], ebx
mov edi, edx
call fcn.00450a50
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
push edi
push 0x100
lea ecx, [ebx + 0x1848]
push ecx
push 0x481268
push str.value
push 0x481ca4
call esi
push edi
push 0x100
lea edx, [ebx + 0x1a48]
push edx
push 0x481268
push str.value
push str.NDL_HOST_URL
call esi
push edi
push 0x100
lea eax, [ebx + 0x1040]
push eax
push 0x481268
push str.value1
push str.INSTALLER_HOST_URL_AB
call esi
push edi
push 0x100
lea ecx, [ebx + 0x1240]
push ecx
push 0x481268
push str.value2
push str.INSTALLER_HOST_URL_AB
call esi
push edi
push 0x100
lea edx, [ebx + 0x1440]
push edx
push 0x481268
push str.value
push str.INSTALLER_HOST_VER
call esi
push edi
push 0x100
lea eax, [ebx + 0x1648]
push eax
push 0x481268
push str.value
push str.REPORTING_URL
call esi
push edi
push 0xffffffffffffffff
push str.Default_SKIN
push str.DEFAULTS
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
lea ecx, [ebx + 0x1e6c]
push ecx
push 0x481268
push str.Default_COUNTRY
push str.DEFAULTS
mov dword [ebx + 0x1e68], eax
call esi
push edi
push 0x100
lea edx, [ebx + 0x1e74]
push edx
push 0x481268
push str.Default_SETUP_HOST_URL
push str.DEFAULTS
call esi
push edi
push 0x100
lea eax, [ebx + 0x2074]
push eax
push 0x481268
push str.Default_INSTALLER_HOST_URL
push str.DEFAULTS
call esi
push edi
push 0x400
lea ecx, [esp + 0x94]
push ecx
push 0x481268
push str.value
push str.LANGUAGES
call esi
xor esi, esi
lea eax, [esp + 0x8c]
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], esi
mov word [esp + 0x58], si
lea ecx, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
cmp dx, si
jne 0x40c320
sub eax, ecx
sar eax, 1
push eax
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0x5c]
call fcn.00406b60
mov dword [esp + 0x8a0], esi
lea eax, [esp + 0x8c]
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], esi
mov word [esp + 0x74], si
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40c370
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x78]
call fcn.00406b60
push 1
push 0x481e40
lea eax, [esp + 0x5c]
mov byte [esp + 0x8a8], 1
call fcn.00406c40
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x40c505
jmp 0x40c3bc
mov eax, dword [esp + 0x18]
push eax
xor ecx, ecx
lea esi, [esp + 0x3c]
lea edx, [esp + 0x58]
call fcn.00406520
mov byte [esp + 0x8a0], 2
cmp dword [eax + 0x18], 8
jb 0x40c3df
mov edx, dword [eax + 4]
jmp 0x40c3e2
lea edx, [eax + 4]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c3e7
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x78]
call fcn.00406b60
mov esi, 8
mov byte [esp + 0x8a0], 1
cmp dword [esp + 0x50], esi
jb 0x40c421
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00430f55
add esp, 4
cmp dword [esp + 0x88], esi
mov eax, dword [esp + 0x74]
jae 0x40c432
lea eax, [esp + 0x74]
push eax
call fcn.0044e81d
mov ecx, dword [ebx + 0x14]
lea esi, [ebx + 0x10]
add esp, 4
test ecx, ecx
mov dword [esp + 0x14], eax
jne 0x40c44d
xor edx, edx
jmp 0x40c455
mov edx, dword [esi + 8]
sub edx, ecx
sar edx, 2
test ecx, ecx
je 0x40c476
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x40c476
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x14]
mov dword [eax], edx
add eax, 4
mov dword [esi + 8], eax
jmp 0x40c49d
mov eax, dword [esi + 8]
cmp ecx, eax
mov dword [esp + 0x10], eax
jbe 0x40c48a
call fcn.0044ec76
mov eax, dword [esp + 0x10]
push eax
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov eax, esi
call fcn.004113c0
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x18]
push edx
add ecx, 1
lea esi, [esp + 0x3c]
lea edx, [esp + 0x58]
call fcn.00406520
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x8ac], 3
call fcn.00406a70
mov byte [esp + 0x8a0], 1
cmp dword [esp + 0x50], 8
jb 0x40c4e8
mov eax, dword [esp + 0x3c]
push eax
call fcn.00430f55
add esp, 4
push 1
push 0x481e40
lea eax, [esp + 0x5c]
call fcn.00406c40
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x40c3b8
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x40c514
lea eax, [esp + 0x58]
push eax
call fcn.0044e81d
lea esi, [ebx + 0x10]
add esp, 4
lea ebx, [esp + 0x10]
mov dword [esp + 0x10], eax
call fcn.00410e00
push edi
push 0xffffffffffffffff
push str.value
push 0x481e44
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
push 0x40
lea ecx, [esi + 0xa40]
push ecx
push 0x481268
push str.value
push str.BRAND_NAME
mov dword [esi + 0x20], eax
call ebx
push edi
push 0x40
lea edx, [esi + 0xac0]
push edx
push 0x481268
push str.value
push str.BRAND_BACKEND_NAME
call ebx
push edi
push 0x40
lea eax, [esi + 0xb40]
push eax
push 0x481268
push str.value
push str.BRAND_DISPLAY_NAME
call ebx
push edi
push 0x40
add esi, 0xbc0
push esi
push 0x481268
push str.value
push str.SDL_NAME
call ebx
xor eax, eax
mov ebx, 1
push str.BINPATH
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
call fcn.004018b0
lea ecx, [esp + 0x14]
push ecx
lea edi, [esp + 0x1c]
mov byte [esp + 0x8a4], 4
call fcn.0040ac40
mov byte [esp + 0x8a4], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c62a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
test eax, eax
mov esi, dword [esp + 0x1c]
je 0x40c649
push 0x104
lea ecx, [esi + 0x227c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push str.serial
lea ecx, [esp + 0x18]
call fcn.004018b0
lea edx, [esp + 0x14]
push edx
lea edi, [esp + 0x24]
mov byte [esp + 0x8a4], 5
call fcn.0040ac40
mov byte [esp + 0x8a4], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c697
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40c6b4
push eax
lea ecx, [esi + 0x838]
push 0x100
push ecx
call fcn.0044e1bb
add esp, 0xc
push str.test_data
lea ecx, [esp + 0x24]
call fcn.004018b0
lea edx, [esp + 0x20]
push edx
lea edi, [esp + 0x14]
mov byte [esp + 0x8a4], 6
call fcn.0040ac40
mov byte [esp + 0x8a4], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c702
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
xor edi, edi
cmp eax, edi
je 0x40c71e
push eax
lea ecx, [esi + 0x38]
push 0x400
push ecx
call fcn.0044e1bb
add esp, 0xc
push str.SC_DESKTOP
lea ecx, [esp + 0x14]
call fcn.004018b0
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x8a8], 7
call fcn.0040acd0
mov byte [esp + 0x8a8], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c76d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x34], edi
push str.SC_QUICK_LAUNCH
setne cl
mov byte [esi + 0x2278], cl
lea ecx, [esp + 0x14]
call fcn.004018b0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x8a8], 8
call fcn.0040acd0
mov byte [esp + 0x8a8], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x28], edi
push str.SC_START_MENU
setne cl
mov byte [esi + 0x2279], cl
lea ecx, [esp + 0x14]
call fcn.004018b0
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x8a8], 9
call fcn.0040acd0
mov byte [esp + 0x8a8], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c825
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x2c], edi
push str.SKIN_ID
setne cl
mov byte [esi + 0x227a], cl
lea ecx, [esp + 0x14]
call fcn.004018b0
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x8a8], 0xa
call fcn.0040acd0
mov byte [esp + 0x8a8], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c881
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x24], ecx
mov esi, 8
cmp dword [esp + 0x88], esi
jb 0x40c8a3
mov edx, dword [esp + 0x74]
push edx
call fcn.00430f55
add esp, 4
cmp dword [esp + 0x6c], esi
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], edi
mov word [esp + 0x74], di
jb 0x40c8cd
mov eax, dword [esp + 0x58]
push eax
call fcn.00430f55
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x898]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x880]
xor ecx, esp
call fcn.0044de0c
mov esp, ebp
pop ebp
ret