Function at 0x402b80
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a29d
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x78], 0x44
push 0x40
push 0
lea eax, [ebp - 0x74]
push eax
call fcn.00409590
add esp, 0xc
xorps xmm0, xmm0
movups xmmword [ebp - 0x88], xmm0
mov dword [ebp - 0x2c], 0
call fcn.00401f60
mov ecx, eax
test ecx, ecx
je 0x403998
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
mov eax, str.vs_layout.exe
lea ecx, [ebp - 0x2c]
test eax, 0xffff0000
jne 0x402c27
movzx eax, ax
push eax
call fcn.004026f0
jmp 0x402c33
push 0xd
push str.vs_layout.exe
call fcn.00401830
mov dword [ebp - 4], 1
mov dword [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x34]
call fcn.004028a0
mov byte [ebp - 4], 2
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x30]
call fcn.00401020
mov byte [ebp - 4], 3
mov dword [ebp - 0x1c], 0
call fcn.00401f60
mov ecx, eax
test ecx, ecx
je 0x4039a2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 4
mov eax, 0x4219cf
shr eax, 0x10
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x402cb3
mov esi, 0x4219cf
movzx eax, si
push eax
lea ecx, [ebp - 0x1c]
call fcn.004026f0
jmp 0x402d1b
push 0
push 0
push 0xffffffffffffffff
push 0x4219cf
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [eax - 1]
test esi, esi
jle 0x402d13
mov ecx, 1
sub ecx, dword [edi - 4]
mov eax, dword [edi - 8]
sub eax, esi
or eax, ecx
jge 0x402cec
push esi
lea ecx, [ebp - 0x1c]
call fcn.00401920
mov edi, dword [ebp - 0x1c]
push esi
push edi
push 0xffffffffffffffff
push 0x4219cf
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, dword [edi - 8]
jg 0x4039ac
mov dword [edi - 0xc], esi
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x402d1e
lea ecx, [ebp - 0x1c]
call fcn.00401a40
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 4], 5
mov dword [ebp - 0x24], 0
call fcn.00401f60
mov ecx, eax
test ecx, ecx
je 0x4039b6
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 6
cmp dword [ebp - 0x18], 0
jne 0x402d62
mov eax, 0x4219cf
movzx eax, ax
push eax
lea ecx, [ebp - 0x24]
call fcn.004026f0
jmp 0x402ddc
push 0
push 0
push 0xffffffffffffffff
push 0x4219cf
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [eax - 1]
mov dword [ebp - 0xa0], edx
test edx, edx
jle 0x402dd4
mov ecx, 1
sub ecx, dword [esi - 4]
mov eax, dword [esi - 8]
sub eax, edx
or eax, ecx
jge 0x402da7
push edx
lea ecx, [ebp - 0x24]
call fcn.00401920
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0xa0]
push edx
push esi
push 0xffffffffffffffff
push 0x4219cf
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0xa0]
cmp eax, dword [esi - 8]
jg 0x4039ac
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x402ddc
lea ecx, [ebp - 0x24]
call fcn.00401a40
mov byte [ebp - 4], 7
mov dword [ebp - 0x20], 0
call fcn.00401f60
mov ecx, eax
test ecx, ecx
je 0x4039c0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 8
cmp dword [ebp - 0x18], 0
jne 0x402e20
mov eax, 0x4219cf
movzx eax, ax
push eax
lea ecx, [ebp - 0x20]
call fcn.004026f0
jmp 0x402e9a
push 0
push 0
push 0xffffffffffffffff
push 0x4219cf
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [eax - 1]
mov dword [ebp - 0xa0], edx
test edx, edx
jle 0x402e92
mov ecx, 1
sub ecx, dword [esi - 4]
mov eax, dword [esi - 8]
sub eax, edx
or eax, ecx
jge 0x402e65
push edx
lea ecx, [ebp - 0x20]
call fcn.00401920
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0xa0]
push edx
push esi
push 0xffffffffffffffff
push 0x4219cf
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0xa0]
cmp eax, dword [esi - 8]
jg 0x4039ac
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x402e9d
lea ecx, [ebp - 0x20]
call fcn.00401a40
mov esi, dword [ebp - 0x20]
mov byte [ebp - 4], 9
mov dword [ebp - 0xa0], 0
push 0x14
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x9c], eax
test eax, eax
jne 0x402ed2
mov dword [ebp - 0x28], 0x80004005
jmp 0x4038b9
xor eax, eax
mov dword [ebp - 0x8c], eax
nop word [eax + eax]
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
mov ecx, dword [eax + 0x4218ac]
call fcn.004020e0
mov dword [ebp - 0x98], eax
test eax, eax
jne 0x402f2e
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x9c]
mov dword [eax + edx + 4], ecx
inc dword [edx]
add eax, 4
mov dword [ebp - 0x8c], eax
cmp eax, 0xc
jb 0x402ee0
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x40383e
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x18], eax
call fcn.00401f60
mov ecx, eax
test ecx, ecx
je 0x4039ca
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x8c], 0
mov edx, 1
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
sub ecx, 0x104
or ecx, edx
jge 0x402f8f
push 0x104
lea ecx, [ebp - 0x18]
call fcn.00401920
mov eax, dword [ebp - 0x18]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402ff3
push 0x5c
mov eax, dword [ebp - 0x18]
push eax
call fcn.00408f62
add esp, 8
mov ecx, eax
mov eax, dword [ebp - 0x18]
test ecx, ecx
jne 0x402fbd
or ecx, 0xffffffff
jmp 0x402fc1
sub ecx, eax
sar ecx, 1
inc ecx
mov dword [ebp - 0x8c], ecx
push dword [eax - 8]
push eax
call fcn.0040bc11
add esp, 8
mov ecx, eax
test ecx, ecx
js 0x4039ac
mov eax, dword [ebp - 0x18]
cmp ecx, dword [eax - 8]
jg 0x4039ac
mov dword [eax - 0xc], ecx
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x8c]
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x18]
call fcn.00406610
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xa8], 1
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x403037
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov edx, dword [ebp - 0x98]
mov edx, dword [edx]
lea ecx, [edx - 0x10]
mov dword [ebp - 0x98], ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov dword [ebp - 0x8c], ecx
lea eax, [edx - 0x10]
cmp eax, ecx
je 0x4030be
lea edi, [ecx + 0xc]
mov dword [ebp - 0x9c], edi
cmp dword [ecx + 0xc], 0
mov edi, dword [ebp - 0x1c]
jl 0x4030b2
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x4030b2
mov ecx, dword [ebp - 0x98]
call fcn.004017d0
mov dword [ebp - 0x98], eax
or ecx, 0xffffffff
mov eax, dword [ebp - 0x9c]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4030a4
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x98]
add eax, 0x10
mov dword [ebp - 0x24], eax
jmp 0x4030be
push dword [edx - 0xc]
push edx
lea ecx, [ebp - 0x24]
call fcn.00401830
mov eax, 1
mov dword [ebp - 0xa8], eax
and eax, 0xfffffffe
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x90]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4030f4
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
lea edx, [eax - 0x10]
mov dword [ebp - 0x9c], edx
add edi, 0xfffffff0
cmp edx, edi
je 0x403151
cmp dword [edi + 0xc], 0
jl 0x403145
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x403145
mov ecx, edx
call fcn.004017d0
mov dword [ebp - 0x90], eax
or ecx, 0xffffffff
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40313d
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [ebp - 0x90]
add eax, 0x10
mov dword [ebp - 0x1c], eax
jmp 0x403151
push dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401830
mov eax, dword [ebp - 0x2c]
push dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402950
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x90], edi
push ecx
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00403dc0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xc0]
call fcn.004062c0
test al, al
sete al
mov byte [ebp - 0x91], al
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0xac]
cmp edx, 8
jb 0x4031e0
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0xc0]
mov eax, ecx
cmp edx, 0x1000
jb 0x4031d0
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4039d4
push edx
push ecx
call fcn.00407ecc
add esp, 8
mov al, byte [ebp - 0x91]
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 7
xor ecx, ecx
mov word [ebp - 0xc0], cx
test al, al
je 0x4032df
push str......._
lea ecx, [ebp - 0x8c]
call fcn.00403b10
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x8c]
push eax
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x98]
call fcn.004039f0
add esp, 4
mov byte [ebp - 4], 0x12
mov edx, dword [eax]
lea ecx, [edx - 0x10]
add edi, 0xfffffff0
cmp ecx, edi
je 0x403289
cmp dword [edi + 0xc], 0
jl 0x40327d
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x40327d
call fcn.004017d0
mov dword [ebp - 0x90], eax
or ecx, 0xffffffff
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403275
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [ebp - 0x90]
add eax, 0x10
mov dword [ebp - 0x1c], eax
jmp 0x403289
push dword [edx - 0xc]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00401830
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x98]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4032ab
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x8c]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4032cd
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov eax, dword [ebp - 0x2c]
push dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402950
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x90], edi
push ecx
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00403dc0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xc0]
call fcn.004062c0
test al, al
sete al
mov byte [ebp - 0x91], al
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0xac]
cmp edx, 8
jb 0x40335c
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0xc0]
mov eax, ecx
cmp edx, 0x1000
jb 0x40334c
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4039d9
push edx
push ecx
call fcn.00407ecc
add esp, 8
mov al, byte [ebp - 0x91]
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 7
xor ecx, ecx
mov word [ebp - 0xc0], cx
test al, al
je 0x40343d
mov byte [ebp - 4], 7
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40339f
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0x9c]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4033bd
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4033d8
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4033f6
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403414
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x403433
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov eax, 0x3ee
jmp 0x40397a
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_AttachConsole]
mov byte [ebp - 4], 0x1d
push ecx
mov dword [ebp - 0xa4], esp
mov dword [ebp - 0x98], esp
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov edx, eax
lea eax, [edi - 4]
mov dword [ebp - 0x90], eax
cmp dword [eax], 0
jl 0x403483
cmp edx, dword [edi - 0x10]
jne 0x403483
lea eax, [edi - 0x10]
mov ecx, dword [ebp - 0x90]
lock inc dword [ecx]
jmp 0x4034c5
mov eax, dword [edx]
mov eax, dword [eax]
push 2
push dword [edi - 0xc]
mov ecx, edx
call eax
mov edx, eax
mov dword [ebp - 0x8c], edx
test edx, edx
je 0x4039de
mov eax, dword [edi - 0xc]
mov dword [edx + 4], eax
mov edx, dword [edi - 0xc]
inc edx
mov eax, edi
mov ecx, dword [ebp - 0x8c]
add ecx, 0x10
push edx
push eax
call fcn.00401990
add esp, 8
mov eax, dword [ebp - 0x8c]
add eax, 0x10
mov ecx, dword [ebp - 0x98]
mov dword [ecx], eax
mov byte [ebp - 4], 0x1e
mov byte [ebp - 4], 0x1f
mov byte [ebp - 4], 0x1d
call fcn.004063e0
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 9
jmp 0x40350a
cmp dword [ebp - 0x28], 0
je 0x4035ce
push ecx
mov dword [ebp - 0xa4], esp
mov dword [ebp - 0x98], esp
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ecx]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov edx, eax
mov ecx, dword [ebp - 0x8c]
lea eax, [ecx + 0xc]
mov dword [ebp - 0x90], eax
cmp dword [eax], 0
jl 0x40355d
cmp edx, dword [ecx]
jne 0x40355d
mov eax, ecx
mov ecx, dword [ebp - 0x90]
lock inc dword [ecx]
jmp 0x40359d
mov eax, dword [edx]
mov eax, dword [eax]
push 2
push dword [ecx + 4]
mov ecx, edx
call eax
mov edx, eax
mov dword [ebp - 0x18], edx
test edx, edx
je 0x4039e3
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov edx, dword [ecx + 4]
inc edx
lea eax, [ecx + 0x10]
mov ecx, dword [ebp - 0x18]
add ecx, 0x10
push edx
push eax
call fcn.00401990
add esp, 8
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov ecx, dword [ebp - 0x98]
mov dword [ecx], eax
mov byte [ebp - 4], 0x22
mov byte [ebp - 4], 9
call fcn.00401330
add esp, 4
test al, al
jne 0x4035c4
mov ecx, dword [ebp - 0x28]
call fcn.00402340
cmp dword [ebp - 0x28], 0
jne 0x40383e
mov dword [ebp - 0x78], 0x44
push 0x421960
lea ecx, [ebp - 0x9c]
call fcn.00403b10
mov byte [ebp - 4], 0x23
push 0x421964
lea ecx, [ebp - 0x18]
call fcn.00403b10
mov byte [ebp - 4], 0x24
push 0x421964
lea ecx, [ebp - 0x8c]
call fcn.00403b10
mov byte [ebp - 4], 0x25
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0xa4]
call fcn.004039f0
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0x18]
push ecx
mov edx, eax
lea ecx, [ebp - 0xcc]
call fcn.004039f0
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0x9c]
push ecx
mov edx, eax
lea ecx, [ebp - 0xc8]
call fcn.004039f0
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x30]
push ecx
mov edx, eax
lea ecx, [ebp - 0xc4]
call fcn.004039f0
add esp, 0x10
mov byte [ebp - 4], 0x29
mov edx, dword [eax]
lea eax, [edx - 0x10]
mov dword [ebp - 0x90], eax
lea ecx, [esi - 0x10]
mov dword [ebp - 0x98], ecx
cmp eax, ecx
je 0x4036da
lea esi, [ecx + 0xc]
cmp dword [esi], 0
jl 0x4036cb
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x4036cb
mov ecx, dword [ebp - 0x90]
call fcn.004017d0
mov dword [ebp - 0x90], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4036c3
mov esi, dword [ebp - 0x98]
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, dword [ebp - 0x90]
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
jmp 0x4036da
push dword [edx - 0xc]
push edx
lea ecx, [ebp - 0x20]
call fcn.00401830
mov esi, dword [ebp - 0x20]
mov byte [ebp - 4], 0x28
mov edx, dword [ebp - 0xc4]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4036fc
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0x27
mov edx, dword [ebp - 0xc8]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40371e
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0x26
mov edx, dword [ebp - 0xcc]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403740
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0x25
mov edx, dword [ebp - 0xa4]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403762
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0x24
mov edx, dword [ebp - 0x8c]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403784
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0x23
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4037a3
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x9c]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4037c5
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
cmp dword [esi - 4], 1
jle 0x4037d9
push dword [esi - 0xc]
lea ecx, [ebp - 0x20]
call fcn.00401b20
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403808
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
jmp 0x40383e
push 0xffffffffffffffff
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x4038b9
xor ecx, ecx
mov dword [ebp - 0x9c], ecx
cmp dword [eax], ecx
jbe 0x40389f
add eax, 4
mov dword [ebp - 0x8c], eax
mov edi, dword [ebp - 0xa0]
mov edx, dword [eax]
test edx, edx
je 0x403882
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0
mov ecx, dword [ebp - 0x9c]
inc ecx
mov dword [ebp - 0x9c], ecx
add eax, 4
mov dword [ebp - 0x8c], eax
cmp ecx, dword [edi]
jb 0x403863
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xa0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x4038b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 7
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4038e0
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4038fe
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x403919
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403937
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403955
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x403974
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407987
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.004020c0
push 0x80004005
call fcn.004020c0
push 0x80070057
call fcn.004020c0
push 0x80004005
call fcn.004020c0
push 0x80004005
call fcn.004020c0
push 0x80004005
call fcn.004020c0
call fcn.0040ba94
call fcn.0040ba94
call fcn.00401980
call fcn.00401980
int3