Function at 0x40168b
Capabilities:
Terminate process

Disassembly:
jmp 0x445f50
sub esp, 0xe0
mov eax, dword [0x487180]
xor eax, esp
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xe8]
push ebx
mov ebx, dword [esp + 0xe8]
test ebx, ebx
mov dword [esp + 4], eax
jne 0x445f94
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.0044b8bd
add esp, 0xe0
ret
push esi
push 0x2e
push ebx
call fcn.0044b890
mov esi, eax
add esp, 8
test esi, esi
je 0x446148
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 4
jl 0x446148
push str..bat
push esi
call fcn.0044ecc5
add esp, 8
test eax, eax
je 0x445fe2
push str..cmd
push esi
call fcn.0044ecc5
add esp, 8
test eax, eax
jne 0x446148
push ebp
push edi
push 0x44
lea ecx, [esp + 0x2c]
push 0
push ecx
call fcn.0044d2e0
xor eax, eax
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x64], 0x100
call fcn.00401a55
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add esp, 0x10
push 2
push 1
push 0
lea edx, [esp + 0x6c]
push edx
mov edi, eax
call esi
push eax
push edi
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
push 1
call fcn.00401a55
add esp, 4
push 2
push 1
mov ebp, eax
push 0
lea eax, [esp + 0x70]
push eax
call esi
push eax
push ebp
call esi
push eax
call edi
push 2
call fcn.00401a55
add esp, 4
push 2
push 1
push 0
lea ecx, [esp + 0x74]
push ecx
mov ebp, eax
call esi
push eax
push ebp
call esi
push eax
call edi
cmp byte [ebx], 0
pop edi
mov eax, ebx
pop ebp
je 0x446098
cmp byte [eax], 0x2f
jne 0x446090
mov byte [eax], 0x5c
add eax, 1
cmp byte [eax], 0
jne 0x446088
cmp dword [0x489fd0], 1
push ebx
jne 0x4460b3
push str.command.com__c__s
push 0x80
lea edx, [esp + 0x70]
push edx
jmp 0x4460c2
push str.cmd__c__s
push 0x80
lea eax, [esp + 0x70]
push eax
call fcn.0046f0bd
mov esi, dword [esp + 0x18]
add esi, 4
add esp, 0x10
cmp dword [esi], 0
je 0x44610e
jmp 0x4460e0
push 0x47d784
push 0x80
lea ecx, [esp + 0x6c]
push ecx
call fcn.0046fbea
mov edx, dword [esi]
push edx
push 0x80
lea eax, [esp + 0x6c]
push eax
call fcn.0046fbea
add esi, 4
cmp dword [esi], 0
jne 0x4460e0
call fcn.004015aa
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 4
push 1
push 0
mov esi, eax
push 0
lea eax, [esp + 0x84]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x446164
push esi
call fcn.00401c17
add esp, 4
mov ecx, dword [esp + 0xe4]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0044b8bd
add esp, 0xe0
ret
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x44618d
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call fcn.00401c17
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ecx
call esi
mov edx, dword [esp + 0xc]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0xc]
push eax
call esi
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]