Function at 0x5056a0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x594b33
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x118], eax
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov edi, edx
mov dword [esp + 0x10], edi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x5056ee
xor al, al
jmp 0x505cf8
xor eax, eax
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], 0
mov dword [esp + 0x108], 7
mov dword [esp + 0x104], 0
mov word [esp + 0xf4], ax
mov dword [esp + 0x130], eax
lea edx, [esp + 0xf4]
mov ecx, esi
call fcn.004b26b0
mov edx, esi
lea ecx, [esp + 0xac]
call fcn.004b38c0
mov byte [esp + 0x130], 1
lea ecx, [esp + 0xac]
cmp dword [esp + 0xc0], 8
mov edx, 0x5a9aa8
cmovae ecx, dword [esp + 0xac]
call fcn.004afc30
test al, al
je 0x5059d6
push 0x44
lea eax, [esp + 0x68]
push 0
push eax
call fcn.0056cbb0
mov eax, 1
mov dword [esp + 0x128], 0
mov word [esp + 0xa0], ax
xorps xmm0, xmm0
xor eax, eax
mov dword [esp + 0x12c], 0
add esp, 0xc
mov dword [esp + 0x64], 0x44
movdqu xmmword [esp + 0x54], xmm0
mov dword [esp + 0x90], 0x81
mov dword [esp + 0x120], 7
mov dword [esp + 0x11c], 0
mov word [esp + 0x10c], ax
mov byte [esp + 0x130], 3
mov edi, dword [esp + 0x11c]
cmp edi, 0x104
ja 0x505848
mov ecx, dword [esp + 0x120]
cmp ecx, 0x104
je 0x505848
jae 0x505829
push edi
push 0x104
lea ecx, [esp + 0x114]
call fcn.00404f30
mov ecx, dword [esp + 0x120]
cmp ecx, 8
mov dword [esp + 0x11c], edi
lea eax, [esp + 0x10c]
cmovae eax, dword [esp + 0x10c]
xor ecx, ecx
mov word [eax + edi*2], cx
push 1
push 0x5a8f9c
lea ecx, [esp + 0x114]
call fcn.00404a80
push 0xffffffffffffffff
push 0
push esi
lea ecx, [esp + 0x118]
call fcn.004047c0
push 1
push 0x5a8f9c
lea ecx, [esp + 0x114]
call fcn.00404880
mov edi, dword [esp + 0x10]
cmp dword [edi + 0x10], 0
je 0x5058ab
push 0x5a9b7c
lea ecx, [esp + 0x110]
call fcn.00403b70
push 0xffffffffffffffff
push 0
push edi
lea ecx, [esp + 0x118]
call fcn.004047c0
cmp dword [esp + 0x104], 0
jne 0x5058b9
xor eax, eax
jmp 0x5058d0
cmp dword [esp + 0x108], 8
lea eax, [esp + 0xf4]
cmovae eax, dword [esp + 0xf4]
cmp dword [esp + 0x120], 8
lea ecx, [esp + 0x10c]
cmovae ecx, dword [esp + 0x10c]
cmp dword [esi + 0x14], 8
jb 0x5058f1
mov edx, dword [esi]
jmp 0x5058f3
mov edx, esi
lea edi, [esp + 0x54]
push edi
lea edi, [esp + 0x68]
push edi
push eax
push 0
push 0x30
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [esp + 0x10]
test eax, eax
je 0x505995
mov eax, dword [esp + 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x505931
push eax
call esi
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x50593f
mov byte [esp + 0x17], al
jmp 0x50594f
push eax
call esi
mov dword [esp + 0x54], 0
mov byte [esp + 0x17], 1
mov byte [esp + 0x130], 1
cmp dword [esp + 0x120], 8
jb 0x505970
push dword [esp + 0x10c]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x120], 7
mov dword [esp + 0x11c], 0
mov word [esp + 0x10c], ax
jmp 0x505c6f
mov byte [esp + 0x130], 1
cmp dword [esp + 0x120], 8
jb 0x5059b6
push dword [esp + 0x10c]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x120], 7
mov dword [esp + 0x11c], 0
mov word [esp + 0x10c], ax
push 4
xor eax, eax
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
lea ecx, [esp + 0xc8]
push str.open
mov dword [esp + 0xe0], 7
mov dword [esp + 0xdc], 0
mov word [esp + 0xcc], ax
call fcn.00404a80
mov byte [esp + 0x130], 4
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [esp + 0xf4], 0
lea ecx, [esp + 0xe4]
mov dword [esp + 0xf8], 0
push edi
mov dword [esp + 0xfc], 7
mov dword [esp + 0xf8], 0
mov word [esp + 0xe8], ax
call fcn.00404960
mov byte [esp + 0x130], 5
lea eax, [esp + 0x18]
push 0x3c
push 0
push eax
call fcn.0056cbb0
add esp, 0xc
mov dword [esp + 0x18], 0x3c
cmp dword [esp + 0xd8], 8
lea eax, [esp + 0xc4]
mov dword [esp + 0x20], 0
cmovae eax, dword [esp + 0xc4]
cmp dword [esi + 0x14], 8
mov dword [esp + 0x1c], 0x100540
mov dword [esp + 0x24], eax
jb 0x505ac1
mov esi, dword [esi]
cmp dword [esp + 0x108], 8
lea eax, [esp + 0xf4]
push 0xb
cmovae eax, dword [esp + 0xf8]
lea ecx, [esp + 0x110]
cmp dword [esp + 0xf4], 8
mov dword [esp + 0x34], eax
lea eax, [esp + 0xe0]
cmovae eax, dword [esp + 0xe0]
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x120], 0
mov dword [esp + 0x124], 0
push str.Shell32.dll
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], 1
mov dword [esp + 0x128], 7
mov dword [esp + 0x124], 0
mov word [esp + 0x114], ax
call fcn.00404a80
mov byte [esp + 0x130], 6
lea eax, [esp + 0x10c]
push eax
call fcn.004c1f20
mov ecx, eax
call fcn.004c1fa0
mov esi, eax
mov byte [esp + 0x130], 5
cmp dword [esp + 0x120], 8
jb 0x505b8b
push dword [esp + 0x10c]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x120], 7
mov dword [esp + 0x11c], 0
mov word [esp + 0x10c], ax
test esi, esi
je 0x505be8
push 0x5be5a4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x505be8
lea ecx, [esp + 0x18]
push ecx
call eax
test eax, eax
je 0x505be8
mov eax, dword [esp + 0x50]
test eax, eax
je 0x505be8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x50], 0
mov byte [esp + 0x17], 1
jmp 0x505bed
mov byte [esp + 0x17], 0
mov byte [esp + 0x130], 4
cmp dword [esp + 0xf0], 8
jb 0x505c0e
push dword [esp + 0xdc]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0xf0], 7
mov dword [esp + 0xec], 0
mov word [esp + 0xdc], ax
mov byte [esp + 0x130], 1
cmp dword [esp + 0xd8], 8
jb 0x505c4f
push dword [esp + 0xc4]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0xd8], 7
mov dword [esp + 0xd4], 0
mov word [esp + 0xc4], ax
mov byte [esp + 0x130], 0
cmp dword [esp + 0xc0], 8
jb 0x505c90
push dword [esp + 0xac]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], 0
mov word [esp + 0xac], ax
mov dword [esp + 0x130], 0xffffffff
cmp dword [esp + 0x108], 8
jb 0x505cd4
push dword [esp + 0xf4]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x108], 7
mov word [esp + 0xf4], ax
mov al, byte [esp + 0x17]
mov dword [esp + 0x104], 0
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00564de8
add esp, 0x128
ret