Function at 0x49ebf0
Capabilities:
Create process on windows
Resolve function by parsing pe exports
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x3e0
mov dword [esp + 8], edx
mov dword [esp + 0x90], ecx
mov word [esp + 0x1d8], 0x105
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x1c8], edi
mov dword [esp + 0x1cc], ebx
lea esi, [esp + 0x1c8]
push esi
call fcn.004a93e0
add esp, 4
test al, al
je 0x49ecda
lea eax, [esp + 0x188]
mov dword [esp + 0x17c], eax
mov dword [esp + 0x180], 0
mov dword [esp + 0x184], 0x40
mov word [esp + 0x1d8], 0x105
mov dword [esp + 0x1c8], edi
mov dword [esp + 0x1cc], ebx
push 0
push esi
call fcn.004a9310
add esp, 8
test eax, eax
je 0x49ecf6
mov word [esp + 0x1d8], 0x305
mov dword [esp + 0x1c8], edi
mov dword [esp + 0x1cc], ebx
mov dword [esp + 0x1d0], 0x5158d1
lea eax, [esp + 0x17c]
lea ecx, [esp + 0x1c8]
push eax
call fcn.00465530
mov edi, dword [esp + 0x17c]
mov esi, dword [esp + 0x180]
lea eax, [ebp + 8]
mov dword [eax + 4], esi
mov dword [eax], edi
jmp 0x49ecf8
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x49ee04
push str.program_not_executable
call fcn.00504a6e
xor eax, eax
jmp 0x49f9b6
mov esi, ebx
mov eax, dword [esp + 8]
mov dword [esp + 0xb4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xb8], eax
sub esp, 0xc
movsd xmm0, qword [esp + 0xc0]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x60]
mov dword [esp], eax
call fcn.004a1310
add esp, 0xc
movzx ebx, byte [esp + 0x60]
test bl, 1
jne 0x49ed42
call fcn.00504d20
jmp 0x49eddd
mov eax, dword [esp + 0x54]
test eax, eax
je 0x49eddd
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x30
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov esi, eax
mov dword [esp + 0x1d0], eax
mov dword [esp + 0x1c8], 0x31
mov dword [esp + 0x1cc], 0x28
movsd xmm0, qword [0x515976]
movsd qword [eax + 0x20], xmm0
movups xmm0, xmmword [0x515966]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [str.Unable_to_convert_command_line_to_UTF_16]
movups xmmword [eax], xmm0
mov byte [eax + 0x28], 0
lea eax, [esp + 0x1c8]
push eax
push dword [ebp + 0x2c]
call fcn.004a0f10
add esp, 8
push esi
call sub.libc.dll_operator_delete_void_
add esp, 4
mov dword [esp + 8], 0
lea esi, [esp + 0x188]
test bl, 1
je 0x49f98b
jmp 0x49f99e
mov dword [esp + 0x8c], esi
lea esi, [ebp + 0x14]
test byte [esp + 0x54], 1
jne 0x49ee0b
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x48], eax
movsd xmm0, qword [esp + 0x54]
movsd qword [esp + 0x40], xmm0
jmp 0x49ee1c
xor eax, eax
jmp 0x49f9b6
lea ecx, [esp + 0x40]
push dword [esp + 0x58]
push dword [esp + 0x60]
call fcn.004a1de0
lea ebx, [esp + 0x1c8]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
cmp byte [esi + 8], 0
mov dword [esp + 0x10], edi
je 0x49f29e
mov eax, dword [esi + 4]
test eax, eax
je 0x49f088
mov ecx, dword [esi]
lea eax, [ecx + eax*8]
mov dword [esp + 0x28], eax
jmp 0x49ee78
mov ecx, dword [esp + 0x14]
add ecx, 8
cmp ecx, dword [esp + 0x28]
lea ebx, [esp + 0x1c8]
je 0x49f122
mov eax, dword [ecx]
mov dword [esp + 0x14], ecx
mov ecx, dword [ecx + 4]
lea edx, [esp + 0x1d4]
mov dword [esp + 0x1c8], edx
mov dword [esp + 0x1cc], 0
mov dword [esp + 0x1d0], 0x104
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xac], eax
sub esp, 0xc
movsd xmm0, qword [esp + 0xb8]
movsd qword [esp], xmm0
mov dword [esp + 8], ebx
call fcn.004a8040
add esp, 0xc
test eax, eax
jne 0x49f091
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x1c8]
mov esi, dword [esp + 0x1cc]
lea edi, [edx + esi*2]
mov dword [esp + 0x100], eax
lea ecx, [esp + 0x18]
push esi
push edi
push edx
push eax
call fcn.004a1e60
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
cmp ebx, eax
jae 0x49ef20
mov word [ebx], 0
add ebx, 2
jmp 0x49f05c
mov ecx, dword [esp + 0x18]
mov edi, ebx
sub edi, ecx
mov esi, edi
sar esi, 1
cmp esi, 0xfffffffe
jle 0x49fbbc
lea edx, [esi + 1]
sub eax, ecx
cmp eax, edx
cmova edx, eax
cmp eax, 0x7ffffffe
mov eax, 0x7fffffff
cmovae edx, eax
test edx, edx
mov dword [esp + 0x24], edx
je 0x49ef70
js 0x49fbc5
lea eax, [edx + edx]
push eax
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
jmp 0x49ef72
xor eax, eax
lea edx, [eax + esi*2]
mov dword [esp + 0xc], esi
mov word [eax + esi*2], 0
mov esi, ebx
sub esi, ecx
mov dword [esp + 0x2c], eax
je 0x49efa0
add esi, 0xfffffffe
mov dword [esp + 0x3c], esi
cmp esi, 0x1e
jae 0x49efa9
mov edi, ebx
mov esi, dword [esp + 0xc]
jmp 0x49f020
mov esi, dword [esp + 0xc]
jmp 0x49f032
add edi, eax
mov eax, ebx
sub eax, edi
cmp eax, 0x20
mov esi, dword [esp + 0xc]
jae 0x49efbc
mov edi, ebx
jmp 0x49f020
mov eax, dword [esp + 0x3c]
shr eax, 1
inc eax
mov dword [esp + 0x3c], eax
and eax, 0xfffffff0
mov dword [esp + 0x50], eax
add eax, eax
sub edx, eax
mov edi, ebx
sub edi, eax
mov eax, dword [esp + 0x2c]
lea eax, [eax + esi*2]
add eax, 0xfffffff0
mov esi, dword [esp + 0x50]
neg esi
mov dword [esp + 8], esi
xor esi, esi
nop dword [eax]
movups xmm0, xmmword [ebx + esi*2 - 0x20]
movups xmm1, xmmword [ebx + esi*2 - 0x10]
movups xmmword [eax + esi*2], xmm1
movups xmmword [eax + esi*2 - 0x10], xmm0
add esi, 0xfffffff0
cmp dword [esp + 8], esi
jne 0x49eff0
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x3c], eax
mov esi, dword [esp + 0xc]
je 0x49f032
nop word [eax + eax]
movzx eax, word [edi - 2]
add edi, 0xfffffffe
mov word [edx - 2], ax
add edx, 0xfffffffe
cmp edi, ecx
jne 0x49f020
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
lea eax, [edi + eax*2]
lea ebx, [edi + esi*2]
add ebx, 2
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x49f05c
push ecx
call sub.libc.dll_operator_delete_void_
add esp, 4
mov edi, dword [esp + 0x10]
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x1c8]
lea ecx, [esp + 0x1d4]
cmp eax, ecx
je 0x49ee60
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x49ee60
xor esi, esi
xor eax, eax
jmp 0x49f13b
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x38
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov esi, eax
mov dword [esp + 0x108], eax
mov dword [esp + 0x100], 0x39
mov dword [esp + 0x104], 0x30
movups xmm0, xmmword [0x51599f]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [0x51598f]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [str.Unable_to_convert_environment_variable_to_UTF_16]
movups xmmword [eax], xmm0
mov byte [eax + 0x30], 0
lea eax, [esp + 0x100]
push eax
push dword [ebp + 0x2c]
call fcn.004a0f10
add esp, 8
push esi
call sub.libc.dll_operator_delete_void_
add esp, 4
mov eax, dword [esp + 0x1c8]
lea ecx, [esp + 0x1d4]
cmp eax, ecx
je 0x49f635
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x49f632
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
cmp esi, eax
jae 0x49f13b
mov word [esi], 0
add esi, 2
jmp 0x49f29a
mov ecx, dword [esp + 0x18]
mov ebx, esi
sub esi, ecx
mov edx, esi
sar edx, 1
cmp edx, 0xfffffffe
jle 0x49fbbc
mov edi, edx
mov dword [esp + 8], edx
inc edx
sub eax, ecx
cmp eax, edx
cmova edx, eax
cmp eax, 0x7ffffffe
mov edi, 0x7fffffff
cmovb edi, edx
test edi, edi
mov dword [esp + 0xc], esi
je 0x49f18f
js 0x49fbc5
lea eax, [edi + edi]
push eax
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
jmp 0x49f193
xor eax, eax
mov esi, ebx
mov edx, dword [esp + 8]
lea ebx, [eax + edx*2]
lea edi, [eax + edi*2]
mov dword [esp + 0x2c], edi
mov word [eax + edx*2], 0
lea edi, [eax + edx*2]
add edi, 2
mov dword [esp + 0x14], edi
mov edx, esi
sub edx, ecx
je 0x49f1d0
mov dword [esp + 0x28], esi
add edx, 0xfffffffe
cmp edx, 0x1e
mov edi, dword [esp + 0x10]
jae 0x49f1d9
mov esi, dword [esp + 0x28]
jmp 0x49f260
mov edi, dword [esp + 0x10]
jmp 0x49f272
mov dword [esp + 0x24], edx
mov esi, dword [esp + 0xc]
add esi, eax
mov edi, dword [esp + 0x28]
mov edx, edi
sub edx, esi
cmp edx, 0x20
jae 0x49f1f8
mov esi, edi
mov edi, dword [esp + 0x10]
jmp 0x49f260
mov edx, dword [esp + 0x24]
shr edx, 1
inc edx
mov dword [esp + 0x24], edx
and edx, 0xfffffff0
mov dword [esp + 0xc], edx
add edx, edx
sub ebx, edx
mov esi, edi
sub esi, edx
mov edx, dword [esp + 8]
lea eax, [eax + edx*2]
add eax, 0xfffffff0
mov edx, dword [esp + 0xc]
neg edx
mov dword [esp + 8], edx
xor edx, edx
nop dword [eax + eax]
movups xmm0, xmmword [edi + edx*2 - 0x20]
movups xmm1, xmmword [edi + edx*2 - 0x10]
movups xmmword [eax + edx*2], xmm1
movups xmmword [eax + edx*2 - 0x10], xmm0
add edx, 0xfffffff0
cmp dword [esp + 8], edx
jne 0x49f230
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x24], eax
mov edi, dword [esp + 0x10]
je 0x49f272
nop word [eax + eax]
movzx eax, word [esi - 2]
add esi, 0xfffffffe
mov word [ebx - 2], ax
add ebx, 0xfffffffe
cmp esi, ecx
jne 0x49f260
mov dword [esp + 0x18], ebx
mov esi, dword [esp + 0x14]
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x49f293
push ecx
call sub.libc.dll_operator_delete_void_
add esp, 4
lea ebx, [esp + 0x1c8]
mov dword [esp + 0x1c], esi
mov eax, dword [ebp + 0x24]
xorps xmm1, xmm1
movups xmmword [esp + 0xe0], xmm1
movups xmmword [esp + 0xd0], xmm1
movups xmmword [esp + 0xc0], xmm1
movaps xmm0, xmmword [0x5158a0]
movups xmmword [esp + 0xf0], xmm0
mov dword [esp + 0xbc], 0x44
test eax, eax
je 0x49f3bf
mov esi, dword [ebp + 0x20]
mov dword [esp + 0xe8], 0x100
sub esp, 0xc
mov eax, dword [esi + 8]
mov dword [esp + 8], eax
movsd xmm0, qword [esi]
movsd qword [esp], xmm0
xor ecx, ecx
mov edi, dword [ebp + 0x2c]
mov edx, edi
call fcn.004a1a50
add esp, 0xc
mov dword [esp + 0xf4], eax
cmp eax, 0xffffffff
je 0x49f4cf
sub esp, 0xc
mov eax, dword [esi + 0x14]
mov dword [esp + 8], eax
movsd xmm0, qword [esi + 0xc]
movsd qword [esp], xmm0
mov ecx, 1
mov edx, edi
call fcn.004a1a50
add esp, 0xc
mov dword [esp + 0xf8], eax
cmp eax, 0xffffffff
je 0x49f5d1
cmp byte [esi + 0x14], 0
je 0x49f384
cmp byte [esi + 0x20], 0
je 0x49f384
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x1c]
jne 0x49f384
test eax, eax
je 0x49f9be
push eax
push dword [esi + 0x18]
push dword [esi + 0xc]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
je 0x49f9be
sub esp, 0xc
mov eax, dword [esi + 0x20]
mov dword [esp + 8], eax
movsd xmm0, qword [esi + 0x18]
movsd qword [esp], xmm0
mov ecx, 2
mov edx, dword [ebp + 0x2c]
call fcn.004a1a50
add esp, 0xc
mov dword [esp + 0xfc], eax
cmp eax, 0xffffffff
mov edi, dword [esp + 0x10]
xorps xmm1, xmm1
je 0x49f649
movaps xmmword [esp + 0x70], xmm1
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 1
call esi
add esp, 4
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
push 2
call esi
add esp, 4
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
lea eax, [esp + 0x1d4]
mov dword [esp + 0x1c8], eax
mov dword [esp + 0x1cc], 0
mov dword [esp + 0x1d0], 0x104
mov word [esp + 0x110], 0x105
mov dword [esp + 0x100], edi
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x104], eax
lea edi, [esp + 0x100]
push 0x104
push ebx
push edi
call fcn.004a7d20
add esp, 0xc
test eax, eax
je 0x49f512
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x30
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov esi, eax
mov dword [esp + 0x108], eax
mov dword [esp + 0x100], 0x31
mov dword [esp + 0x104], 0x2c
movups xmm0, xmmword [0x515a28]
movups xmmword [eax + 0x1c], xmm0
movups xmm0, xmmword [0x515a1c]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [str.Unable_to_convert_application_name_to_UTF_16]
movups xmmword [eax], xmm0
mov byte [eax + 0x2c], 0
push edi
push dword [ebp + 0x2c]
call fcn.004a0f10
add esp, 8
push esi
call sub.libc.dll_operator_delete_void_
add esp, 4
mov dword [esp + 8], 0
lea esi, [esp + 0x188]
lea edi, [esp + 0x1d4]
jmp 0x49f945
push 0x18
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov esi, eax
mov dword [esp + 0x1d0], eax
mov dword [esp + 0x1c8], 0x19
mov dword [esp + 0x1cc], 0x14
movups xmm0, xmmword [str.cant_redirect_stdin]
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0x6e696474
mov byte [eax + 0x14], 0
jmp 0x49f622
cmp dword [ebp + 0x30], 0
setne byte [esp + 0x14]
movzx ecx, byte [esp + 0x40]
mov eax, ecx
shr eax, 1
and cl, 1
mov edx, dword [esp + 0x44]
mov esi, edx
cmove esi, eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 8], 0
mov edi, esi
inc edi
je 0x49f59d
js 0x49fbca
lea eax, [edi + edi]
push eax
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x64], eax
lea edi, [eax + edi*2]
mov dword [esp + 0x6c], edi
lea ecx, [esi*2 + 2]
push ecx
push 0
mov dword [esp + 0x10], eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov dword [esp + 0x68], edi
movzx eax, byte [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ecx, eax
and cl, 1
shr eax, 1
movzx ebx, byte [esp + 0x14]
mov esi, edx
xor edx, edx
mov dl, bl
lea edi, [edx*4 + 0x400]
test cl, cl
cmovne eax, esi
test eax, eax
mov esi, dword [esp + 8]
je 0x49f69d
test cl, cl
je 0x49f68c
mov ecx, dword [esp + 0x48]
jmp 0x49f690
push dword [esp + 0xf4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x18
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov esi, eax
mov dword [esp + 0x1d0], eax
mov dword [esp + 0x1c8], 0x19
mov dword [esp + 0x1cc], 0x15
movsd xmm0, qword [0x5159d2]
movsd qword [eax + 0xd], xmm0
movups xmm0, xmmword [str.cant_redirect_stdout]
movups xmmword [eax], xmm0
mov byte [eax + 0x15], 0
push ebx
push edi
call fcn.004a0f10
add esp, 8
push esi
call sub.libc.dll_operator_delete_void_
add esp, 4
mov dword [esp + 8], 0
lea esi, [esp + 0x188]
jmp 0x49f959
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0xf4]
call esi
push dword [esp + 0xf8]
call esi
mov ecx, ebx
push str.cant_redirect_stderr
call fcn.0041b3b0
push ebx
push dword [ebp + 0x2c]
call fcn.004a0f10
add esp, 8
test byte [esp + 0x1c8], 1
je 0x49f635
push dword [esp + 0x1d0]
jmp 0x49f62d
lea ecx, [esp + 0x42]
add eax, eax
push eax
push ecx
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
add esp, 0xc
mov eax, dword [esp + 0x18]
xor ecx, ecx
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
cmove eax, ecx
lea ecx, [esp + 0x70]
lea edx, [esp + 0xbc]
push ecx
push edx
push 0
push eax
push edi
push 1
push 0
push 0
push esi
push dword [esp + 0x1ec]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0xf4]
call edi
push dword [esp + 0xf8]
call edi
push dword [esp + 0xfc]
call edi
test esi, esi
je 0x49f801
mov esi, dword [ebp + 0x28]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x90]
mov dword [ecx], eax
mov eax, dword [esp + 0x70]
mov dword [ecx + 4], eax
mov edi, dword [esp + 0x74]
test esi, esi
je 0x49f7cc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov ebx, eax
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xffffffff
je 0x49f883
xorps xmm0, xmm0
movaps xmmword [esp + 0x110], xmm0
movaps xmmword [esp + 0x160], xmm0
movaps xmmword [esp + 0x150], xmm0
movaps xmmword [esp + 0x140], xmm0
movaps xmmword [esp + 0x130], xmm0
movaps xmmword [esp + 0x120], xmm0
movaps xmmword [esp + 0x100], xmm0
mov dword [esp + 0x110], 0x100
shl esi, 0x14
mov dword [esp + 0x160], esi
push 0x70
lea eax, [esp + 0x104]
push eax
push 9
push ebx
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
je 0x49f883
push dword [esp + 0x70]
push ebx
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x49f883
mov dword [esp + 0x14], ebx
mov al, 1
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x49f7f1
mov eax, dword [eax]
push dword [eax]
push dword [esp + 0x74]
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
push dword [esp + 0x74]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea esi, [esp + 0x188]
mov ebx, dword [esp + 0x14]
jmp 0x49f915
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x20
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x9c], eax
mov dword [esp + 0x94], 0x21
mov dword [esp + 0x98], 0x1a
movups xmm0, xmmword [0x515a43]
movups xmmword [eax + 0xa], xmm0
movups xmm0, xmmword [str.Couldnt_execute_program_]
movups xmmword [eax], xmm0
mov byte [eax + 0x1a], 0
lea eax, [ebp + 8]
mov edi, dword [eax]
test edi, edi
je 0x49fa22
mov ebx, dword [eax + 4]
cmp ebx, 0xfffffff8
jae 0x49fbd3
cmp ebx, 0xb
jae 0x49fa3b
mov eax, ebx
add al, bl
mov byte [esp + 0x30], al
lea esi, [esp + 0x31]
test ebx, ebx
jne 0x49fa67
jmp 0x49fa72
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x20
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov esi, eax
mov dword [esp + 0x108], eax
mov dword [esp + 0x100], 0x21
mov dword [esp + 0x104], 0x1a
movups xmm0, xmmword [0x515a60]
movups xmmword [eax + 0xa], xmm0
movups xmm0, xmmword [str.Unable_to_set_memory_limit]
movups xmmword [eax], xmm0
mov byte [eax + 0x1a], 0
lea eax, [esp + 0x100]
push eax
push dword [ebp + 0x2c]
call fcn.004a0f10
add esp, 8
push esi
call sub.libc.dll_operator_delete_void_
add esp, 4
push 1
push dword [esp + 0x74]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xffffffffffffffff
push dword [esp + 0x74]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 8], 0
lea esi, [esp + 0x188]
cmp ebx, 0xffffffff
je 0x49f921
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x49f92d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esp + 0x1d4]
mov eax, dword [esp + 0x64]
test eax, eax
je 0x49f945
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
mov eax, dword [esp + 0x1c8]
cmp eax, edi
je 0x49f959
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49f96e
mov dword [esp + 0x1c], eax
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x40], 1
je 0x49f981
push dword [esp + 0x48]
call sub.libc.dll_operator_delete_void_
add esp, 4
movzx ebx, byte [esp + 0x60]
test bl, 1
jne 0x49f99e
test byte [esp + 0x54], 1
je 0x49f99e
push dword [esp + 0x5c]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov eax, dword [esp + 0x17c]
cmp eax, esi
je 0x49f9b2
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov eax, dword [esp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call ebx
mov esi, eax
mov edi, dword [esp + 0xf8]
call ebx
lea ebx, [esp + 0x1c8]
push 2
push 1
push 0
lea ecx, [esp + 0x108]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
mov edi, dword [esp + 0x10]
xorps xmm1, xmm1
jne 0x49f3bf
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0xf4]
call esi
push dword [esp + 0xf8]
call esi
mov ecx, ebx
push str.cant_dup_stderr_to_stdout
jmp 0x49f668
xorps xmm0, xmm0
movsd qword [esp + 0x30], xmm0
mov dword [esp + 0x38], 0
xor ecx, ecx
xor eax, eax
xor edx, edx
jmp 0x49fa83
mov dword [esp + 8], ebx
mov ebx, dword [esp + 8]
or ebx, 7
lea eax, [ebx + 1]
push eax
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov esi, eax
mov dword [esp + 0x38], eax
add ebx, 2
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 8]
mov dword [esp + 0x34], ebx
push ebx
push edi
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
add esp, 0xc
mov byte [esi + ebx], 0
movzx edx, byte [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ebx, edx
shr bl, 1
test dl, 1
lea edx, [esp + 0x31]
cmovne edx, ecx
movzx esi, bl
cmovne esi, eax
lea ecx, [esp + 0x94]
push esi
push edx
call fcn.00504a68
mov ecx, dword [eax + 8]
mov dword [esp + 0xa8], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0xa0], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
lea ecx, [esp + 0xa0]
push 0x515a54
call fcn.00504a62
mov ecx, dword [eax + 8]
mov dword [esp + 0x108], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x100], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
lea eax, [esp + 0x100]
push eax
push dword [ebp + 0x2c]
call fcn.004a0f10
add esp, 8
test byte [esp + 0x100], 1
lea edi, [esp + 0x1d4]
jne 0x49fb6e
test byte [esp + 0xa0], 1
lea esi, [esp + 0x188]
jne 0x49fb8e
test byte [esp + 0x30], 1
jne 0x49fba4
test byte [esp + 0x94], 1
je 0x49fb55
push dword [esp + 0x9c]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov dword [esp + 8], 0
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x49f93c
jmp 0x49f945
push dword [esp + 0x108]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0xa0], 1
lea esi, [esp + 0x188]
je 0x49fb35
push dword [esp + 0xa8]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x30], 1
je 0x49fb3c
push dword [esp + 0x38]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x94], 1
jne 0x49fb46
jmp 0x49fb55
lea ecx, [esp + 0x18]
call fcn.004a2170
call fcn.00402e50
lea ecx, [esp + 0x64]
call fcn.004a2170
lea ecx, [esp + 0x30]
call fcn.00401af0
int3