Function at 0x474300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4bb0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push str..pipep861C592B_5428_471f_8082_A5FFB5B93894
call esi
cmp eax, 0xffffffff
jne 0x4743d1
call fcn.00405b90
cmp eax, ebx
jne 0x4744a8
mov eax, dword [0x51856c]
mov edx, dword [eax + 0xc]
mov ecx, 0x51856c
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov byte [ebp - 4], 3
call fcn.00476fe0
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x4743e7
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x4743d8
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4743d8
call fcn.00461240
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x4743c6
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea esi, [ebx + 0x10]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
jmp 0x4743e7
mov dword [ebp - 0x18], eax
mov ebx, eax
jmp 0x474361
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x14]
call fcn.004611b0
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47440a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov edi, dword [esi - 0xc]
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [ebp - 0x20], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
cmp dword [esi - 4], 1
jle 0x47443f
mov ecx, dword [esi - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00461e00
mov esi, dword [ebp - 0x14]
push 0
lea eax, [ebp - 0x24]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x474457
call fcn.00405b90
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004a9558
add esp, 8
test eax, eax
jl 0x474498
cmp eax, dword [esi - 8]
jg 0x474498
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x474494
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
jmp 0x4744fc
push 0x80070057
call fcn.00405ef0
mov eax, 0x474505
ret
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
je 0x4744e2
cmp ebx, ebx
je 0x4744c6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x47451f
push 0x1388
push str..pipep861C592B_5428_471f_8082_A5FFB5B93894
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x47433d
cmp ebx, ebx
je 0x474505
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47452b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8