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

Disassembly:
push ebp
lea ebp, [esp - 0x28004]
mov eax, 0x28004
call fcn.0041bfd0
push 0xfffffffffffffffe
push 0x43c500
push 0x41c330
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4417c0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x28000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 0x2800c]
mov dword [ebp - 0x30], ebx
xor esi, esi
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], edi
mov eax, dword [0x484980]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edi
jmp 0x411252
xor esi, esi
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0x14000
lea ecx, [ebp + 0x14000]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
jne 0x4112d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4113de
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x38]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
jne 0x4112b0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x4113e7
push 1
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4113de
cmp dword [ebp - 0x1c], esi
je 0x4113de
mov dword [ebp - 4], esi
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp]
push ecx
lea edx, [ebp + 0x14000]
push edx
call fcn.004104a0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x411325
mov esi, dword [ebp - 0x28]
test esi, esi
jne 0x411347
cmp dword [ebp - 0x20], esi
jne 0x411347
mov eax, 1
mov dword [ebp], eax
mov esi, 8
mov dword [ebp - 0x28], esi
mov dword [ebp + 4], esi
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x24]
push eax
push esi
lea ecx, [ebp]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41139f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4113de
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x38]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x41129f
push 1
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x4c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4113de
cmp dword [ebp - 0x24], 0
je 0x4113de
cmp dword [ebp - 0x24], esi
jne 0x4113de
cmp dword [ebp - 0x20], 0
jne 0x411250
mov eax, dword [ebp]
cmp eax, 0xc8
jne 0x4113bb
mov eax, dword [ebp + 0xc]
cmp eax, 0xb
je 0x4113ca
cmp eax, 0x33
je 0x4113ca
cmp eax, 0xf
jne 0x4113de
mov eax, dword [ebp + 8]
cmp eax, 1
je 0x41129f
test eax, eax
je 0x411250
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x28000]
xor ecx, ebp
call fcn.0041a7bc
add ebp, 0x28004
mov esp, ebp
pop ebp
ret