Function at 0x45c890
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1060
call fcn.004ea5a0
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x103c], eax
mov eax, esi
push edi
mov edi, ecx
lea edx, [eax + 2]
xor ebx, ebx
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45c8c0
sub eax, edx
sar eax, 1
je 0x45cb8a
push 0x3fe
lea edx, [ebp - 0x102a]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x102c], cx
call fcn.004da450
add esp, 0xc
push 0x420
lea eax, [ebp - 0xc2c]
push ebx
push eax
call fcn.004da450
add esp, 0xc
push esi
lea ecx, [ebp - 0x102c]
push 0x200
push ecx
call fcn.004d72e3
mov eax, dword [esi + 0x42c]
movzx edx, byte [esi + 0x420]
add esp, 0xc
cmp eax, 2
sete cl
cmp eax, 1
sete al
mov byte [ebp - 0xc2c], dl
mov dl, byte [ebp + 8]
mov byte [ebp - 0xc2a], al
mov al, byte [ebp + 0xc]
mov byte [ebp - 0x814], dl
mov edx, dword [esi + 0x430]
mov byte [ebp - 0x813], al
mov eax, dword [esi + 0x400]
mov dword [ebp - 0x810], edx
mov edx, dword [esi + 0x404]
mov dword [ebp - 0x828], eax
mov eax, dword [esi + 0x408]
mov dword [ebp - 0x824], edx
mov edx, dword [esi + 0x40c]
mov dword [ebp - 0x820], eax
mov eax, dword [esi + 0x410]
mov byte [ebp - 0xc2b], cl
mov dword [ebp - 0x81c], edx
mov dword [ebp - 0x818], eax
cmp cl, bl
je 0x45c9c1
lea ecx, [esi + 0x434]
push ecx
lea edx, [ebp - 0xc28]
push 0x200
push edx
call fcn.004d72e3
add esp, 0xc
push 1
lea eax, [ebp - 0x105c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x45cb8a
push ebx
push ebx
push 1
lea ecx, [ebp - 0x105c]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x45cb8a
push 0x7fe
lea ecx, [ebp - 0x80a]
lea edx, [ebp - 0x105c]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x1048], 0xc
mov dword [ebp - 0x1044], edx
mov dword [ebp - 0x1040], ebx
mov word [ebp - 0x80c], ax
call fcn.004da450
mov eax, dword [esi + 0x41c]
add esp, 0xc
cmp eax, ebx
jne 0x45ca3d
mov ecx, dword [edi]
cmp ecx, ebx
jl 0x45ca3d
mov eax, ecx
mov ecx, dword [edi + 4]
cmp ecx, 4
je 0x45ca59
cmp ecx, 5
je 0x45ca59
cmp ecx, 6
je 0x45ca59
cmp ecx, 7
je 0x45ca59
cmp ecx, 8
jne 0x45ca63
cmp eax, ebx
jne 0x45ca63
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push eax
push str..PIPEAE_Alerts_F9AA1730_1514_4c50_9FD3_64C26B672A3D
lea edx, [ebp - 0x80c]
push str._s__d
push edx
call fcn.004d7ee5
add esp, 0x10
push ebx
push ebx
push 3
lea eax, [ebp - 0x1048]
push eax
push ebx
push 0xc0000000
lea ecx, [ebp - 0x80c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45cb8a
add edi, 8
push str.CAlertMgr::GetUserResponse__._Going_write_in_Pipe.
mov ecx, edi
mov dword [ebp - 0x1034], ebx
call fcn.004015d0
add esp, 4
push ebx
lea edx, [ebp - 0x1034]
push edx
push 0x820
lea eax, [ebp - 0x102c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45cb83
cmp dword [ebp - 0x1034], 0x820
jne 0x45cb83
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push str.CAlertMgr::GetUserResponse__._Waiting_for__response.
mov ecx, edi
call fcn.004015d0
add esp, 4
push ebx
lea ecx, [ebp - 0x1038]
push ecx
push 4
lea edx, [ebp - 0x1030]
push edx
push esi
mov dword [ebp - 0x1030], ebx
mov dword [ebp - 0x1038], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45cb74
cmp dword [ebp - 0x1038], 4
jne 0x45cb74
push str.CAlertMgr::GetUserResponse__._got_response.
mov ecx, edi
call fcn.004015d0
mov eax, dword [ebp - 0x1030]
mov ecx, dword [ebp - 0x103c]
add esp, 4
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret 0xc
push str.CAlertMgr::GetUserResponse__._got_incorrect_response.
mov ecx, edi
call fcn.004015d0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004d5564
mov esp, ebp
pop ebp
ret 0xc