Function at 0x1000b300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.10027c20
mov eax, dword [0x1003d01c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
cmp eax, 3
je 0x1000b330
cmp eax, 1
jne 0x1000b457
mov ecx, dword [edi]
lea eax, [ebp - 0x1001c]
push 8
push eax
call fcn.10008b00
test al, al
je 0x1000b435
jmp 0x1000b350
mov ecx, dword [ebp - 0x10018]
test ecx, ecx
je 0x1000b385
push ecx
mov ecx, dword [edi]
lea eax, [ebp - 0x10014]
push eax
call fcn.10008b00
test al, al
je 0x1000b46c
mov eax, dword [ebp - 0x10018]
mov byte [ebp + eax - 0x10014], 0
mov ecx, dword [ebp - 0x10018]
mov eax, dword [ebp - 0x1001c]
dec eax
cmp eax, 3
ja case.default.0x1000b395
jmp dword [eax*4 + 0x1000b578]
lea esi, [ecx + 8]
mov dword [ebp - 0x1001c], 4
test esi, esi
je case.0x1000b395.4
mov eax, dword [edi]
test eax, eax
je 0x1000b3e1
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x1000b3e1
push 0
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push ecx
push esi
lea ecx, [ebp - 0x1001c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x1000b3e1
cmp dword [ebp - 0xc], esi
je case.0x1000b395.4
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x1000b401
mov eax, dword [edi + 4]
cmp eax, 3
je 0x1000b3f5
cmp eax, 1
jne 0x1000b401
lea eax, [edi + 0x54]
push eax
push dword [edi + 0x50]
call ecx
add esp, 8
mov esi, dword [edi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
mov byte [esi], 0
mov dword [edi + 4], 0
mov ecx, dword [edi]
lea eax, [ebp - 0x1001c]
push 8
push eax
call fcn.10008b00
test al, al
jne 0x1000b350
mov eax, dword [edi]
cmp byte [eax], 0
jne 0x1000b457
mov dword [edi + 0x50], 1
mov edx, str.Pipe_closed
lea ecx, [edi + 0x54]
call fcn.1000aa40
mov ecx, edi
call fcn.1000b210
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1002711f
mov esp, ebp
pop ebp
ret 4
mov dword [edi + 0x50], 2
mov edx, str.Partial_data_in_frame
jmp 0x1000b448
lea eax, [ebp - 0x10014]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
mov ecx, ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
call fcn.1000b590
push ecx
mov edx, str.code
mov ecx, ebx
call fcn.100091f0
add esp, 4
mov dword [edi + 0x50], eax
mov edx, str.message
mov ecx, ebx
push 0x1002b8f3
call fcn.10009260
add esp, 4
mov edx, eax
jmp 0x1000b448
lea eax, [ebp - 0x10014]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
mov ecx, ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
call fcn.1000b590
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002711f
mov esp, ebp
pop ebp
ret 4
lea ebx, [edi + 0x54]
mov dword [edi + 0x50], 2
mov edx, ebx
mov esi, 1
mov eax, edx
sub eax, edi
sub esi, str.Bad_ipc_frame
lea ecx, [eax + 0x100309a0]
jmp 0x1000b520
lea eax, [esi + ecx]
cmp eax, 0x100
jae 0x1000b535
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp byte [ecx], 0
jne 0x1000b520
mov byte [edx], 0
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x1000b555
mov eax, dword [edi + 4]
cmp eax, 3
je 0x1000b54c
cmp eax, 1
jne 0x1000b555
push ebx
push dword [edi + 0x50]
call ecx
add esp, 8
mov esi, dword [edi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
mov byte [esi], 0
mov dword [edi + 4], 0
jmp 0x1000b457