Function at 0x42b650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48db73
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x4b74b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xdc], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xd4], eax
test ecx, ecx
je 0x42b6cc
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov dword [ebp - 0xbc], eax
jmp 0x42b6d6
mov dword [ebp - 0xbc], 0
cmp dword [ebx + 0x14], 8
mov esi, ebx
jb 0x42b6e0
mov esi, dword [ebx]
mov dword [ebp - 0xb8], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xbc]
push 0x40
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0xb4]
push esi
push eax
mov dword [ebp - 0x30], 0xbadbeef
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
push edi
lea eax, [ebp - 0x28]
push 0x4995b0
push eax
call fcn.00404c90
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0x18
xor esi, esi
lea ecx, [ecx]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x40190000
push 3
push 0
push 0
push 0xc0000000
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42b7c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x42b78f
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, 0xcccccccd
cmovae ecx, dword [ebp - 0x28]
mul dword [ebp - 0xc4]
shr edx, 2
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x42b78f
inc esi
cmp esi, 5
jl 0x42b730
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42b7c5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42b7bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b7f5
push edx
push ecx
call fcn.00487869
add esp, 8
xor ebx, ebx
jmp 0x42b805
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42b805
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42b7fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42b7fb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00487869
add esp, 8
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x42bb6a
cmp ebx, 0xffffffff
je 0x42bb6a
push 0
push 0
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xe0], 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x42bb6a
xor edx, edx
mov dword [ebp - 0x20], vtable.wh::MemBuffer.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], edx
mov esi, dword [ebp - 0xbc]
mov byte [ebp - 4], 1
add esi, 0x90
jne 0x42b873
mov eax, esi
mov dword [ebp - 0x18], eax
jmp 0x42b897
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edx, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], edx
test edx, edx
cmovne eax, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x42b9f6
mov eax, dword [ebp - 0xbc]
lea esi, [ebp - 0xb8]
mov ecx, 0x24
mov edi, edx
rep movsd dword es:[edi], dword [esi]
test eax, eax
je 0x42b8d2
mov ecx, dword [ebp - 0xc8]
push eax
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x90
push eax
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [ebp - 0x14]
add esp, 0xc
cmp byte [edx], 0
je 0x42b9f6
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x42b982
mov edi, edx
jmp 0x42b8f0
xor eax, eax
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0xf4]
push eax
push 0
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42b937
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x42ba12
push dword [ebp - 0xc4]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x42ba2e
push eax
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xf4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x42ba12
add edi, dword [ebp - 0xbc]
sub esi, dword [ebp - 0xbc]
jne 0x42b8f0
mov ecx, dword [ebp - 0xdc]
lea eax, [ebp - 0xc0]
push eax
push dword [ebp - 0xc4]
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xc0], 0
push 0x90
push eax
push ebx
call fcn.0042bc80
test eax, eax
je 0x42ba40
cmp eax, 0x800705b4
jne 0x42b9f6
mov edx, dword [ebp - 0xd4]
test edx, edx
je 0x42b9f6
mov eax, dword [ebp - 0xcc]
cmp dword [eax + 0x14], 8
jb 0x42b9d8
mov eax, dword [eax]
mov ecx, dword [ebp - 0xd8]
cmp dword [ecx + 0x14], 8
jb 0x42b9e6
mov ecx, dword [ecx]
push dword [ebp - 0xd0]
push dword [ebp - 0xc8]
push eax
push ecx
call edx
xor esi, esi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42bb6c
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x42bb6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42ba26
movzx eax, ax
or eax, 0x80070000
test eax, eax
je 0x42b982
jmp 0x42b9b9
lea eax, [ebp - 0xf4]
push eax
push ebx
call fcn.0042b360
add esp, 8
jmp 0x42b9c0
cmp dword [ebp - 0xc0], 0x90
jne 0x42b9f6
cmp dword [ebp - 0xb8], 2
jne 0x42b9f6
cmp dword [ebp - 0x30], 0xbadbeef
jne 0x42b9f6
lea ecx, [ebp - 0xb4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ba67
mov esi, dword [ebp - 0xcc]
sub ecx, edx
sar ecx, 1
mov edi, esi
cmp dword [esi + 0x14], 8
jb 0x42ba86
mov edi, dword [esi]
mov edx, dword [esi + 0x10]
cmp edx, ecx
jne 0x42b9f6
lea ecx, [ebp - 0xb4]
test edx, edx
je 0x42bab5
mov eax, ecx
sub edi, eax
nop
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x42b9f6
add ecx, 2
sub edx, 1
jne 0x42baa0
mov edi, dword [ebp - 0xd0]
test edi, edi
je 0x42bb60
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x42bb60
mov eax, dword [edi]
push ecx
push edi
call dword [eax]
test eax, eax
je 0x42b9f6
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc0], 0
push eax
push dword [ebp - 0xc4]
mov eax, dword [edi]
push edi
call dword [eax + 4]
push eax
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov ecx, dword [ebp - 0xdc]
push eax
push ebx
call fcn.0042bc80
test eax, eax
je 0x42bb4e
cmp eax, 0x800705b4
jne 0x42b9f6
mov edx, dword [ebp - 0xd4]
test edx, edx
je 0x42b9f6
cmp dword [esi + 0x14], 8
jb 0x42bb32
mov esi, dword [esi]
mov eax, dword [ebp - 0xd8]
cmp dword [eax + 0x14], 8
jb 0x42bb40
mov eax, dword [eax]
push edi
push dword [ebp - 0xc8]
push esi
push eax
jmp 0x42b9f4
mov eax, dword [edi]
push edi
call dword [eax + 4]
cmp dword [ebp - 0xc0], eax
jne 0x42b9f6
mov esi, 1
jmp 0x42b9f8
xor esi, esi
test ebx, ebx
je 0x42bb7c
cmp ebx, 0xffffffff
je 0x42bb7c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00487877
mov esp, ebp
pop ebp
ret 0x18