Function at 0x40cc10
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4a093e
push eax
mov eax, 0x2290
mov dword fs:[0], esp
call fcn.004999f0
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x10], esi
cmp eax, ebx
je 0x40d43e
mov ebp, dword [esp + 0x22b0]
mov eax, dword [0x4b7080]
cmp ebp, ebx
mov dword [esp + 0x14], eax
je 0x40ccaa
mov ecx, ebp
shr ecx, 0x10
jne 0x40cc74
mov eax, ebp
lea ecx, [esp + 0x14]
and eax, 0xffff
push eax
call fcn.004068b0
jmp 0x40ccaa
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebx
je 0x40cca6
push esi
lea ecx, [esp + 0x18]
call fcn.00406c50
test eax, eax
je 0x40cca6
mov ecx, dword [esp + 0x14]
lea edx, [esi + esi]
push edx
lea eax, [esi + esi + 2]
push ebp
push eax
push ecx
call fcn.00405800
add esp, 0x10
mov esi, dword [esp + 0x10]
mov edx, dword [0x4b7080]
mov dword [esp + 0x22a8], ebx
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push str.Q360InstallerProduct__s
push ecx
mov byte [esp + 0x22b4], 1
call fcn.00406330
lea edx, [esp + 0x24]
push edx
call fcn.00408050
add esp, 0x10
test eax, eax
je 0x40cd2e
cmp dword [esp + 0x22b4], 2
jne 0x40ccfb
mov ecx, dword [esi + 0x1c]
push ebx
call fcn.00435220
mov eax, dword [esp + 0x18]
mov edx, dword [0x4b7084]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40cdae
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40cdae
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
jmp 0x40cda6
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x2a0]
push ebx
rep stosd dword es:[edi], eax
mov eax, dword [esi]
lea ecx, [esp + 0x2a4]
push 0x1000
push ecx
push ebp
push eax
lea ecx, [esp + 0x3c]
call fcn.0040c090
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x40cd7d
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x40cd7d
mov ecx, dword [esp + 0x34]
cmp ecx, ebx
je 0x40cd7d
mov edx, dword [esp + 0x38]
cmp edx, 0x80
jg 0x40cde8
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4b7084]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40cdae
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40cdae
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00437568
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4b7084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40d43e
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40d43e
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00437568
add esp, 4
xor eax, eax
jmp 0x40d4d2
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
mov eax, dword [esp + 0x34]
push edx
push ecx
push eax
push str.TargetDir
push esi
call ebp
mov eax, dword [esp + 0x34]
mov ecx, dword [0x4b7080]
mov si, word [eax]
mov dword [esp + 0x1c], ecx
neg si
sbb esi, esi
and esi, eax
cmp esi, ebx
je 0x40ce65
mov edx, esi
shr edx, 0x10
jne 0x40ce33
and esi, 0xffff
lea ecx, [esp + 0x1c]
push esi
call fcn.004068b0
jmp 0x40ce65
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp edi, ebx
je 0x40ce65
push edi
lea ecx, [esp + 0x20]
call fcn.00406c50
test eax, eax
je 0x40ce65
mov edx, dword [esp + 0x1c]
lea eax, [edi + edi]
push eax
lea ecx, [edi + edi + 2]
push esi
push ecx
push edx
call fcn.00405800
add esp, 0x10
mov eax, dword [0x4b7080]
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x22a8], 3
call fcn.00432eb0
mov eax, dword [0x4b7080]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
lea ecx, [esp + 0x26]
mov byte [esp + 0x22a8], 0xc
push ecx
lea ecx, [esp + 0x7c]
call fcn.0040f810
mov eax, dword [0x4b7080]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
lea edx, [esp + 0x27]
lea ecx, [esp + 0xa8]
push edx
mov byte [esp + 0x22ac], 0x15
call fcn.0040f810
mov eax, 0x14
or edi, 0xffffffff
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov eax, dword [0x4b7080]
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xe8], eax
mov dword [esp + 0xf8], eax
mov eax, 0x6400000
mov dword [esp + 0xbc], 0x3e8
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], 1
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xec], edi
mov dword [esp + 0xf0], edi
mov dword [esp + 0xf4], 0xb4
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], ebx
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], ebx
mov byte [esp + 0x22a8], 0x16
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push 0x4b96f4
push ecx
call ebp
mov eax, dword [esp + 0x34]
cmp word [eax], bx
jne 0x40d000
xor esi, esi
xor eax, eax
jmp 0x40d011
cmp eax, ebx
mov esi, eax
jne 0x40d00a
xor eax, eax
jmp 0x40d011
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [esp + 0x60]
call fcn.00406cb0
mov esi, dword [esp + 0x22b0]
mov ebp, dword [esp + 0x10]
lea edx, [esp + 0x40]
push esi
lea eax, [esp + 0x2c]
push edx
push eax
mov ecx, ebp
call fcn.0040da70
cmp esi, ebx
jne 0x40d041
xor eax, eax
jmp 0x40d048
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [esp + 0x48]
call fcn.00406cb0
cmp dword [esp + 0xc8], ebx
jne 0x40d201
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x1c]
call fcn.004348d0
mov edx, dword [eax]
lea eax, [esp + 0x68]
push edx
push str._s_s
push eax
call fcn.00406330
mov eax, dword [esp + 0x22c4]
add esp, 0x10
cmp eax, 2
jne 0x40d0a3
mov ecx, dword [ebp + 0x1c]
call fcn.00435230
test eax, eax
je 0x40d0a3
mov ecx, dword [ebp + 0x1c]
push ebx
call fcn.00435220
mov ecx, 0x4c6f80
call fcn.004055c0
test eax, eax
je 0x40d0ba
mov ecx, dword [ebp + 0x1c]
push ebx
call fcn.00435220
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push eax
push ebx
push str.SaveToTemp
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor edx, edx
cmp eax, 1
sete dl
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0xe4], edx
call fcn.00405d80
mov eax, dword [esp + 0x22b4]
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
mov ecx, ebp
call fcn.0040e5f0
lea eax, [esp + 0x40]
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, ebp
call fcn.0040ecd0
mov edx, dword [0x4b7080]
mov dword [esp + 0x20], edx
mov edi, dword [sym.imp.MSVCRT.dll_swprintf]
mov byte [esp + 0x22a8], 0x19
mov esi, 1
push esi
lea eax, [esp + 0x114]
push str.Description_d
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x110]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040c700
push eax
lea ecx, [esp + 0x24]
call fcn.00405d80
mov edx, dword [esp + 0x20]
cmp dword [edx - 8], ebx
je 0x40d186
mov ecx, dword [esp + 0xb0]
lea eax, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0xb0]
call fcn.0040f900
inc esi
cmp esi, 0x64
jl 0x40d130
mov edx, dword [esp + 0x60]
cmp dword [edx - 8], ebx
jne 0x40d445
mov eax, dword [esp + 0x94]
cmp dword [eax - 8], ebx
jne 0x40d445
lea ecx, [esp + 0x20]
mov byte [esp + 0x22a8], 0x16
call fcn.0040c0e0
lea ecx, [esp + 0x40]
mov byte [esp + 0x22a8], 2
call fcn.0040d4f0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x22a8], 1
call fcn.0040c0e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x22a8], bl
call fcn.0040c0e0
lea ecx, [esp + 0x14]
mov dword [esp + 0x22a8], 0xffffffff
call fcn.0040c0e0
xor eax, eax
jmp 0x40d4d2
cmp dword [esp + 0x22b8], ebx
je 0x40d39d
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0xc]
cmp edx, ebx
jl 0x40d229
push eax
mov dword [esp + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x40d23d
mov edx, dword [0x4b7080]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
call fcn.00405d80
lea ecx, [esp + 0x10]
mov byte [esp + 0x22a8], 0x17
call fcn.00406ea0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
push ebx
push 0x4b8194
lea ecx, [esp + 0x18]
call fcn.004062f0
cmp eax, edi
je 0x40d270
push 0x35
jmp 0x40d2af
push ebx
push str.SAFE
lea ecx, [esp + 0x18]
call fcn.004062f0
cmp eax, edi
je 0x40d287
push 0x34
jmp 0x40d2af
push ebx
push 0x4b8180
lea ecx, [esp + 0x18]
call fcn.004062f0
cmp eax, edi
jne 0x40d2ad
push ebx
push 0x4b8178
lea ecx, [esp + 0x18]
call fcn.004062f0
cmp eax, edi
je 0x40d2b9
push 0x36
mov ecx, 0x4c6f80
call fcn.00403450
mov ecx, 0x4c6f80
call fcn.004055c0
test eax, eax
je 0x40d2d0
mov ecx, dword [ebp + 0x1c]
push ebx
call fcn.00435220
cmp dword [esp + 0x22b4], ebx
jne 0x40d387
cmp dword [esp + 0xc8], ebx
je 0x40d387
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
setge al
and eax, 0xff
mov dword [esp + 0x3c], eax
je 0x40d387
mov eax, dword [esp + 0x10]
mov edx, dword [0x4b7084]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40d33e
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40d33e
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.00437568
add esp, 4
lea ecx, [esp + 0x40]
mov byte [esp + 0x22a8], 2
call fcn.0040d4f0
mov eax, dword [esp + 0x1c]
mov edx, dword [0x4b7084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40d41e
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40d41e
mov edx, dword [esp + 0x1c]
lea eax, [edx - 0xc]
push eax
call fcn.00437568
add esp, 4
jmp 0x40d41e
lea ecx, [esp + 0x10]
mov byte [esp + 0x22a8], 0x16
call fcn.0040c0e0
jmp 0x40d0ba
mov eax, dword [esp + 0x5c]
push str.0.0.0.0
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x40d0b1
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x40]
call fcn.00405920
add ebp, 0x20
lea edx, [esp + 0x40]
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
mov byte [esp + 0x22b4], 0x18
call fcn.00405920
call fcn.00409920
add esp, 8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x22a8], 0x16
call fcn.0040c0e0
lea ecx, [esp + 0x40]
mov byte [esp + 0x22a8], 2
call fcn.0040d4f0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x22a8], 1
call fcn.0040c0e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x22a8], bl
call fcn.0040c0e0
lea ecx, [esp + 0x14]
mov dword [esp + 0x22a8], edi
call fcn.0040c0e0
xor eax, eax
jmp 0x40d4d2
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0xfc]
call fcn.00405cb0
mov edx, dword [esp + 0x22b4]
mov ecx, dword [ebp + 0x1c]
push edx
call fcn.004348b0
mov ecx, dword [eax + 8]
lea edx, [esp + 0x40]
push edx
push ecx
mov ecx, eax
call fcn.0040fc20
lea ecx, [esp + 0x20]
mov byte [esp + 0x22a8], 0x16
call fcn.0040c0e0
lea ecx, [esp + 0x40]
mov byte [esp + 0x22a8], 2
call fcn.0040d4f0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x22a8], 1
call fcn.0040c0e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x22a8], bl
call fcn.0040c0e0
lea ecx, [esp + 0x14]
mov dword [esp + 0x22a8], 0xffffffff
call fcn.0040c0e0
mov eax, 1
mov ecx, dword [esp + 0x22a0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x229c
ret 0xc