Function at 0x41db28
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push 0x80
push 3
push esi
mov ebx, 0xc0000000
lea eax, [ecx + 0x88]
push esi
push ebx
push eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x30], eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x41dd39
mov eax, dword [ebp - 0x14]
push 0x47676c
add eax, 0x18c
push 0x104
push eax
call fcn.004195bc
add esp, 0xc
test eax, eax
je 0x41dd12
mov eax, dword [ebp - 0x14]
push esi
push 0x80
push 2
push esi
push esi
add eax, 0x18c
push ebx
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
je 0x41dd12
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 4]
push 4
push eax
mov dword [ebp - 4], esi
push dword [ebp - 0xc]
mov dword [ebp - 8], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], esi
call edi
mov ebx, eax
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 8]
push 4
push eax
push dword [ebp - 0xc]
call edi
test ebx, eax
je 0x41dcda
cmp dword [ebp - 4], esi
je 0x41dcda
cmp dword [ebp - 4], 0x10000000
ja 0x41dcda
cmp dword [ebp - 8], esi
jbe 0x41dcda
push dword [ebp - 8]
call fcn.004497f2
cmp eax, esi
pop ecx
mov dword [ebp - 0x20], eax
jne 0x41dc28
push 1
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x41dcc7
push dword [ebp - 8]
call fcn.004497f2
cmp eax, esi
pop ecx
mov dword [ebp - 0x1c], eax
je 0x41dcbe
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push esi
push eax
push dword [ebp - 8]
push dword [ebp - 0x20]
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x41dcb5
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x10], eax
jne 0x41dcb5
mov ebx, dword [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
mov ecx, ebx
mov edx, dword [ebx]
push dword [ebp - 4]
call dword [edx + 0x24]
test eax, eax
je 0x41dcb5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
lea ecx, [ecx + eax - 4]
cmp eax, ecx
mov dword [ebp - 0x38], ecx
ja 0x41dcb5
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
cmp edx, dword [eax + ecx]
jae 0x41dca7
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 0x24]
call fcn.0041ca13
inc dword [ebx + 0x4c]
mov eax, dword [ebp - 0x34]
inc dword [ebp - 4]
mov ecx, dword [ebp - 4]
inc dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x38]
jbe 0x41dc8a
push dword [ebp - 0x1c]
call fcn.0044981b
pop ecx
push dword [ebp - 0x20]
call fcn.0044981b
pop ecx
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 4]
push 4
push eax
push dword [ebp - 0xc]
jmp 0x41dbc9
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
push ebx
call fcn.0041c9b0
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x28]
push esi
push eax
lea eax, [ebp - 0x2c]
push 4
push eax
push ebx
mov dword [ebp - 0x2c], esi
call edi
lea eax, [ebp - 0x28]
push esi
push eax
lea eax, [ebp - 0x2c]
push 4
push eax
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x104
push esi
push dword [ebp - 0x30]
call fcn.00432460
add esp, 0xc
xor eax, eax
jmp 0x41dd3c
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret