Function at 0x4013e0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
mov eax, dword [0x40a2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x44
lea eax, [ebp - 0x350]
push ebx
push eax
mov dword [ebp - 0x30c], esi
mov dword [ebp - 0x2f0], ebx
mov dword [ebp - 0x2f4], 1
mov dword [ebp - 0x2ec], ebx
call fcn.00402280
mov ebx, dword [edi + 0x3c]
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x2e0]
push ecx
lea edx, [ebp - 0x350]
push edx
push eax
push eax
push 4
push 1
push eax
push eax
mov dword [ebp - 0x2e0], eax
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 0x350], 0x44
add ebx, edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push esi
call dword [0x40adf8]
test eax, eax
je 0x40176b
mov ecx, dword [ebp - 0x2dc]
lea eax, [ebp - 0x2d0]
push eax
push ecx
mov dword [ebp - 0x2d0], 0x10007
call dword [0x40ae0c]
test eax, eax
je 0x40171e
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x40171e
push 0
push 4
lea edx, [ebp - 0x2f0]
push edx
add eax, 8
push eax
mov eax, dword [ebp - 0x2e0]
push eax
call dword [0x40adfc]
test eax, eax
je 0x40171e
mov eax, dword [ebp - 0x2f0]
lea esi, [ebx + 0x34]
mov dword [ebp - 0x300], esi
cmp eax, dword [esi]
jne 0x4014fa
mov ecx, dword [ebp - 0x2e0]
push eax
push ecx
call dword [0x40ae1c]
mov edx, dword [ebx + 0x50]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x2e0]
push 0x40
push 0x3000
push edx
push eax
push ecx
call dword [0x40ae00]
mov dword [ebp - 0x2e4], eax
test eax, eax
je 0x401714
mov eax, dword [ebx + 0x54]
mov ecx, dword [esi]
lea edx, [ebp - 0x2fc]
push edx
mov edx, dword [ebp - 0x2e0]
push eax
push edi
push ecx
push edx
mov dword [ebp - 0x2fc], 0
call dword [0x40ae04]
test eax, eax
je 0x40166a
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x2f8], eax
cmp cx, word [ebx + 6]
jae 0x40166a
mov dword [ebp - 0x2e8], eax
jmp 0x401570
mov edx, dword [edi + 0x3c]
add edx, dword [ebp - 0x2e8]
mov eax, dword [edx + edi + 0x11c]
lea esi, [edx + edi + 0xf8]
push eax
call fcn.00401310
mov dword [ebp - 0x304], eax
mov eax, dword [esi + 0x10]
add esp, 4
test eax, eax
je 0x40160d
cmp dword [esi + 0xc], 0
je 0x40160d
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x40160d
lea edx, [ebp - 0x2fc]
push edx
mov edx, dword [ebp - 0x2e0]
push eax
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 0x2e4]
add ecx, edi
push ecx
push eax
push edx
call dword [0x40ae04]
test eax, eax
je 0x401636
mov ecx, dword [ebp - 0x304]
mov edx, dword [esi + 0x10]
lea eax, [ebp - 0x308]
push eax
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 0x2e4]
push ecx
mov ecx, dword [ebp - 0x2e0]
push edx
push eax
push ecx
mov dword [ebp - 0x308], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x40160d
mov dword [ebp - 0x2f4], eax
mov eax, dword [ebp - 0x2f8]
movzx edx, word [ebx + 6]
add dword [ebp - 0x2e8], 0x28
inc eax
mov dword [ebp - 0x2f8], eax
cmp eax, edx
jb 0x401570
cmp dword [ebp - 0x2f4], 0
jne 0x401664
mov eax, dword [ebp - 0x2e0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x2dc]
push ecx
call dword [0x40ae08]
mov edx, dword [ebp - 0x2e0]
push edx
call dword [0x40ae08]
jmp 0x40171e
mov esi, dword [ebp - 0x300]
mov ecx, dword [ebp - 0x2dc]
lea eax, [ebp - 0x2d0]
push eax
push ecx
mov dword [ebp - 0x2d0], 0x10007
call dword [0x40ae0c]
test eax, eax
je 0x40171e
mov eax, dword [ebp - 0x22c]
mov edx, dword [ebx + 0x28]
add edx, dword [ebp - 0x2e4]
mov ecx, dword [ebp - 0x2e0]
push 0
push 4
push esi
add eax, 8
push eax
push ecx
mov dword [ebp - 0x220], edx
call dword [0x40ae04]
test eax, eax
je 0x40171e
mov eax, dword [ebp - 0x2dc]
lea edx, [ebp - 0x2d0]
push edx
push eax
call dword [0x40ae14]
test eax, eax
je 0x40171e
mov ecx, dword [ebp - 0x2dc]
push ecx
call dword [0x40ae10]
mov edx, dword [ebp - 0x2dc]
push edx
call dword [0x40ae08]
mov eax, dword [ebp - 0x2e0]
push eax
call dword [0x40ae08]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402262
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x2ec], 1
mov ecx, dword [ebp - 0x2e0]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 0x2dc]
push edx
call dword [0x40ae08]
mov eax, dword [ebp - 0x2e0]
push eax
call dword [0x40ae08]
cmp dword [ebp - 0x2ec], 0
je 0x40176b
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x30c]
push edi
push ecx
call fcn.004013e0
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00402262
mov esp, ebp
pop ebp
ret