Function at 0x562668
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x3c
push 0
push 0
dec ecx
jne 0x562671
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov edi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x563022
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 1
xor eax, eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x11], 0
mov dword [esi + 0x330], 1
mov dword [esi + 0x334], 1
lea eax, [ebp - 0x70]
xor ecx, ecx
mov edx, 0x44
call fcn.0040387c
mov dword [ebp - 0x70], 0x44
cmp byte [ebp + 0xc], 0
je 0x5626e3
mov dword [ebp - 0x44], 1
mov word [ebp - 0x40], 0
jmp 0x5626f5
mov dword [ebp - 0x44], 1
mov eax, edi
call fcn.00560048
mov word [ebp - 0x40], ax
mov eax, dword [0x5b19a8]
mov eax, dword [eax]
mov bl, byte [eax + 0x396]
lea edx, [ebp - 0x18c]
mov eax, dword [ebp - 4]
call fcn.00443658
mov eax, dword [ebp - 0x18c]
lea edx, [ebp - 0x20]
call fcn.005625fc
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.005625fc
lea edx, [ebp - 0x194]
mov eax, dword [ebp - 0x20]
call fcn.00562470
mov eax, dword [ebp - 0x194]
lea edx, [ebp - 0x190]
call fcn.0040aa88
mov eax, dword [ebp - 0x190]
lea edx, [ebp - 0x28]
call fcn.004099a0
mov eax, dword [ebp - 0x20]
call fcn.00562514
test al, al
je 0x5627ae
push 0x563040
push dword [ebp - 0x20]
push 0x56304c
push dword [ebp - 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00405390
mov eax, dword [0x5b1d0c]
cmp byte [eax], 0
je 0x562798
lea eax, [ebp - 0x20]
mov edx, 0x563058
call fcn.0040508c
jmp 0x5627a5
lea eax, [ebp - 0x20]
mov edx, 0x563068
call fcn.0040508c
mov byte [ebp - 0x11], 1
jmp 0x562942
mov edx, 0x56307c
mov eax, dword [ebp - 0x28]
call fcn.0047a0f8
test al, al
je 0x5627fa
lea edx, [ebp - 0x198]
mov eax, dword [ebp - 0x20]
call fcn.005624bc
push dword [ebp - 0x198]
push 0x56304c
push dword [ebp - 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00405390
lea eax, [ebp - 0x20]
mov edx, 0x56308c
call fcn.0040508c
jmp 0x562942
mov edx, 0x5630a0
mov eax, dword [ebp - 0x28]
call fcn.0047a0f8
test al, al
je 0x56286a
push 0x563040
lea edx, [ebp - 0x19c]
mov eax, dword [ebp - 0x20]
call fcn.005624bc
push dword [ebp - 0x19c]
push 0x56304c
push dword [ebp - 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00405390
mov eax, dword [0x5b1d0c]
cmp byte [eax], 0
je 0x562852
lea eax, [ebp - 0x20]
mov edx, 0x563058
call fcn.0040508c
jmp 0x56285f
lea eax, [ebp - 0x20]
mov edx, 0x563068
call fcn.0040508c
mov word [ebp - 0x40], 0
jmp 0x562942
lea eax, [ebp - 0x1a0]
mov ecx, 0x5630b0
mov edx, dword [ebp - 0x28]
call fcn.0040531c
mov eax, dword [ebp - 0x1a0]
mov edx, 0x5630bc
call fcn.00405614
test eax, eax
jne 0x562942
lea eax, [ebp - 0x185]
push eax
push 0x5630e8
lea edx, [ebp - 0x1a4]
mov eax, dword [ebp - 4]
call fcn.00562470
mov eax, dword [ebp - 0x1a4]
call fcn.004054d0
push eax
call sub.shell32.dll_FindExecutableA
cmp eax, 0x20
jbe 0x562942
lea eax, [ebp - 0x1a8]
mov ecx, 0x5630b0
mov edx, dword [ebp - 0x28]
call fcn.0040531c
mov eax, dword [ebp - 0x1a8]
mov edx, 0x5630f4
call fcn.00405614
test eax, eax
jle 0x56290b
push 0x563108
push dword [ebp - 4]
push 0x56304c
push dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00405390
jmp 0x562934
lea edx, [ebp - 0x1ac]
mov eax, dword [ebp - 4]
call fcn.005624bc
push dword [ebp - 0x1ac]
push 0x56304c
push dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00405390
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x185]
call fcn.0040af44
test bl, bl
je 0x562953
lea eax, [ebp - 0x24]
call fcn.0059e238
jmp 0x5629e3
lea edx, [ebp - 0x1b0]
mov eax, dword [ebp - 0x20]
call fcn.00562470
mov eax, dword [ebp - 0x1b0]
lea edx, [ebp - 0x24]
call fcn.0040a934
lea edx, [ebp - 0x1b8]
mov eax, dword [ebp - 0x20]
call fcn.00562470
mov eax, dword [ebp - 0x1b8]
lea edx, [ebp - 0x1b4]
call fcn.0040aa50
mov edx, dword [ebp - 0x1b4]
lea eax, [ebp - 0x20]
call fcn.0040508c
cmp dword [ebp - 0x24], 0
jbe 0x5629e3
cmp dword [ebp - 0x20], 0
jne 0x5629e3
lea eax, [ebp - 0x20]
mov edx, 0x563118
call fcn.0040508c
lea eax, [esi + 0x308]
mov edx, dword [ebp - 0x20]
call fcn.00405048
push dword [ebp - 0x24]
push 0x56304c
push dword [ebp - 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00405390
lea eax, [ebp - 0x24]
call fcn.00404ff4
test bl, bl
jne 0x562af7
cmp dword [ebp - 0x24], 0
jne 0x562a93
lea edx, [ebp - 0x18]
mov eax, dword [0x5b19a8]
mov eax, dword [eax]
mov eax, dword [eax + 0x354]
call fcn.0040a934
lea eax, [ebp - 0x185]
push eax
mov eax, dword [ebp - 0x18]
call fcn.004054d0
push eax
mov eax, dword [ebp - 0x20]
call fcn.004054d0
push eax
call sub.shell32.dll_FindExecutableA
cmp eax, 0x20
jbe 0x562a51
lea edx, [ebp - 0x1bc]
lea eax, [ebp - 0x185]
call fcn.0040af44
mov eax, dword [ebp - 0x1bc]
lea edx, [ebp - 0x24]
call fcn.0040a934
jmp 0x562af7
lea ecx, [ebp - 0x1c0]
mov eax, dword [0x5b19a8]
mov eax, dword [eax]
mov eax, dword [eax + 0x480]
mov edx, dword [ebp - 0x20]
call fcn.004436fc
mov eax, dword [ebp - 0x1c0]
call fcn.00443a20
test al, al
je 0x562af7
lea eax, [ebp - 0x24]
mov edx, dword [0x5b19a8]
mov edx, dword [edx]
mov edx, dword [edx + 0x480]
call fcn.0040508c
jmp 0x562af7
lea edx, [ebp - 0x1c4]
mov eax, dword [ebp - 0x24]
call fcn.0040a9bc
cmp dword [ebp - 0x1c4], 0
jne 0x562af7
lea edx, [ebp - 0x18]
mov eax, dword [0x5b19a8]
mov eax, dword [eax]
mov eax, dword [eax + 0x354]
call fcn.0040a9bc
mov edx, dword [ebp - 0x24]
mov eax, 0x563130
call fcn.00405614
dec eax
je 0x562ae9
push dword [ebp - 0x18]
push 0x563130
push dword [ebp - 0x24]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00405390
jmp 0x562af7
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
call fcn.0040531c
cmp byte [ebp - 9], 0
je 0x562fcc
cmp dword [ebp - 0x20], 0
jbe 0x562fcc
xor edx, edx
push ebp
push 0x562fc5
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x5b1eb0]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.0046babc
lea ecx, [ebp - 0x1c8]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
call fcn.004436fc
mov edx, dword [ebp - 0x1c8]
lea eax, [esi + 0x30c]
call fcn.00405048
cmp byte [ebp - 0x11], 0
jne 0x562ba7
mov edx, edi
mov eax, 0x56313c
call fcn.0047a830
test al, al
je 0x562ba7
lea edx, [esi + 0x324]
mov eax, dword [ebp - 0x20]
call fcn.0056028c
test al, al
je 0x562ba7
mov byte [ebp - 0x12], 1
mov eax, dword [esi + 0x324]
push eax
push 0
push 0x400
call sub.kernel32.dll_OpenProcess
mov dword [esi + 0x320], eax
cmp dword [esi + 0x320], 0
jne 0x562bab
mov byte [ebp - 9], 0
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x2c], eax
jmp 0x562bab
mov byte [ebp - 0x12], 0
cmp byte [ebp - 0x12], 0
jne 0x562cf0
test bl, bl
je 0x562c1e
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x24]
call fcn.004054d0
push eax
push 0
push 0x20
push 0
push 0
push 0
lea edx, [ebp - 0x1d0]
mov eax, dword [ebp - 0x20]
call fcn.005624bc
push dword [ebp - 0x1d0]
push 0x56304c
push dword [ebp - 0x1c]
lea eax, [ebp - 0x1cc]
mov edx, 3
call fcn.00405390
mov eax, dword [ebp - 0x1cc]
call fcn.004054d0
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
jmp 0x562c8e
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea ecx, [ebp - 0x1dc]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
call fcn.004436fc
mov eax, dword [ebp - 0x1dc]
lea edx, [ebp - 0x1d8]
call fcn.005624bc
push dword [ebp - 0x1d8]
push 0x56304c
push dword [ebp - 0x1c]
lea eax, [ebp - 0x1d4]
mov edx, 3
call fcn.00405390
mov eax, dword [ebp - 0x1d4]
call fcn.004054d0
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x562ce8
mov eax, dword [ebp - 0x80]
mov dword [esi + 0x320], eax
mov eax, dword [ebp - 0x78]
mov dword [esi + 0x324], eax
mov eax, dword [ebp - 0x7c]
mov dword [esi + 0x31c], eax
cmp byte [ebp + 0xc], 0
jne 0x562cce
cmp dword [esi + 0x314], 0
ja 0x562cce
mov edx, edi
mov eax, 0x56314c
call fcn.0047a830
test al, al
je 0x562cf0
push 0xffffffffffffffff
mov eax, dword [esi + 0x320]
push eax
call sub.user32.dll_WaitForInputIdle
push 0x1f4
call sub.kernel32.dll_Sleep_1
jmp 0x562cf0
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x2c], eax
cmp byte [ebp - 9], 0
je 0x562fa9
cmp byte [ebp - 0x12], 0
je 0x562d35
cmp byte [ebp + 0xc], 0
jne 0x562d35
lea edx, [ebp - 0x10]
mov eax, dword [esi + 0x324]
call fcn.00562414
test al, al
je 0x562f6e
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x328], eax
movzx edx, word [ebp - 0x40]
mov eax, esi
call fcn.00562610
jmp 0x562f6e
cmp byte [ebp + 0xc], 0
jne 0x562d52
cmp dword [esi + 0x314], 0
jbe 0x562f6e
cmp byte [ebp - 0x11], 0
jne 0x562f6e
lea edx, [ebp - 0x10]
mov eax, dword [esi + 0x324]
call fcn.00562414
test al, al
je 0x562f3e
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x328], eax
cmp byte [ebp + 0xc], 0
je 0x562f6e
mov eax, dword [esi + 0x2f8]
call fcn.0045465c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_SetParent
push 0xfffffffffffffff0
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_GetWindowLongA
test eax, 0xc00000
je 0x562da7
sub eax, 0xc00000
test eax, 0x80000
je 0x562db3
sub eax, 0x80000
test eax, 0x40000
je 0x562dbf
sub eax, 0x40000
test eax, 0x400000
je 0x562dcb
sub eax, 0x400000
test eax, 0x40000
je 0x562dd7
sub eax, 0x40000
test eax, 0x800000
jne 0x562de3
add eax, 0x800000
push eax
push 0xfffffffffffffff0
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_SetWindowLongA
mov edx, edi
mov eax, 0x563164
call fcn.0047a830
test al, al
je 0x562e1b
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_GetMenu
test eax, eax
je 0x562e1b
push 0xf
call sub.user32.dll_GetSystemMetrics
mov dword [esi + 0x32c], eax
jmp 0x562e23
xor eax, eax
mov dword [esi + 0x32c], eax
push 0x40
mov eax, dword [esi + 0x2f8]
call fcn.0044d748
mov edx, dword [esi + 0x334]
add edx, edx
add eax, edx
add eax, dword [esi + 0x32c]
push eax
mov eax, dword [esi + 0x2f8]
call fcn.0044d704
mov edx, dword [esi + 0x330]
add edx, edx
add eax, edx
push eax
xor eax, eax
sub eax, dword [esi + 0x334]
sub eax, dword [esi + 0x32c]
push eax
xor eax, eax
sub eax, dword [esi + 0x330]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_SetWindowPos
mov edx, edi
mov eax, 0x563178
call fcn.0047a830
test al, al
je 0x562f6e
mov ecx, esi
mov dl, 1
mov eax, dword [0x43ffd4]
call fcn.004416e8
mov ebx, eax
mov dword [esi + 0x338], ebx
mov eax, ebx
mov edx, esi
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [esi + 0x338]
xor edx, edx
call fcn.00441b1c
mov eax, dword [esi + 0x338]
xor edx, edx
call fcn.00441b38
push 9
call sub.user32.dll_GetSystemMetrics
mov edx, eax
mov eax, dword [esi + 0x338]
call fcn.0044d4e0
push 0xa
call sub.user32.dll_GetSystemMetrics
mov edx, eax
mov eax, dword [esi + 0x338]
call fcn.0044d4bc
mov eax, dword [esi + 0x2f8]
call fcn.0044d704
mov edx, eax
mov eax, dword [esi + 0x338]
sub edx, dword [eax + 0x48]
mov eax, dword [esi + 0x338]
call fcn.0044d470
mov eax, dword [esi + 0x2f8]
call fcn.0044d748
mov edx, eax
mov eax, dword [esi + 0x338]
sub edx, dword [eax + 0x4c]
mov eax, dword [esi + 0x338]
call fcn.0044d494
mov eax, dword [esi + 0x338]
call fcn.0044e240
jmp 0x562f6e
cmp byte [ebp + 0xc], 0
je 0x562f6e
cmp byte [ebp + 8], 0
je 0x562f6a
mov ebx, dword [0x5b1a54]
mov ebx, dword [ebx]
lea edx, [ebp - 0x1e0]
mov eax, 0x14b
call ebx
mov eax, dword [ebp - 0x1e0]
call fcn.005a0a38
mov byte [ebp - 9], 0
cmp byte [ebp - 9], 0
je 0x562fa9
mov edx, edi
mov eax, 0x56318c
call fcn.0047a830
test al, al
jne 0x562fa9
cmp dword [esi + 0x314], 0
ja 0x562f9c
cmp dword [esi + 0x318], 0
ja 0x562f9c
cmp byte [ebp + 0xc], 0
je 0x562fa9
mov eax, dword [esi + 0x2fc]
mov dl, 1
call fcn.0044169c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x562fcc
mov eax, dword [0x5b1eb0]
mov eax, dword [eax]
xor edx, edx
call fcn.0046babc
ret
cmp byte [ebp - 9], 0
jne 0x562ff7
cmp dword [ebp - 0x2c], 0
je 0x562ff7
cmp byte [ebp + 8], 0
je 0x562ff7
lea edx, [ebp - 0x1e4]
mov eax, dword [ebp - 0x2c]
call fcn.0040d75c
mov eax, dword [ebp - 0x1e4]
call fcn.005a0a38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x563029
lea eax, [ebp - 0x1e4]
mov edx, 0x17
call fcn.00405018
lea eax, [ebp - 0x28]
mov edx, 5
call fcn.00405018
ret