Function at 0x40143c
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x41edc0
call fcn.00402b5c
sub esp, 0x14
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [esi + 0x5ec], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
push ebx
call fcn.00402e60
inc eax
push eax
call fcn.004130a1
mov edi, dword [ebp + 8]
push ebx
push eax
mov dword [edi], eax
call fcn.00402d70
add esp, 0x10
lea ecx, [ebp - 0x20]
push ebx
call fcn.004018e0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00401921
mov dword [ebp + 8], eax
xor eax, eax
cmp dword [ebp + 8], eax
push 1
pop ebx
je 0x401677
jmp 0x40149f
xor eax, eax
cmp dword [ebp - 0x18], eax
je 0x4014d4
cmp dword [edi + 0xc], eax
jne 0x401729
push dword [ebp + 8]
call fcn.00402e60
inc eax
push eax
call fcn.004130a1
push dword [ebp + 8]
mov dword [edi + 0xc], eax
push eax
call fcn.00402d70
add esp, 0x10
and dword [ebp - 0x18], 0
jmp 0x401664
cmp dword [ebp - 0x10], eax
je 0x4014f5
mov ecx, dword [ebp + 8]
push 0x104
lea edx, [esi + 0x4d4]
call fcn.00401bba
and dword [ebp - 0x10], 0
jmp 0x401664
cmp dword [ebp - 0x14], eax
je 0x401516
mov ecx, dword [ebp + 8]
push 0x104
lea edx, [esi + 0x3d0]
call fcn.00401bba
and dword [ebp - 0x14], 0
jmp 0x401664
push dword [ebp + 8]
push str.wait
call fcn.00402ca0
pop ecx
test eax, eax
pop ecx
jne 0x401534
mov dword [esi + 0x5e4], ebx
jmp 0x401664
push dword [ebp + 8]
push 0x42083c
call fcn.00402ca0
pop ecx
test eax, eax
pop ecx
jne 0x40154f
mov dword [ebp - 0x10], ebx
jmp 0x401664
push dword [ebp + 8]
push 0x420838
call fcn.00402ca0
pop ecx
test eax, eax
pop ecx
jne 0x40156a
mov dword [ebp - 0x14], ebx
jmp 0x401664
push dword [ebp + 8]
push 0x420834
call fcn.00402ca0
pop ecx
test eax, eax
pop ecx
jne 0x40158f
mov dword [esi + 0x5d8], ebx
mov dword [edi + 4], 3
jmp 0x401664
push dword [ebp + 8]
push 0x420830
call fcn.00402ca0
pop ecx
test eax, eax
pop ecx
jne 0x4015b7
mov dword [esi + 0x5d8], ebx
mov dword [edi + 4], 3
mov dword [edi + 0x1c], ebx
jmp 0x401664
push dword [ebp + 8]
push 0x42082c
call fcn.00402ca0
pop ecx
test eax, eax
pop ecx
jne 0x4015d8
mov dword [esi + 0x5ec], ebx
mov dword [edi + 0x18], ebx
jmp 0x401664
push dword [ebp + 8]
push 0x420828
call fcn.00402ca0
pop ecx
test eax, eax
pop ecx
jne 0x4015fa
mov dword [esi + 0x5dc], ebx
mov dword [edi + 4], 2
jmp 0x401664
push dword [ebp + 8]
push str.noows
call fcn.00402ca0
pop ecx
test eax, eax
pop ecx
jne 0x401618
mov dword [esi + 0x5e8], ebx
mov dword [edi + 0x14], ebx
jmp 0x401664
push dword [ebp + 8]
push str.reboot
call fcn.00402ca0
pop ecx
test eax, eax
pop ecx
jne 0x401636
mov dword [esi + 0x5e0], ebx
mov dword [edi + 0x10], ebx
jmp 0x401664
push dword [ebp + 8]
push 0x420814
call fcn.00402ca0
pop ecx
test eax, eax
pop ecx
jne 0x40164e
mov dword [ebp - 0x18], ebx
jmp 0x401664
push dword [ebp + 8]
push str.noext
call fcn.00402ca0
pop ecx
test eax, eax
pop ecx
jne 0x401664
mov dword [edi + 0x20], ebx
lea ecx, [ebp - 0x20]
call fcn.00401921
test eax, eax
mov dword [ebp + 8], eax
jne 0x40149d
cmp dword [edi + 0xc], eax
je 0x401729
mov ecx, dword [esi + 0x5d8]
cmp ecx, eax
je 0x40169a
cmp dword [esi + 0x5dc], eax
jne 0x401729
cmp ecx, eax
jne 0x4016a5
cmp dword [esi + 0x5dc], eax
jne 0x4016a5
mov dword [edi + 4], ebx
cmp byte [esi + 0x4d4], 0
lea edi, [esi + 0x4d4]
je 0x401709
cmp dword [esi + 0x5ec], eax
je 0x4016fc
push eax
push 0x80
push 3
push eax
push ebx
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401729
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xc0]
push edi
add eax, 0x30
push eax
call fcn.00402d70
pop ecx
pop ecx
jmp 0x40172b
push edi
push 0x14
xor edx, edx
pop ecx
call fcn.00401997
jmp 0x40172b
cmp dword [esi + 0x5ec], eax
je 0x40172b
cmp dword [esi + 0x5e8], eax
jne 0x40172b
cmp dword [esi + 0x5d8], eax
jne 0x40172b
cmp dword [esi + 0x5dc], eax
jne 0x40172b
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401918
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4