Function at 0x40d2b0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a9ba6
push eax
mov eax, 0x2138
mov dword fs:[0], esp
call fcn.004a2ae0
push ebx
push ebp
mov ebp, ecx
push esi
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x40d8b2
mov ebx, dword [esp + 0x2154]
mov eax, dword [0x4c2080]
test ebx, ebx
mov dword [esp + 0xc], eax
je 0x40d33f
mov ecx, ebx
shr ecx, 0x10
jne 0x40d30d
mov eax, ebx
lea ecx, [esp + 0xc]
and eax, 0xffff
push eax
call fcn.00405320
jmp 0x40d33f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x40d33f
push esi
lea ecx, [esp + 0x10]
call fcn.004056f0
test eax, eax
je 0x40d33f
mov ecx, dword [esp + 0xc]
lea edx, [esi + esi]
push edx
lea eax, [esi + esi + 2]
push ebx
push eax
push ecx
call fcn.00404a40
add esp, 0x10
mov edx, dword [0x4c2080]
xor esi, esi
mov dword [esp + 0x214c], esi
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push str.Q360InstallerProduct__s
push ecx
mov byte [esp + 0x2158], 1
call fcn.00404da0
lea edx, [esp + 0x1c]
push edx
call fcn.00406bf0
add esp, 0x10
test eax, eax
je 0x40d3b2
mov eax, dword [esp + 0x10]
mov edx, dword [0x4c2084]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40d42f
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40d42f
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
jmp 0x40d427
push edi
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x148]
rep stosd dword es:[edi], eax
mov eax, dword [ebp]
push esi
lea ecx, [esp + 0x14c]
push 0x1000
push ecx
push ebx
push eax
lea ecx, [esp + 0x2c]
call fcn.0040c830
mov eax, dword [esp + 0x18]
pop edi
cmp eax, esi
je 0x40d3fe
cmp dword [esp + 0x18], esi
je 0x40d3fe
cmp dword [esp + 0x20], esi
je 0x40d3fe
cmp dword [esp + 0x24], 0x80
jg 0x40d469
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4c2084]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40d42f
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40d42f
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00442ac0
add esp, 4
mov eax, dword [esp + 0xc]
mov edx, dword [0x4c2084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40d8b2
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40d8b2
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.00442ac0
add esp, 4
xor eax, eax
jmp 0x40d91b
lea ecx, [esp + 0x2c]
call fcn.00411d90
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push 0x4c38a4
push ecx
mov byte [esp + 0x2164], 2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esp + 0x20]
cmp word [eax], si
je 0x40d4ad
test eax, eax
mov esi, eax
jne 0x40d4b1
xor eax, eax
jmp 0x40d4b8
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [esp + 0x54]
call fcn.00405750
lea edx, [esp + 0x2c]
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, ebp
call fcn.0040ded0
mov esi, dword [esp + 0x2158]
cmp esi, 2
jne 0x40d74d
mov eax, dword [esp + 0xc4]
test eax, eax
jne 0x40d500
mov ecx, dword [ebp + 0x1c]
push esi
call fcn.0043cbb0
test eax, eax
je 0x40d74d
lea ecx, [esp + 0x13c]
mov byte [esp + 0x214c], 0x20
call fcn.004056c0
lea ecx, [esp + 0x138]
mov byte [esp + 0x214c], 0x1f
call fcn.004056c0
lea ecx, [esp + 0x134]
mov byte [esp + 0x214c], 0x1e
call fcn.004056c0
lea ecx, [esp + 0x130]
mov byte [esp + 0x214c], 0x1d
call fcn.004056c0
lea ecx, [esp + 0x12c]
mov byte [esp + 0x214c], 0x1c
call fcn.004056c0
lea ecx, [esp + 0x11c]
mov byte [esp + 0x214c], 0x1b
call fcn.004100b0
lea ecx, [esp + 0x10c]
mov byte [esp + 0x214c], 0x1a
call fcn.004100b0
lea ecx, [esp + 0xf4]
mov byte [esp + 0x214c], 0x19
call fcn.004056c0
lea ecx, [esp + 0xe4]
mov byte [esp + 0x214c], 0x18
call fcn.004056c0
lea ecx, [esp + 0xa4]
mov byte [esp + 0x214c], 0x17
call fcn.004100b0
lea ecx, [esp + 0xa0]
mov byte [esp + 0x214c], 0x16
call fcn.004056c0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x214c], 0x15
call fcn.004056c0
lea ecx, [esp + 0x98]
mov byte [esp + 0x214c], 0x14
call fcn.004056c0
lea ecx, [esp + 0x94]
mov byte [esp + 0x214c], 0x13
call fcn.004056c0
lea ecx, [esp + 0x90]
mov byte [esp + 0x214c], 0x12
call fcn.004056c0
lea ecx, [esp + 0x8c]
mov byte [esp + 0x214c], 0x11
call fcn.004056c0
lea ecx, [esp + 0x88]
mov byte [esp + 0x214c], 0x10
call fcn.004056c0
lea ecx, [esp + 0x84]
mov byte [esp + 0x214c], 0xf
call fcn.004056c0
lea ecx, [esp + 0x80]
mov byte [esp + 0x214c], 0xe
call fcn.004056c0
lea ecx, [esp + 0x70]
mov byte [esp + 0x214c], 0xd
call fcn.004100b0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x214c], 0xc
call fcn.004056c0
lea ecx, [esp + 0x68]
mov byte [esp + 0x214c], 0xb
call fcn.004056c0
lea ecx, [esp + 0x64]
mov byte [esp + 0x214c], 0xa
call fcn.004056c0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x214c], 9
call fcn.004056c0
lea ecx, [esp + 0x58]
mov byte [esp + 0x214c], 8
call fcn.004056c0
lea ecx, [esp + 0x54]
mov byte [esp + 0x214c], 7
call fcn.004056c0
lea ecx, [esp + 0x50]
mov byte [esp + 0x214c], 6
call fcn.004056c0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x214c], 5
call fcn.004056c0
lea ecx, [esp + 0x48]
mov byte [esp + 0x214c], 4
call fcn.004056c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x214c], 3
call fcn.0043b390
lea ecx, [esp + 0x2c]
mov byte [esp + 0x214c], 1
call fcn.004056c0
jmp 0x40d88d
mov eax, dword [esp + 0xc4]
test eax, eax
jne 0x40d7bb
push str.TargetDir
lea ecx, [esp + 0x18]
call fcn.0040c7f0
push eax
lea ecx, [esp + 0x2c]
call fcn.0040a220
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x214c], 0x21
push ecx
mov ecx, dword [ebp + 0x1c]
call fcn.0043cd20
mov edx, dword [eax]
lea eax, [esp + 0x5c]
push edx
push str._s_s
push eax
call fcn.00404da0
add esp, 0x10
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x60]
call fcn.00410630
lea ecx, [esp + 0x28]
mov byte [esp + 0x214c], 2
call fcn.004056c0
jmp 0x40d7f7
mov eax, dword [esp + 0x215c]
test eax, eax
je 0x40d7dc
test esi, esi
jne 0x40d7f7
lea ecx, [esp + 0x2c]
call fcn.00412600
test eax, eax
je 0x40d7f7
jmp 0x40d87c
mov edx, dword [esp + 0x50]
push str.0.0.0.0
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x40d87c
push 0
push str.SaveToTemp
lea ecx, [esp + 0x1c]
call fcn.0040d940
dec eax
push ebx
neg eax
sbb eax, eax
lea ecx, [esp + 0x30]
inc eax
mov dword [esp + 0xe0], eax
call fcn.00404c50
lea eax, [esp + 0x2c]
push esi
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, ebp
call fcn.0040e950
lea edx, [esp + 0x2c]
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, ebp
call fcn.0040f090
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, ebp
call fcn.0040f2d0
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, ebp
call fcn.0040fe50
mov edx, dword [esp + 0x54]
mov eax, dword [edx - 8]
test eax, eax
jne 0x40d8b6
mov eax, dword [esp + 0x90]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40d8b6
lea ecx, [esp + 0x2c]
mov byte [esp + 0x214c], 1
call fcn.0040d960
lea ecx, [esp + 0x10]
mov byte [esp + 0x214c], 0
call fcn.004056c0
lea ecx, [esp + 0xc]
mov dword [esp + 0x214c], 0xffffffff
call fcn.004056c0
xor eax, eax
jmp 0x40d91b
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xf8]
call fcn.00410630
mov ecx, dword [ebp + 0x1c]
push esi
call fcn.0043cd00
mov ecx, dword [eax + 8]
lea edx, [esp + 0x2c]
push edx
push ecx
mov ecx, eax
call fcn.00410390
lea ecx, [esp + 0x2c]
mov byte [esp + 0x214c], 1
call fcn.0040d960
lea ecx, [esp + 0x10]
mov byte [esp + 0x214c], 0
call fcn.004056c0
lea ecx, [esp + 0xc]
mov dword [esp + 0x214c], 0xffffffff
call fcn.004056c0
mov eax, 1
mov ecx, dword [esp + 0x2144]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2144
ret 0xc