Function at 0x40a390
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4a98b9
push eax
mov eax, 0x2298
mov dword fs:[0], esp
call fcn.004a0d60
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x1c]
push edi
test eax, eax
je 0x40aa2e
mov ebp, dword [esp + 0x22b8]
mov eax, dword [0x4c0080]
test ebp, ebp
mov dword [esp + 0x10], eax
je 0x40a420
mov ecx, ebp
shr ecx, 0x10
jne 0x40a3ee
mov eax, ebp
lea ecx, [esp + 0x10]
and eax, 0xffff
push eax
call fcn.00404350
jmp 0x40a420
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x40a420
push esi
lea ecx, [esp + 0x14]
call fcn.00404720
test eax, eax
je 0x40a420
mov ecx, dword [esp + 0x10]
lea edx, [esi + esi]
push edx
lea eax, [esi + esi + 2]
push ebp
push eax
push ecx
call fcn.004039f0
add esp, 0x10
mov edx, dword [0x4c0080]
mov dword [esp + 0x22b0], 0
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push str.Q360InstallerProduct__s
push ecx
mov byte [esp + 0x22bc], 1
call fcn.00403dd0
lea edx, [esp + 0x20]
push edx
call fcn.00405c40
add esp, 0x10
test eax, eax
je 0x40a4a9
cmp dword [esp + 0x22bc], 2
jne 0x40a476
mov ecx, dword [ebx + 0x1c]
push 0
call fcn.004369a0
mov eax, dword [esp + 0x14]
mov edx, dword [0x4c0084]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40a52a
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40a52a
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
jmp 0x40a522
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x2a8]
push 0
rep stosd dword es:[edi], eax
mov eax, dword [ebx]
lea ecx, [esp + 0x2ac]
push 0x1000
push ecx
push ebp
push eax
lea ecx, [esp + 0x34]
call fcn.004098e0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40a4f9
mov esi, dword [esp + 0x24]
test esi, esi
je 0x40a4f9
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x40a4f9
mov edx, dword [esp + 0x30]
cmp edx, 0x80
jg 0x40a564
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4c0084]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40a52a
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40a52a
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.0049c000
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4c0084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40aa2e
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40aa2e
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0049c000
add esp, 4
xor eax, eax
jmp 0x40aabc
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
mov eax, dword [esp + 0x2c]
push edx
push ecx
push eax
push str.TargetDir
push esi
call ebp
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x4c0080]
mov si, word [eax]
mov dword [esp + 0x18], ecx
neg si
sbb esi, esi
and esi, eax
test esi, esi
je 0x40a5e1
mov edx, esi
shr edx, 0x10
jne 0x40a5af
and esi, 0xffff
lea ecx, [esp + 0x18]
push esi
call fcn.00404350
jmp 0x40a5e1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x40a5e1
push edi
lea ecx, [esp + 0x1c]
call fcn.00404720
test eax, eax
je 0x40a5e1
mov edx, dword [esp + 0x18]
lea eax, [edi + edi]
push eax
lea ecx, [edi + edi + 2]
push esi
push ecx
push edx
call fcn.004039f0
add esp, 0x10
lea ecx, [esp + 0x38]
mov byte [esp + 0x22b0], 2
call fcn.0040dbe0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push 0x4c11c0
push ecx
mov byte [esp + 0x22c8], 3
call ebp
mov eax, dword [esp + 0x2c]
cmp word [eax], 0
jne 0x40a62a
xor esi, esi
xor eax, eax
jmp 0x40a637
test eax, eax
mov esi, eax
je 0x40a637
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [esp + 0x58]
call fcn.00404780
lea edx, [esp + 0x38]
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, ebx
call fcn.0040afe0
mov eax, dword [esp + 0xc0]
mov edi, dword [esp + 0x22bc]
test eax, eax
jne 0x40a6a5
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [ebx + 0x1c]
call fcn.00436030
mov edx, dword [eax]
lea eax, [esp + 0x60]
push edx
push str._s_s
push eax
call fcn.00403dd0
add esp, 0x10
cmp edi, 2
jne 0x40a8f8
mov ecx, dword [ebx + 0x1c]
call fcn.004369b0
test eax, eax
je 0x40a8f8
jmp 0x40a8ee
mov eax, dword [esp + 0x22c0]
test eax, eax
je 0x40a8d3
cmp edi, 2
je 0x40a8ee
test edi, edi
jne 0x40a8f8
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
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 + 0x34], eax
je 0x40a8f8
lea ecx, [esp + 0x108]
mov byte [esp + 0x22b0], 0x19
call fcn.0040cc90
lea ecx, [esp + 0xf0]
mov byte [esp + 0x22b0], 0x18
call fcn.004046f0
lea ecx, [esp + 0xe0]
mov byte [esp + 0x22b0], 0x17
call fcn.004046f0
lea ecx, [esp + 0xa0]
mov byte [esp + 0x22b0], 0x16
call fcn.0040cc90
lea ecx, [esp + 0x9c]
mov byte [esp + 0x22b0], 0x15
call fcn.004046f0
lea ecx, [esp + 0x98]
mov byte [esp + 0x22b0], 0x14
call fcn.004046f0
lea ecx, [esp + 0x94]
mov byte [esp + 0x22b0], 0x13
call fcn.004046f0
lea ecx, [esp + 0x90]
mov byte [esp + 0x22b0], 0x12
call fcn.004046f0
lea ecx, [esp + 0x8c]
mov byte [esp + 0x22b0], 0x11
call fcn.004046f0
lea ecx, [esp + 0x88]
mov byte [esp + 0x22b0], 0x10
call fcn.004046f0
lea ecx, [esp + 0x84]
mov byte [esp + 0x22b0], 0xf
call fcn.004046f0
lea ecx, [esp + 0x80]
mov byte [esp + 0x22b0], 0xe
call fcn.004046f0
lea ecx, [esp + 0x70]
mov byte [esp + 0x22b0], 0xd
call fcn.0040cc90
lea ecx, [esp + 0x6c]
mov byte [esp + 0x22b0], 0xc
call fcn.004046f0
lea ecx, [esp + 0x68]
mov byte [esp + 0x22b0], 0xb
call fcn.004046f0
lea ecx, [esp + 0x64]
mov byte [esp + 0x22b0], 0xa
call fcn.004046f0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x22b0], 9
call fcn.004046f0
lea ecx, [esp + 0x58]
mov byte [esp + 0x22b0], 8
call fcn.004046f0
lea ecx, [esp + 0x54]
mov byte [esp + 0x22b0], 7
call fcn.004046f0
mov byte [esp + 0x22b0], 6
lea ecx, [esp + 0x50]
call fcn.004046f0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x22b0], 5
call fcn.004046f0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x22b0], 4
call fcn.004346a0
lea ecx, [esp + 0x38]
mov byte [esp + 0x22b0], 2
call fcn.004046f0
mov eax, dword [esp + 0x18]
mov edx, dword [0x4c0084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40aa09
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40aa09
mov edx, dword [esp + 0x18]
lea eax, [edx - 0xc]
push eax
call fcn.0049c000
add esp, 4
jmp 0x40aa09
mov eax, dword [esp + 0x54]
push str.0.0.0.0
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x40a9e7
mov ecx, dword [ebx + 0x1c]
push 0
call fcn.004369a0
push 0
push str.SaveToTemp
lea ecx, [esp + 0x28]
call fcn.0040aae0
mov ecx, dword [esp + 0x22b8]
dec eax
neg eax
sbb eax, eax
push ecx
inc eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0xdc], eax
call fcn.00403cc0
lea edx, [esp + 0x38]
push edi
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, ebx
call fcn.0040ba20
lea ecx, [esp + 0x38]
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, ebx
call fcn.0040c120
mov eax, dword [0x4c0080]
mov dword [esp + 0x1c], eax
mov ebp, dword [sym.imp.MSVCRT.dll_swprintf]
mov byte [esp + 0x22b0], 0x1a
mov esi, 1
push esi
lea ecx, [esp + 0x11c]
push str.Description_d
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x118]
lea ecx, [esp + 0x20]
push edx
call fcn.004098a0
push eax
lea ecx, [esp + 0x20]
call fcn.00403cc0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40a9bd
mov edx, dword [esp + 0xa8]
lea ecx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0xa8]
call fcn.0040cd30
inc esi
cmp esi, 0x64
jl 0x40a965
mov eax, dword [esp + 0x58]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40aa35
mov ecx, dword [esp + 0x8c]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40aa35
lea ecx, [esp + 0x1c]
mov byte [esp + 0x22b0], 3
call fcn.004046f0
lea ecx, [esp + 0x38]
mov byte [esp + 0x22b0], 2
call fcn.0040ab00
lea ecx, [esp + 0x18]
mov byte [esp + 0x22b0], 1
call fcn.004046f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x22b0], 0
call fcn.004046f0
lea ecx, [esp + 0x10]
mov dword [esp + 0x22b0], 0xffffffff
call fcn.004046f0
xor eax, eax
jmp 0x40aabc
lea edx, [esp + 0x14]
lea ecx, [esp + 0xf0]
push edx
call fcn.0040d220
mov ecx, dword [ebx + 0x1c]
push edi
call fcn.00436010
mov ecx, dword [eax + 8]
lea edx, [esp + 0x38]
push edx
push ecx
mov ecx, eax
call fcn.0040cf80
lea ecx, [esp + 0x1c]
mov byte [esp + 0x22b0], 3
call fcn.004046f0
lea ecx, [esp + 0x38]
mov byte [esp + 0x22b0], 2
call fcn.0040ab00
lea ecx, [esp + 0x18]
mov byte [esp + 0x22b0], 1
call fcn.004046f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x22b0], 0
call fcn.004046f0
lea ecx, [esp + 0x10]
mov dword [esp + 0x22b0], 0xffffffff
call fcn.004046f0
mov eax, 1
mov ecx, dword [esp + 0x22a8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x22a4
ret 0xc