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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
lea ecx, [ebx + 0x60]
push edi
mov dword [esp + 0x18], ecx
call fcn.00453e26
cmp byte [eax + 0x1c], 0
je 0x452db2
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [eax + 0xc]
xor eax, eax
push eax
lea esi, [ebx + 0x58]
mov ecx, dword [esi]
push edi
call fcn.00460039
pop ecx
pop ecx
test al, al
jne 0x452de6
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x452de1
mov edx, dword [ecx]
xor eax, eax
push eax
push edi
push dword [esi]
call dword [edx]
test eax, eax
jne 0x452de6
push 0xa
pop eax
jmp 0x452da9
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
call fcn.00453e26
cmp dword [eax + 4], 0xc
push esi
lea eax, [esp + 0x18]
push eax
sete byte [esp + 0x1b]
call fcn.00419e44
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
call fcn.00453e26
add eax, 0x18
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x1c]
call fcn.00434240
mov eax, dword [ebp + 0x10]
mov edi, dword [eax]
xor esi, esi
cmp edi, esi
je 0x452e80
mov esi, dword [edi]
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
add esi, 0x1c
call fcn.00453e26
push 0
push dword [eax + 0xc]
mov ecx, edi
call dword [esi]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], eax
call fcn.00446770
test al, al
je 0x452e63
add dword [esp + 0x24], 8
mov esi, dword [edi]
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
add esi, 0x14
call fcn.00453e26
push dword [eax]
mov ecx, edi
push dword [esp + 0x28]
call dword [esi]
xor esi, esi
cmp byte [esp + 0x13], 0
je 0x452e9b
lea esi, [ebx + 0x90]
lea ebx, [esp + 0x14]
call fcn.00444960
mov ebx, dword [ebp + 8]
xor esi, esi
lea eax, [ebx + 0x9c]
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00446c10
pop ecx
pop ecx
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x30], eax
cmp eax, 0xffffffff
jne 0x452ee7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.00403d84
push 2
jmp 0x452de3
mov eax, dword [ebx + 0x6c]
mov ecx, dword [esp + 0x18]
push esi
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xc]
push esi
call fcn.00453e26
mov eax, dword [eax + 0x10]
add eax, dword [ebx + 0x80]
push eax
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x452f38
cmp dword [esp + 0x30], esi
je 0x452f25
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
pop esi
lea ecx, [esp + 0x14]
call fcn.00403d84
mov eax, esi
jmp 0x452da9
push 0x10000
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], esi
call fcn.004338b8
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
call fcn.00453e26
mov eax, dword [eax + 0xc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
cmp edi, esi
je 0x452f75
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x24]
test al, al
jne 0x45301e
mov ecx, dword [esp + 0x24]
mov eax, 0x10000
cmp ecx, eax
jbe 0x452f84
mov ecx, eax
mov eax, dword [ebx + 0x6c]
push esi
lea edx, [esp + 0x24]
push edx
push ecx
push dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x452feb
cmp dword [esp + 0x20], esi
je 0x452feb
push esi
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x452feb
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x452feb
sub dword [esp + 0x24], eax
add dword [esp + 0x28], eax
cmp edi, esi
je 0x452fe1
mov eax, dword [esp + 0x28]
cdq
push edx
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x20]
cmp dword [esp + 0x24], esi
jg 0x452f62
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
call fcn.00453e26
push dword [esp + 0x1c]
mov byte [eax + 0x1c], 1
call fcn.00489beb
pop ecx
cmp dword [esp + 0x30], esi
je 0x452f28
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x452f28
push dword [esp + 0x1c]
call fcn.00489beb
pop ecx
cmp dword [esp + 0x30], esi
je 0x453038
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xe
jmp 0x452f27