Function at 0x405f40
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42f012
mov eax, dword fs:[0]
push eax
mov eax, 0x1068
call fcn.0041ad30
mov eax, dword [0x43e0c0]
xor eax, esp
mov dword [esp + 0x1064], eax
push ebp
push esi
push edi
mov eax, dword [0x43e0c0]
xor eax, esp
push eax
lea eax, [esp + 0x1078]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0040b86e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405f9a
push 0x80004005
call fcn.004011c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
mov dword [esp + 0x1084], 0
call fcn.00404c70
mov ebp, dword [esp + 0x14]
cmp dword [ebp - 0xc], 0
jne 0x405ff9
lea eax, [ebp - 0x10]
mov dword [esp + 0x1080], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405ff2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40625a
call fcn.0040b86e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406013
push 0x80004005
call fcn.004011c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0xc24]
cmp eax, 0x80
mov byte [esp + 0x1080], 1
jg 0x406077
je case.0x406049.64
sub eax, 4
cmp eax, 0x3c
ja case.0x406049.5
movzx ecx, byte [eax + 0x406294]
jmp dword [ecx*4 + 0x406284]
lea ecx, [esp + 0x10]
call fcn.004013e0
lea ecx, [esp + 0x14]
call fcn.004013e0
xor eax, eax
jmp 0x40625a
push str.IISSETUP_IIS7
jmp 0x40609c
push str.IISSETUP_IIS7_5
jmp 0x40609c
cmp eax, 0x400
jg 0x406090
je 0x406097
cmp eax, 0x100
je 0x406097
cmp eax, 0x200
je 0x406097
jmp case.0x406049.5
cmp eax, 0x800
jne case.0x406049.5
push str.IISSETUP_IIS8
lea ecx, [esp + 0x14]
call fcn.00401a40
push 0xa
lea ecx, [esp + 0x5c]
call fcn.0040e451
push 0xa
lea ecx, [esp + 0x40]
call fcn.00403250
mov eax, dword [esp + 0x10]
push ebp
push 0x1000
lea edx, [esp + 0x7c]
push edx
push eax
mov byte [esp + 0x1090], 3
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
lea esi, [esp + 0x74]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4060e2
sub eax, edx
je 0x4061d1
push 0xa
lea ecx, [esp + 0x24]
call fcn.0040e451
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1084], 4
call fcn.004051a0
push 1
push 0x4326f0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, edi
mov byte [esp + 0x1090], 5
call fcn.00404fe0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x1080], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406158
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x2c], 0
je 0x406192
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 8]
push 0x432474
push eax
call fcn.0041a336
add esp, 8
test eax, eax
jne 0x406192
mov eax, dword [esp + 0x24]
mov edx, dword [edi + 0xc30]
add eax, 8
lea ecx, [edi + 0xc28]
push eax
push edx
call fcn.0040bf93
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406197
sub eax, edx
lea ecx, [esp + 0x20]
lea esi, [esi + eax + 1]
mov byte [esp + 0x1080], 3
call fcn.0040e536
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4061c0
sub eax, edx
jne 0x4060f3
cmp dword [edi + 0xc30], 0
jle 0x4061e4
mov dword [edi + 0xa8], 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1080], 2
call fcn.00403ea0
lea ecx, [esp + 0x58]
mov byte [esp + 0x1080], 1
call fcn.0040e536
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x1080], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40622e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x1080], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406255
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1078]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1064]
xor ecx, esp
call fcn.00419953
add esp, 0x1074
ret