Function at 0x45e3b0
Capabilities:
Create process on windows
Set current directory

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x178
push 0x807b00
push 0x808174
call fcn.00468892
add esp, 8
test eax, eax
je 0x45e7de
push eax
call fcn.00468bf8
pop ecx
xor eax, eax
push 0x8081a0
push 0x200
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
test ebp, ebp
je 0x45e7c2
xor edx, edx
push edx
push edx
push edx
push 0xf001f
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x45e79f
push 0x400
push ebx
call dword [0x5d0480]
add esp, 8
mov dword [ebx + 0x80], 0x1e2
lea esi, [ebx + 0x84]
mov dword [esp + 0x160], esi
mov edi, 0x67f960
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x45e443
lea edx, [esp + 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [esp + 0x11c], 0x44
mov edx, 5
mov word [esp + 0x14c], dx
lea esi, [esp + 0xc]
mov edi, 0x8081f0
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x45e47c
xor edi, edi
lea esi, [esp + 0xc]
lea ecx, [esp + 0x11c]
lea edx, [esp + 0x164]
push edx
push ecx
push edi
push edi
push 0x20
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x45e4d9
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x80820c
push 0
call fcn.0040c5ac
mov eax, 1
add esp, 0x180
pop ebx
pop ebp
pop esi
pop edi
ret
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00460a78
jmp 0x45e4f0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x174]
push edx
push dword [esp + 0x168]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x174]
cmp edx, 0x103
jne 0x45e767
cmp dword [ebx], 1
jne 0x45e4e8
mov edx, dword [ebx + 0x10]
mov dword [0x8017e8], edx
mov esi, dword [ebx + 0x14]
test esi, esi
jne 0x45e532
mov esi, 0x10
xor edx, edx
push 0x808238
push esi
push edx
push 4
push edx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esp + 0x118], eax
mov edx, eax
test edx, edx
jne 0x45e57d
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8081bc
push 0
call fcn.0040c5ac
mov eax, 0xffffffff
add esp, 0x180
pop ebx
pop ebp
pop esi
pop edi
ret
xor edx, edx
push edx
push edx
push edx
push 0xf001f
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x114], eax
mov edx, eax
test edx, edx
jne 0x45e5d5
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8081bc
push 0
call fcn.0040c5ac
mov eax, 0xffffffff
add esp, 0x180
pop ebx
pop ebp
pop esi
pop edi
ret
push esi
push edx
call dword [0x5d0480]
add esp, 8
mov dword [ebx + 4], 1
jmp 0x45e5f1
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x174]
push edx
push dword [esp + 0x168]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x174]
cmp edx, 0x103
je 0x45e5e9
push dword [esp + 0x164]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x168]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x8017e8], 0
jle 0x45e6e6
test esi, esi
jle 0x45e6e6
push esi
call fcn.0046769c
mov dword [esp + 0xc], eax
push esi
mov edx, dword [esp + 0x11c]
push edx
mov ecx, eax
push ecx
call dword [0x5d048c]
mov edx, dword [0x8017e8]
add edx, edx
add edx, edx
push edx
call fcn.00403564
add esp, 0x14
mov dword [0x8017ec], eax
cmp dword [0x8017e8], 0
jle 0x45e6e6
xor esi, esi
xor edi, edi
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov ebx, eax
mov ebp, dword [esp + 8]
push 0xc
call fcn.0046769c
pop ecx
mov dword [ebx + edi*4], eax
mov ecx, dword [esi + ebp]
lea eax, [ebp + esi + 4]
mov ebx, dword [0x8017ec]
mov edx, dword [ebx + edi*4]
mov dword [edx], eax
lea esi, [ecx + esi + 4]
mov ebx, dword [0x8017ec]
mov ecx, dword [ebx + edi*4]
mov edx, dword [esi + ebp]
mov dword [ecx + 4], edx
lea edx, [ebp + esi + 4]
mov ecx, dword [ebx + edi*4]
mov dword [ecx + 8], edx
mov edx, dword [ebx + edi*4]
mov edx, dword [edx + 4]
lea esi, [edx + esi + 4]
inc edi
cmp edi, dword [0x8017e8]
jl 0x45e692
mov ebx, dword [esp]
mov ebp, dword [esp + 4]
movsx edx, byte [ebx + 0xc]
mov dword [esp + 8], edx
mov esi, 0x67fa80
mov edi, dword [esp + 0x160]
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x45e6fa
test ebx, ebx
je 0x45e70f
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [esp + 0x114]
test edx, edx
je 0x45e721
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
cmp eax, 1
je 0x45e74f
mov eax, 1
add esp, 0x178
pop ebx
pop ebp
pop esi
pop edi
ret
push 0x67fa80
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor eax, eax
add esp, 0x178
pop ebx
pop ebp
pop esi
pop edi
ret
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x164]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x168]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x178
pop ebx
pop ebp
pop esi
pop edi
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8081bc
push 0
call fcn.0040c5ac
mov eax, 0xffffffff
add esp, 0x180
pop ebx
pop ebp
pop esi
pop edi
ret
push 0x8081bc
push 0
call fcn.0040c5ac
mov eax, 0xffffffff
add esp, 0x180
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [0x5b373c], 0x80818c
push 1
push 0x186a0
call fcn.004647e0
mov eax, 1
add esp, 0x180
pop ebx
pop ebp
pop esi
pop edi
ret