Function at 0x511c70
Capabilities:
Access peb ldr_data
Create pipe
Create process on windows
Create process suspended
Get process heap flags
Get process heap force flags
Read file on windows
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x22c
mov dword [ebp - 0x1f4], eax
mov dword [ebp - 0x1f0], edx
mov dword [ebp - 0x1ec], 0
cmp eax, 0xff
je 0x511e0c
mov edx, dword [0x850118]
test edx, edx
je 0x512aa8
mov dword [ebp - 0x1c8], 0
mov eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x1cc], 0xc
mov dword [ebp - 0x1c4], 1
test eax, eax
je 0x511e18
lea eax, [ebp - 0x1e8]
mov dword [esp + 0xc], 0x18
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1b0]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
call dword [0x850148]
sub esp, 0x14
mov ebx, eax
mov eax, 0x11b1
call fcn.0050dc60
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Got_unexpected_status__lx._n
mov dword [esp], eax
call fcn.0050e8b0
mov eax, dword [ebp - 0x19c]
lea edx, [ebp - 0x1e0]
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x1d4]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
mov dword [esp + 8], 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
mov ebx, eax
mov eax, 0x11b6
call fcn.0050dc60
mov eax, dword fs:[0x18]
cmp dword [ebp - 0x1f4], 2
mov eax, dword [eax + 0x34]
jne 0x511ff0
test ebx, ebx
je 0x511ff0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 2
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Got_unexpected_ret__x__level__u__GetLastError____lu._n
mov dword [esp], 1
call fcn.0050e8b0
mov eax, 0x11bd
call fcn.0050dc60
mov eax, dword [ebp - 0x1d0]
mov dword [esp + 0xc], eax
mov esi, dword [ebp - 0x208]
mov dword [esp + 4], str.Got_parent_id__lu__parent_data.parent_id__lu._n
cmp eax, esi
mov dword [esp + 8], esi
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x1cc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x1ec]
mov dword [esp + 4], eax
lea eax, [ebp - 0x1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreatePipe]
sub esp, 0x10
mov esi, eax
mov eax, 0x11a9
call fcn.0050dc60
mov ebx, dword fs:[0x18]
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], esi
mov dword [esp], esi
lea esi, [ebp - 0x198]
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x5efc10
call fcn.0050e8b0
mov eax, dword [ebx + 0x20]
mov dword [esp + 4], 1
mov dword [esp], 0x480
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_OpenProcess]
lea edx, [ebp - 0x194]
mov ecx, 0x11
mov dword [ebp - 0x198], 0x48
mov dword [ebp - 0x1d4], eax
mov eax, dword [ebx + 0x20]
mov edi, edx
sub esp, 0xc
lea edx, [ebp - 0x150]
mov dword [ebp - 0x1d0], eax
mov eax, dword [ebp - 0x1f4]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x1f0]
mov dword [esp], edx
lea edi, [ebp - 0x1c0]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x84fee0
mov dword [esp + 4], str.__s__process_parent__u__p
call fcn.0050d7a0
lea edx, [ebp - 0x150]
mov dword [esp + 0x24], edi
mov dword [esp + 4], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
sub esp, 0x28
mov esi, eax
mov eax, 0x1221
call fcn.0050dc60
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], esi
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x5efc10
call fcn.0050e8b0
lea eax, [ebp - 0x1e0]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1d4]
mov dword [esp + 8], 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1ec]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov eax, edi
sub esp, 0x14
call fcn.0050e290
mov eax, dword [ebp - 0x1f0]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x1ec]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x1d4]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebp - 0x1f4], 1
sete byte [ebp - 0x201]
movzx ecx, byte [ebp - 0x201]
test ebx, ebx
jne 0x512a70
test cl, cl
je 0x512a70
mov edx, dword fs:[0x18]
cmp dword [edx + 0x34], 6
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Got_unexpected_ret__x__level__u__GetLastError____lu._n
je 0x512b48
mov dword [esp], 0
call fcn.0050e8b0
lea edx, [ebp - 0x194]
xor eax, eax
mov ecx, 0x11
mov dword [ebp - 0x198], 0x48
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1d8]
mov dword [esp], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 1
call dword [0x850118]
sub esp, 0x10
mov ebx, eax
mov eax, 0x11cb
call fcn.0050dc60
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
test ebx, ebx
je 0x512ad0
xor eax, eax
mov dword [esp + 0xc], edx
lea esi, [ebp - 0x1d8]
lea edi, [ebp - 0x150]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0x5efc10
mov ebx, dword fs:[0x18]
call fcn.0050e8b0
mov eax, dword [ebp - 0x1f0]
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], 0x84fee0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x150]
mov dword [esp + 4], str.__s__process_parent__u__p
mov dword [esp], eax
call fcn.0050d7a0
mov eax, dword [ebp - 0x1d8]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x1fc], eax
call eax
sub esp, 0xc
mov dword [ebp - 0x154], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [0x850118]
sub esp, 0x10
mov esi, eax
mov eax, 0x11d9
call fcn.0050dc60
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], esi
mov dword [esp], esi
lea esi, [ebp - 0x1dc]
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x5efc10
call fcn.0050e8b0
mov ecx, dword [sym.imp.kernel32.dll_OpenProcess]
mov eax, dword [ebx + 0x20]
mov dword [esp + 4], 1
mov dword [esp], pe_nt_image_headers32
mov dword [esp + 8], eax
mov dword [ebp - 0x20c], ecx
call ecx
sub esp, 0xc
mov dword [ebp - 0x1dc], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov dword [esp + 8], 0x20000
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x154]
mov dword [esp], eax
call dword [0x850114]
sub esp, 0x1c
mov esi, eax
mov eax, 0x11dd
call fcn.0050dc60
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], esi
mov dword [esp], esi
lea esi, [ebp - 0x1c0]
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x5efc10
call fcn.0050e8b0
mov ecx, dword [sym.imp.kernel32.dll_CreateProcessA]
lea edx, [ebp - 0x198]
mov dword [esp + 4], edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80000
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [ebp - 0x200], ecx
call ecx
sub esp, 0x28
mov edi, eax
mov eax, 0x11e0
call fcn.0050dc60
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], edi
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x5efc10
call fcn.0050e8b0
mov eax, esi
call fcn.0050e290
mov edx, dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x1dc]
mov dword [esp], eax
mov dword [ebp - 0x210], edx
call edx
mov eax, dword [ebp - 0x154]
sub esp, 4
mov dword [esp], eax
call dword [0x850110]
mov eax, dword [ebp - 0x154]
mov edx, dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov dword [ebp - 0x1f8], edx
call edx
mov eax, dword [ebp - 0x1d8]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x1fc]
call eax
lea edx, [ebp - 0x1d8]
sub esp, 0xc
mov dword [ebp - 0x154], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [0x850118]
sub esp, 0x10
mov edi, eax
mov eax, 0x11e8
call fcn.0050dc60
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], edi
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x5efc10
call fcn.0050e8b0
lea eax, [ebp - 0x1dc]
mov dword [ebp - 0x1dc], 0xdeadbeef
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x20000
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x154]
mov dword [esp], eax
call dword [0x850114]
sub esp, 0x1c
mov edi, eax
mov eax, 0x11ec
call fcn.0050dc60
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], edi
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x5efc10
call fcn.0050e8b0
lea eax, [ebp - 0x198]
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x150]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80000
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
mov ecx, dword [ebp - 0x200]
call ecx
sub esp, 0x28
mov edi, eax
mov eax, 0x11ef
call fcn.0050dc60
mov edx, dword [ebx + 0x34]
xor eax, eax
test edi, edi
jne 0x512468
xor eax, eax
cmp edx, 6
sete al
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], 0x5efc10
mov ebx, dword fs:[0x18]
call fcn.0050e8b0
mov eax, dword [ebp - 0x154]
mov dword [esp], eax
call dword [0x850110]
mov eax, dword [ebp - 0x154]
sub esp, 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x1f8]
call eax
mov eax, dword [ebp - 0x1d8]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x1fc]
call eax
lea ecx, [ebp - 0x1d8]
sub esp, 0xc
mov dword [ebp - 0x154], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [0x850118]
sub esp, 0x10
mov edi, eax
mov eax, 0x11f6
call fcn.0050dc60
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], edi
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x5efc10
call fcn.0050e8b0
lea eax, [ebp - 0x1dc]
mov dword [ebp - 0x1dc], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x20000
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x154]
mov dword [esp], eax
call dword [0x850114]
sub esp, 0x1c
mov edi, eax
mov eax, 0x11fa
call fcn.0050dc60
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], edi
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x5efc10
call fcn.0050e8b0
lea eax, [ebp - 0x198]
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x150]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80000
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [ebp - 0x200]
call eax
sub esp, 0x28
mov edi, eax
mov eax, 0x11fd
call fcn.0050dc60
mov edx, dword [ebx + 0x34]
xor eax, eax
test edi, edi
jne 0x512624
xor eax, eax
cmp edx, 6
sete al
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
lea edi, [ebp - 0x1d8]
mov dword [esp], eax
mov dword [esp + 4], 0x5efc10
mov ebx, dword fs:[0x18]
call fcn.0050e8b0
mov eax, dword [ebp - 0x154]
mov dword [esp], eax
call dword [0x850110]
mov eax, dword [ebp - 0x154]
sub esp, 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x1f8]
call eax
mov eax, dword [ebp - 0x1d8]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x1fc]
call eax
sub esp, 0xc
mov dword [ebp - 0x154], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [0x850118]
sub esp, 0x10
mov edi, eax
mov eax, 0x1204
call fcn.0050dc60
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], edi
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x5efc10
call fcn.0050e8b0
lea eax, [ebp - 0x1dc]
mov dword [ebp - 0x1dc], 0xffffffff
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x20000
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x154]
mov dword [esp], eax
call dword [0x850114]
sub esp, 0x1c
mov edi, eax
mov eax, 0x1208
call fcn.0050dc60
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], edi
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x5efc10
call fcn.0050e8b0
lea eax, [ebp - 0x198]
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x150]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80000
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [ebp - 0x200]
call eax
sub esp, 0x28
mov edi, eax
mov eax, 0x120c
call fcn.0050dc60
mov eax, dword [ebx + 0x34]
test edi, edi
jne 0x512ae0
mov edx, dword [0x8f0770]
cmp eax, 6
je 0x512b10
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5efc10
mov dword [esp], 0
call fcn.0050e8b0
mov eax, dword [ebp - 0x154]
mov ebx, dword fs:[0x18]
mov dword [esp], eax
call dword [0x850110]
mov eax, dword [ebp - 0x154]
sub esp, 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x1f8]
call eax
mov eax, dword [ebp - 0x1d8]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov ecx, dword [ebp - 0x1fc]
call ecx
lea ecx, [ebp - 0x1d8]
sub esp, 0xc
mov dword [ebp - 0x154], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [0x850118]
sub esp, 0x10
mov edi, eax
mov eax, 0x1215
call fcn.0050dc60
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], edi
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x5efc10
call fcn.0050e8b0
mov ecx, dword [ebp - 0x208]
mov dword [esp + 4], 0
mov dword [esp], pe_nt_image_headers32
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x20c]
call ecx
mov dword [ebp - 0x1e4], eax
sub esp, 0xc
lea eax, [ebp - 0x1e4]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x20000
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x154]
mov dword [esp], eax
call dword [0x850114]
sub esp, 0x1c
mov edi, eax
mov eax, 0x121b
call fcn.0050dc60
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], edi
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x5efc10
call fcn.0050e8b0
mov eax, dword [ebp - 0x1f0]
mov dword [esp + 0x10], eax
mov ecx, dword [ebp - 0x1f4]
mov dword [esp + 8], 0x84fee0
add ecx, 1
mov dword [esp + 4], str.__s__process_parent__u__p
mov dword [esp + 0xc], ecx
lea ecx, [ebp - 0x150]
mov dword [esp], ecx
call fcn.0050d7a0
lea ecx, [ebp - 0x198]
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
movzx eax, byte [ebp - 0x201]
mov dword [esp + 0xc], 0
mov edx, eax
mov dword [esp + 0x10], eax
shl edx, 0x13
mov dword [esp + 8], 0
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x150]
mov dword [esp + 4], edx
mov dword [esp], 0
mov ecx, dword [ebp - 0x200]
call ecx
sub esp, 0x28
mov edi, eax
mov eax, 0x1221
call fcn.0050dc60
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], edi
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x5efc10
call fcn.0050e8b0
mov eax, dword [ebp - 0x154]
mov dword [esp], eax
call dword [0x850110]
mov eax, dword [ebp - 0x154]
sub esp, 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x1f8]
call eax
mov eax, dword [ebp - 0x1e4]
sub esp, 0xc
mov dword [esp], eax
mov eax, dword [ebp - 0x210]
call eax
mov eax, esi
sub esp, 4
call fcn.0050e290
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], eax
mov esi, dword [ebp - 0x1f4]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 4], str.Got_unexpected_ret__x__level__u__GetLastError____lu._n
mov dword [esp], 0
call fcn.0050e8b0
cmp esi, 2
jne 0x51204e
jmp 0x511dd6
mov eax, 0x119e
call fcn.0050dc60
mov dword [esp], str.No_support_for_ProcThreadAttributeList._n
call fcn.0050e770
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [eax + 0x34], 0x7a
sete al
movzx eax, al
jmp 0x5120b2
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0x5efc10
mov dword [esp], 1
call fcn.0050e8b0
mov eax, esi
call fcn.0050e290
jmp 0x512809
test edx, edx
jne 0x5127e9
mov dword [esp + 0xc], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5efc10
mov dword [esp], 1
call fcn.0050e8b0
jmp 0x512809
mov dword [esp], 1
call fcn.0050e8b0
jmp 0x51204e