Function at 0x439080
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x100]
push ebx
mov eax, esi
sub esp, 0x16c
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004380a0
mov ebx, dword [edi]
cmp ebx, dword [edi + 4]
je 0x43912e
lea esi, [esi]
cmp dword [ebp - 0xfc], 0x3fffffff
je 0x43990f
mov dword [esp + 4], 1
mov ecx, esi
mov dword [esp], str._.EXE
call fcn.004f4db0
sub esp, 8
mov edx, ebx
lea eax, [ebp - 0x88]
call fcn.004380a0
mov eax, dword [ebp - 0x84]
mov ecx, esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call fcn.004f4db0
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x80]
sub esp, 8
cmp eax, ecx
je 0x4394a0
mov ecx, dword [ebp - 0x80]
mov dword [esp], eax
add ebx, 0x18
lea edx, [ecx + 1]
mov dword [esp + 4], edx
call fcn.00513b70
cmp dword [edi + 4], ebx
jne 0x4390b0
lea eax, [ebp - 0xe8]
mov dword [esp], esi
lea edi, [ebp - 0xe0]
xor ecx, ecx
mov dword [esp + 4], eax
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0xe4], 0
mov word [ebp - 0xe0], cx
call fcn.0043db80
lea eax, [ebp - 0xc8]
xor edx, edx
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp + 8]
mov word [ebp - 0xc8], dx
cmp dword [eax + 4], 0x104
ja 0x4394b8
mov dword [ebp - 0x13c], 0
lea eax, [ebp - 0x88]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor eax, eax
mov dword [ebp - 0x80], 0
sub esp, 4
mov dword [ebp - 0x88], 0x44
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x5c], pe_nt_image_headers32
mov word [ebp - 0x56], ax
mov dword [ebp - 0x54], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x439780
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
call fcn.0044ba40
lea edx, [ebp - 0x50]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
mov ecx, dword [ebp + 0x14]
mov dword [esp], 1
call fcn.0044b7b0
sub esp, 4
mov edi, 1
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x439810
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
call fcn.0044ba50
lea edx, [ebp - 0x4c]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
mov edi, 1
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4397e0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
call fcn.0044ba50
lea edx, [ebp - 0x48]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov esi, dword [ebp + 0x18]
sub esp, 0x1c
test esi, esi
je 0x439301
mov dword [esp], 2
mov ecx, dword [ebp + 0x18]
call fcn.0044b7b0
sub esp, 4
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
je 0x43931a
mov dword [esp], 2
mov ecx, dword [ebp + 0x1c]
call fcn.0044b7b0
sub esp, 4
or dword [ebp - 0x5c], 0x100
mov dword [ebp - 0x140], 1
lea eax, [ebp - 0xb8]
lea edi, [ebp - 0xb0]
xor ecx, ecx
mov dword [ebp - 0xb4], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xb8], edi
mov dword [esp], eax
mov word [ebp - 0xb0], cx
call fcn.0043db80
mov dword [ebp - 0x138], 0
mov edx, dword [ebp - 0xb4]
test edx, edx
je 0x43937f
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp + 0x20]
mov edi, dword [eax + 0x14]
test edi, edi
je 0x439580
mov dword [ebp - 0x11c], 0
mov ebx, dword [eax + 0xc]
add eax, 4
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x130], eax
cmp eax, ebx
je 0x439906
xor ecx, ecx
xor edi, edi
xor esi, esi
jmp 0x439430
jae 0x4393e4
mov edx, dword [ebp - 0x12c]
add edx, ecx
cmp edx, edi
je 0x4393e4
mov dword [ebp - 0x118], edx
test eax, eax
jne 0x439476
add esi, eax
mov byte [ecx + esi], 0x3d
mov edx, dword [ebx + 0x2c]
lea edi, [esi + 1]
mov eax, dword [ebp - 0x11c]
test edx, edx
jne 0x439550
mov byte [eax + esi + 1], 0
add esi, 2
mov dword [esp], ebx
call fcn.0050d7f0
mov ebx, eax
cmp dword [ebp - 0x130], eax
je 0x439748
mov edi, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ebx + 0x14]
lea edx, [esi + eax + 2]
add edx, dword [ebx + 0x2c]
mov dword [ebp - 0x12c], edx
mov edx, edi
sub edx, ecx
cmp dword [ebp - 0x12c], edx
jbe 0x4393d0
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x11c]
sub eax, edx
mov dword [esp], eax
call fcn.004f1660
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebp - 0x11c]
sub esp, 4
test eax, eax
je 0x4393ec
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x10]
add ecx, esi
mov dword [esp], ecx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memmove
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebp - 0x11c]
jmp 0x4393ec
add ebx, 0x18
cmp dword [edi + 4], ebx
jne 0x4390b0
jmp 0x43912e
mov dword [esp], eax
lea edi, [ebp - 0x88]
mov ecx, edi
mov dword [ebp - 0x134], edi
call fcn.00446bd0
sub esp, 4
cmp byte [ebp - 0x1c], 0
je 0x439840
mov eax, dword [ebp + 8]
lea ebx, [ebp - 0xd0]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0043db80
mov dword [esp], edi
lea ecx, [ebp - 0xa0]
call fcn.00444f80
mov eax, dword [ebp - 0xa0]
lea edx, [ebp - 0x98]
mov esi, dword [ebp - 0x9c]
sub esp, 4
cmp eax, edx
je 0x43952c
mov edi, dword [ebp - 0x98]
mov dword [esp], eax
lea edx, [edi + 1]
mov dword [esp + 4], edx
call fcn.00513b70
test esi, esi
je 0x4398ac
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x134]
call fcn.004444f0
jmp 0x4391a4
mov dword [esp + 8], edx
mov edx, dword [ebx + 0x28]
add eax, edi
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_memmove
mov eax, dword [ebp - 0x11c]
add edi, dword [ebx + 0x2c]
lea esi, [edi + 1]
mov byte [eax + edi], 0
jmp 0x43940e
mov dword [ebp - 0x144], 0
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test eax, eax
mov ecx, dword [ebp - 0x134]
mov ebx, dword [ebp - 0x138]
lea edx, [ebp - 0x110]
sete al
mov dword [esp + 0x24], edx
movzx eax, al
mov dword [esp + 0x20], ecx
shl eax, 0x1b
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x140]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xe8]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x13c]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
mov eax, dword [ebp - 0x50]
sub esp, 0x28
test eax, eax
je 0x43960e
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x439621
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x439634
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
test ebx, ebx
je 0x520bad
mov eax, dword [ebp - 0x10c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [esp], 0x10
call fcn.00513bb0
mov ecx, dword [ebp - 0x110]
mov ebx, eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x130], ecx
mov ecx, ebx
mov dword [ebp - 0x12c], eax
call fcn.0043a0b0
mov ecx, dword [ebp - 0x130]
mov eax, dword [ebp - 0x12c]
mov dword [ebx], 0x54c23c
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
test esi, esi
je 0x4396a3
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00513b70
mov eax, dword [ebp - 0xb8]
lea edi, [ebp - 0xb0]
cmp eax, edi
je 0x4396c9
mov edx, dword [ebp - 0xb0]
mov dword [esp], eax
lea edx, [edx + edx + 2]
mov dword [esp + 4], edx
call fcn.00513b70
mov eax, dword [ebp - 0xd0]
lea edi, [ebp - 0xc8]
cmp eax, edi
je 0x4396ef
mov edx, dword [ebp - 0xc8]
mov dword [esp], eax
lea edx, [edx + edx + 2]
mov dword [esp + 4], edx
call fcn.00513b70
mov eax, dword [ebp - 0xe8]
lea edi, [ebp - 0xe0]
cmp eax, edi
je 0x439715
mov edx, dword [ebp - 0xe0]
mov dword [esp], eax
lea edx, [edx + edx + 2]
mov dword [esp + 4], edx
call fcn.00513b70
mov eax, dword [ebp - 0x100]
lea edx, [ebp - 0xf8]
cmp eax, edx
je 0x43973a
mov edi, dword [ebp - 0xf8]
mov dword [esp], eax
lea edx, [edi + 1]
mov dword [esp + 4], edx
call fcn.00513b70
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x118]
add edi, 2
sub eax, edx
cmp edi, eax
ja 0x4398e8
mov byte [edx + esi], 0
mov eax, dword [ebp - 0x114]
mov esi, dword [ebp - 0x11c]
mov edi, eax
mov dword [ebp - 0x144], eax
sub edi, esi
jmp 0x43958c
mov dword [esp], 0xfffffff6
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
call esi
sub esp, 4
test eax, eax
je 0x439890
mov dword [esp], 0xfffffff6
call esi
sub esp, 4
lea edx, [ebp - 0x50]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
jmp 0x43924e
mov dword [esp], 0xfffffff4
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
call esi
sub esp, 4
test eax, eax
je 0x439850
mov dword [esp], 0xfffffff4
call esi
sub esp, 4
jmp 0x4392b5
mov dword [esp], 0xfffffff5
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
call esi
sub esp, 4
test eax, eax
je 0x4398a0
mov dword [esp], 0xfffffff5
call esi
sub esp, 4
jmp 0x439268
mov dword [ebp - 0x13c], 0
jmp 0x439540
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x48], 0
test eax, eax
je 0x439870
mov dword [esp], 2
mov ecx, dword [ebp + 0x18]
call fcn.0044b7b0
sub esp, 4
mov eax, edi
test al, al
jne 0x43931a
mov dword [ebp - 0x140], 0
jmp 0x43932b
mov dword [ebp - 0x50], 0
xor edi, edi
jmp 0x439253
mov dword [ebp - 0x4c], 0
jmp 0x4392a0
mov dword [esp], 0x53bdee
call sub.msvcrt.dll_wcslen
mov edx, 0x1fffffff
sub edx, dword [ebp - 0xcc]
cmp eax, edx
ja 0x43991b
mov dword [esp + 4], eax
mov ecx, ebx
mov dword [esp], 0x53bdee
call fcn.004f8a30
sub esp, 8
jmp 0x439534
sub edi, eax
mov dword [esp], edi
lea ecx, [ebp - 0x11c]
call fcn.004f1660
mov edx, dword [ebp - 0x11c]
sub esp, 4
jmp 0x439761
mov edi, 1
xor esi, esi
jmp 0x4398ea
mov dword [esp], 0x53bdd7
call fcn.00528c60
mov dword [esp], 0x53bdd7
call fcn.00528c60
mov edi, eax
jmp 0x520ade
mov eax, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x114]
sub edx, eax
test eax, eax
je 0x520afc
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00513b70
mov edx, dword [ebp - 0xb8]
lea eax, [ebp - 0xb0]
cmp edx, eax
je 0x520b23
mov eax, dword [ebp - 0xb0]
mov dword [esp], edx
add eax, 1
add eax, eax
mov dword [esp + 4], eax
call fcn.00513b70
mov ebx, edi
jmp 0x520b32
mov edx, dword [ebp - 0xd0]
lea eax, [ebp - 0xc8]
cmp edx, eax
je 0x520b59
mov eax, dword [ebp - 0xc8]
mov dword [esp], edx
add eax, 1
add eax, eax
mov dword [esp + 4], eax
call fcn.00513b70
mov edx, dword [ebp - 0xe8]
lea eax, [ebp - 0xe0]
cmp edx, eax
je 0x520b80
mov eax, dword [ebp - 0xe0]
mov dword [esp], edx
add eax, 1
add eax, eax
mov dword [esp + 4], eax
call fcn.00513b70
mov edx, dword [ebp - 0x100]
lea eax, [ebp - 0xf8]
cmp edx, eax
je 0x520ba5
mov eax, dword [ebp - 0xf8]
mov dword [esp], edx
add eax, 1
mov dword [esp + 4], eax
call fcn.00513b70
mov dword [esp], ebx
call fcn.00461820
mov dword [esp], 0x24
lea ebx, [ebp - 0xa0]
call fcn.00513c50
mov dword [esp], str.Cannot_launch_process
mov ecx, ebx
mov edi, eax
call fcn.00437fb0
push eax
mov eax, dword [ebp + 8]
mov ecx, edi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00412420
mov edx, dword [ebp - 0xa0]
lea eax, [ebp - 0x98]
sub esp, 0xc
cmp edx, eax
je 0x520c11
mov eax, dword [ebp - 0x98]
mov dword [esp], edx
add eax, 1
mov dword [esp + 4], eax
call fcn.00513b70
mov dword [esp + 8], 0x40c850
mov dword [esp + 4], 0x5468b4
mov dword [esp], edi
call fcn.005142c0
mov edi, eax
jmp 0x520c9c
mov eax, dword [ebp - 0x144]
sub eax, esi
test esi, esi
je 0x520afc
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00513b70
jmp 0x520afc