Function at 0x42d6f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fbfb
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x4ce4bc]
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 - 0xc0], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xc4], eax
test ecx, ecx
je 0x42d76e
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edi, eax
mov dword [ebp - 0xb4], eax
jmp 0x42d776
xor edi, edi
mov dword [ebp - 0xb4], edi
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0xa8], ebx
jb 0x42d78a
mov eax, dword [ebx]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa0], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x40
push dword [ebp - 0xa8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x9c]
push eax
mov dword [ebp - 0x18], 0xbadbeef
mov dword [ebp - 0x14], edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov ecx, dword [ebp - 0xc0]
add esp, 0xc
push dword [ebp - 0xb8]
push esi
call fcn.0042d290
mov esi, eax
mov dword [ebp - 0xa8], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x42dbb6
cmp esi, 0xffffffff
je 0x42dbb6
push 0
push 0
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xdc], 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x42d821
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x42dbb8
xor eax, eax
mov dword [ebp - 0xd8], vtable.wh::MemBuffer.0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 1
add edi, 0x90
jne 0x42d853
mov ebx, edi
mov dword [ebp - 0xd0], ebx
jmp 0x42d87e
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor ebx, ebx
mov dword [ebp - 0xcc], eax
add esp, 4
test eax, eax
cmovne ebx, edi
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xd4], ebx
cmp ebx, edi
jne 0x42d9e7
mov edi, eax
lea esi, [ebp - 0xa0]
mov eax, dword [ebp - 0xb4]
mov ecx, 0x24
rep movsd dword es:[edi], dword [esi]
test eax, eax
je 0x42d8b9
mov ecx, dword [ebp - 0xbc]
push eax
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
push eax
mov eax, dword [ebp - 0xcc]
add eax, 0x90
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0xcc]
mov esi, dword [ebp - 0xa8]
cmp byte [eax], 0
je 0x42d9e7
test ebx, ebx
je 0x42d972
mov edi, eax
jmp 0x42d8e0
xor eax, eax
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0xf0]
push eax
push 0
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42d927
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x42da0b
push dword [ebp - 0xb8]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x42da27
push eax
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xf0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x42da0b
add edi, dword [ebp - 0xb4]
sub ebx, dword [ebp - 0xb4]
jne 0x42d8e0
mov ecx, dword [ebp - 0xc0]
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0xb8]
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xb0], 0
push 0x90
push eax
push esi
call fcn.0042dcc0
test eax, eax
je 0x42da3c
cmp eax, 0x800705b4
jne 0x42d9e7
mov edi, dword [ebp - 0xc4]
test edi, edi
je 0x42d9e7
mov eax, dword [ebp - 0xa4]
cmp dword [eax + 0x14], 8
jb 0x42d9c8
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc8]
cmp dword [ecx + 0x14], 8
jb 0x42d9d6
mov ecx, dword [ecx]
mov edx, dword [ebp - 0xac]
push edx
push dword [ebp - 0xbc]
push eax
push ecx
call edi
xor edi, edi
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x42d9fd
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x42dbb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42da1f
movzx eax, ax
or eax, 0x80070000
test eax, eax
je 0x42d972
jmp 0x42d9a9
lea eax, [ebp - 0xf0]
push eax
push esi
call fcn.0042d260
add esp, 8
jmp 0x42d9b0
cmp dword [ebp - 0xb0], 0x90
jne 0x42d9e7
cmp dword [ebp - 0xa0], 2
jne 0x42d9e7
cmp dword [ebp - 0x18], 0xbadbeef
jne 0x42d9e7
lea ecx, [ebp - 0x9c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42da63
mov ebx, dword [ebp - 0xa4]
sub ecx, edx
sar ecx, 1
mov edi, ebx
mov dword [ebp - 0xa4], ebx
cmp dword [ebx + 0x14], 8
mov edx, dword [ebx + 0x10]
jb 0x42da91
mov edi, dword [ebx]
mov dword [ebp - 0xa4], edi
cmp edx, ecx
jne 0x42d9e7
lea eax, [ebp - 0x9c]
test edx, edx
je 0x42daed
movzx ecx, word [edi]
movzx edi, word [ebp - 0x9c]
cmp cx, di
jb 0x42d9e7
mov esi, eax
sub dword [ebp - 0xa4], esi
cmp cx, di
mov esi, dword [ebp - 0xa8]
ja 0x42d9e7
cmp edx, 1
je 0x42daed
mov ecx, dword [ebp - 0xa4]
add eax, 2
dec edx
movzx ecx, word [eax + ecx]
movzx edi, word [eax]
cmp cx, di
jae 0x42dac7
jmp 0x42d9e7
mov edi, dword [ebp - 0xac]
test edi, edi
je 0x42dbac
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x42dbac
mov eax, dword [edi]
push ecx
push edi
call dword [eax]
test eax, eax
je 0x42d9e7
mov eax, dword [edi]
push edi
mov dword [ebp - 0xb0], 0
call dword [eax + 4]
mov edi, eax
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [ebp - 0xb0]
push ecx
push dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xc0]
push edi
push eax
push esi
call fcn.0042dcc0
test eax, eax
je 0x42db94
cmp eax, 0x800705b4
jne 0x42d9e7
mov edi, dword [ebp - 0xc4]
test edi, edi
je 0x42d9e7
cmp dword [ebx + 0x14], 8
jb 0x42db72
mov ebx, dword [ebx]
mov eax, dword [ebp - 0xc8]
cmp dword [eax + 0x14], 8
jb 0x42db80
mov eax, dword [eax]
mov edx, dword [ebp - 0xac]
push edx
push dword [ebp - 0xbc]
push ebx
push eax
jmp 0x42d9e5
mov edx, dword [ebp - 0xac]
push edx
mov eax, dword [edx]
call dword [eax + 4]
cmp dword [ebp - 0xb0], eax
jne 0x42d9e7
mov edi, 1
jmp 0x42d9e9
xor eax, eax
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.00499afc
mov esp, ebp
pop ebp
ret 0x18