Function at 0x1004c460
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 0x1009294e
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 0x1004c5c7
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 0x1004c501
push str.CreateFileA_failed_n
call esi
jmp 0x1004c643
push 0x804
lea eax, [ebp - 0x82c]
push 0
push eax
call fcn.100643b0
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.1006e587
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.1006e587
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 0x1004c592
push str.write_pipe_failed_n
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1004c643
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 0x1004c5be
push str.read_pipe_failed_to_wait_check_end_n
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1004c643
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 0x1004c5f2
mov eax, dword [ecx]
jmp 0x1004c5f4
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebx + 0x20]
push 0
push eax
call fcn.10002270
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 0x1004c625
mov eax, dword [ecx]
jmp 0x1004c627
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebx + 8]
push 0
push eax
call fcn.10002270
mov byte [ebp - 4], 1
call fcn.10047ca0
add esp, 0x30
mov eax, dword [ebx + 0x1c]
cmp eax, 0x10
jb 0x1004c658
inc eax
lea ecx, [ebx + 8]
push eax
push dword [ebx + 8]
call fcn.100024a0
mov eax, dword [ebx + 0x34]
mov dword [ebx + 0x1c], 0xf
mov dword [ebx + 0x18], 0
mov byte [ebx + 8], 0
cmp eax, 0x10
jb 0x1004c67f
inc eax
lea ecx, [ebx + 0x20]
push eax
push dword [ebx + 0x20]
call fcn.100024a0
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.1004eb8b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret