Function at 0x1004c530
Capabilities:
Print debug messages
Read file on windows
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100929ce
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x828
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push dword [0x100bb068]
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
setne al
test al, al
je 0x1004c697
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.save_load_url:_pipe
call esi
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push dword [0x100bb068]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1004c5d1
push str.CreateFileA_failed_n
call esi
jmp 0x1004c713
push 0x804
lea eax, [ebp - 0x82c]
push 0
push eax
call fcn.10064410
cmp dword [ebx + 0x1c], 0x10
lea eax, [ebx + 8]
mov dword [ebp - 0x830], 4
cmovae eax, dword [ebx + 8]
push eax
lea eax, [ebp - 0x82c]
push 0x400
push eax
call fcn.1006e5c7
cmp dword [ebx + 0x34], 0x10
lea eax, [ebx + 0x20]
cmovae eax, dword [ebx + 0x20]
push eax
lea eax, [ebp - 0x42c]
push 0x400
push eax
call fcn.1006e5c7
add esp, 0x24
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push 0
push eax
push 0x808
lea eax, [ebp - 0x830]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1004c662
push str.write_pipe_failed_n
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1004c713
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push 0x10
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1004c68e
push str.read_pipe_failed_to_wait_check_end_n
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1004c713
push str.save_load_url:_insert_load_url
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x28], esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x1004c6c2
mov eax, dword [ecx]
jmp 0x1004c6c4
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebx + 0x20]
push 0
push eax
call fcn.10002210
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x1004c6f5
mov eax, dword [ecx]
jmp 0x1004c6f7
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebx + 8]
push 0
push eax
call fcn.10002210
mov byte [ebp - 4], 1
call fcn.10047d80
add esp, 0x30
mov eax, dword [ebx + 0x1c]
cmp eax, 0x10
jb 0x1004c728
inc eax
lea ecx, [ebx + 8]
push eax
push dword [ebx + 8]
call fcn.10002440
mov eax, dword [ebx + 0x34]
mov dword [ebx + 0x1c], 0xf
mov dword [ebx + 0x18], 0
mov byte [ebx + 8], 0
cmp eax, 0x10
jb 0x1004c74f
inc eax
lea ecx, [ebx + 0x20]
push eax
push dword [ebx + 0x20]
call fcn.10002440
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004ebbb
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret