Function at 0x406020
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490848
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4ad658]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], edx
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
lea ecx, [esi + 0x68c]
mov dword [ebp - 4], edi
call fcn.00412a40
cmp dword [esi + 0x6a0], 0x10
jb 0x406082
mov ecx, dword [esi + 0x68c]
jmp 0x406088
lea ecx, [esi + 0x68c]
mov eax, ecx
mov ebx, 0xf
lea edx, [eax + 1]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x74], edx
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4060a0
sub eax, dword [ebp - 0x74]
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00412da0
mov byte [ebp - 4], 1
push 7
push str.1.0.0.0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov byte [ebp - 0x64], 0
call fcn.00412da0
mov byte [ebp - 4], 2
push 7
push str.res2exe
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
call fcn.00412da0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.0041e8f0
add esp, 4
cmp dword [ebp - 0x34], 0x10
jb 0x406116
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00464d3e
add esp, 4
cmp dword [ebp - 0x50], 0x10
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
jb 0x406132
mov edx, dword [ebp - 0x64]
push edx
call fcn.00464d3e
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov byte [ebp - 0x64], 0
jb 0x406152
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00464d3e
add esp, 4
push 4
push 0x49831c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
call fcn.00412da0
lea ecx, [ebp - 0x2c]
mov ebx, esi
mov byte [ebp - 4], 4
call fcn.00404e20
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 0x10
jb 0x40618f
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00464d3e
add esp, 4
mov edx, dword [ebp - 0x70]
push 0xffffffffffffffff
push 0
push edx
lea ecx, [esi + 0x670]
call fcn.00412a40
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0x14]
push eax
lea ecx, [esi + 0x6c4]
call fcn.00412a40
mov ecx, dword [ebp - 0x6c]
push 0xffffffffffffffff
push 0
push ecx
lea ecx, [esi + 0x6a8]
call fcn.00412a40
mov edx, dword [ebp - 0x68]
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x638]
push edx
call fcn.00412a40
cmp dword [esi + 0x11c], 1
jne 0x406226
mov ecx, str.pcsuite
lea edi, [esi + 0x6a8]
call fcn.0040e630
test al, al
je 0x406206
mov eax, dword [esi + 0x218]
mov dword [esi + 0x210], eax
jmp 0x406226
mov ecx, str.mini
lea edi, [esi + 0x6a8]
call fcn.0040e630
test al, al
je 0x406226
mov ecx, dword [esi + 0x214]
mov dword [esi + 0x210], ecx
mov ecx, esi
call fcn.004062f0
test al, al
jne 0x406292
lea eax, [esi + 0x638]
push eax
mov ecx, esi
call fcn.00405710
test al, al
je 0x406292
push 1
call fcn.004051f0
mov eax, dword [esi + 0x628]
cmp eax, 0xffffffff
je 0x406266
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x628], 0xffffffff
mov eax, esi
call fcn.00404d80
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0x28], 0x10
jb 0x40628e
mov edx, dword [ebp + 0x14]
push edx
call fcn.00464d3e
add esp, 4
xor al, al
jmp 0x4062c9
lea eax, [ebp - 0x68]
push eax
push 0
push esi
push 0x4027c0
push 0
push 0
mov dword [ebp - 0x68], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [ebp + 0x28], 0x10
mov dword [esi + 0x62c], eax
jb 0x4062c7
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00464d3e
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00464d49
mov esp, ebp
pop ebp
ret 0x28