Function at 0x4a9a30
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x51e080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x20c], 0
push edi
mov eax, dword [esi + 4]
add eax, 0x14
push eax
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x214], eax
call eax
mov ecx, esi
call fcn.004a8490
mov ebx, dword [esi + 0x34]
mov ecx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x210], ecx
test ebx, ebx
je 0x4a9e50
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x220], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x228], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x234], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x22c], eax
mov edi, dword [esi + 0x30]
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x218], eax
test al, 0x20
je 0x4a9ad3
mov eax, dword [esi + 4]
add eax, 0x14
push eax
call ecx
push 0xc8
jmp 0x4a9c10
mov edx, dword [ebx + 0x14]
mov eax, edx
and eax, 3
cmp al, 3
sete cl
test dl, 0x10
setne al
test al, cl
je 0x4a9e4a
mov eax, dword [ebp - 0x218]
mov ecx, esi
or eax, 0x20
mov dword [edi + 0x14], eax
lea eax, [edi + 0x18]
mov edx, dword [esi + 0x14]
push eax
mov edx, dword [edx + 8]
call fcn.004a8540
mov eax, dword [esi + 4]
add esp, 4
add eax, 0x14
push eax
call dword [ebp - 0x210]
mov eax, dword [ebp - 0x20c]
push 0
push 0x80
neg eax
push 3
push 0
sbb eax, eax
and eax, 7
push eax
push accept
push dword [esi + 0x20]
call dword [ebp - 0x228]
mov dword [ebp - 0x218], eax
cmp eax, 0xffffffff
jne 0x4a9ca5
mov ebx, dword [esi + 8]
push dword [ebx + 0x1c]
call dword [ebp - 0x22c]
cmp eax, 0xffffffff
je 0x4a9c8c
mov dword [ebx + 0x20], 0
mov ebx, dword [ebp - 0x20c]
test ebx, ebx
je 0x4a9bd0
mov eax, dword [esi]
lea edx, [ebp - 0x230]
push 0x1cc15274
push edx
mov eax, dword [eax + 0x478]
mov dword [ebp - 0x218], eax
mov ecx, dword [eax + 0x6c]
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jne 0x4a9bd0
push ebx
push dword [ebp - 0x230]
lea eax, [ebp - 0x208]
push 0xffffffffffffffff
push 0x100
push eax
call fcn.00415570
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x208]
add esp, 0x14
push eax
push 0xbcd3f497
call fcn.0045bc70
call dword [ebp - 0x234]
mov dword [ebp - 0x224], eax
cmp eax, 2
mov eax, dword [esi + 4]
je 0x4a9c40
add eax, 0x14
inc ebx
push eax
mov dword [ebp - 0x20c], ebx
call dword [ebp - 0x214]
cmp ebx, 3
jg 0x4a9c4a
and dword [edi + 0x14], 0xffffffdf
mov eax, dword [esi + 4]
add eax, 0x14
push eax
call dword [ebp - 0x210]
push 0x3e8
call dword [ebp - 0x220]
mov eax, dword [esi + 4]
add eax, 0x14
push eax
call dword [ebp - 0x214]
mov ecx, esi
call fcn.004a8490
mov ebx, dword [esi + 0x34]
mov ecx, dword [ebp - 0x210]
test ebx, ebx
je 0x4a9e50
jmp 0x4a9ab0
add eax, 0x14
push eax
call dword [ebp - 0x214]
and dword [edi + 0x14], 0xffffffdf
mov ecx, dword [esi + 4]
push edi
call fcn.004a7cb0
mov eax, dword [esi + 4]
add eax, 0x14
push eax
call dword [ebp - 0x210]
push dword [esi + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
push dword [esi + 0x20]
call edi
push dword [esi + 0x24]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3878
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x20], 1
mov eax, dword [esi + 4]
add eax, 0x14
push eax
call dword [ebp - 0x214]
jmp 0x4a9e46
mov eax, dword [ebx + 0x3c]
push eax
mov dword [ebp - 0x220], eax
mov eax, dword [esi + 4]
push 0
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
push 0
push dword [ebx + 0x4c]
mov dword [ebp - 0x20c], eax
push dword [ebx + 0x48]
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x224]
push 0
push eax
push ecx
push dword [ebp - 0x20c]
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x220]
cmp dword [ebp - 0x224], eax
je 0x4a9d2e
push dword [ebp - 0x20c]
mov eax, dword [esi + 4]
push 0
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a9ddd
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebx + 0x4c]
mov edx, dword [ebp - 0x20c]
push dword [ebx + 0x48]
mov ecx, dword [esi + 0x5c]
push dword [ebx + 0x40]
push dword [ebx + 0x3c]
call fcn.004bd830
add esp, 0x10
mov dword [ebp - 0x21c], 1
lea eax, [ebp - 0x21c]
push eax
push 0x20
lea eax, [edi + 0x18]
push eax
call fcn.004b2070
lea eax, [ebp - 0x21c]
push eax
push 0x20
lea eax, [ebx + 0x18]
push eax
call fcn.004b2070
lea eax, [ebp - 0x21c]
push eax
push 8
lea eax, [ebx + 0x48]
push eax
call fcn.004b2070
lea eax, [ebp - 0x21c]
push eax
push 4
lea eax, [ebx + 0x3c]
push eax
call fcn.004b2070
lea eax, [ebp - 0x21c]
push eax
push dword [ebx + 0x3c]
push dword [ebp - 0x20c]
call fcn.004b2070
mov eax, dword [ebx + 0x40]
mov ecx, dword [esi + 4]
cmp eax, dword [ebp - 0x21c]
je 0x4a9e17
push dword [ebp - 0x20c]
push 0
push dword [ecx + 0x10]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esi + 4]
add eax, 0x14
push eax
call dword [ebp - 0x214]
and dword [edi + 0x14], 0xffffffdf
mov ecx, dword [esi + 4]
push ebx
call fcn.004a7cb0
mov eax, dword [esi + 4]
add eax, 0x14
push eax
call dword [ebp - 0x210]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3878
mov esp, ebp
pop ebp
ret
lea eax, [ecx + 0x14]
push eax
call dword [ebp - 0x214]
mov eax, dword [ebp - 0x20c]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x14], 0x1e
mov ecx, dword [esi + 4]
push ebx
call fcn.004a6d70
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x220]
add dword [eax + 0x4c], ecx
and dword [edi + 0x14], 0xffffffdf
mov ecx, dword [ebp - 0x210]
mov eax, dword [esi + 4]
add eax, 0x14
push eax
call ecx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d3878
mov esp, ebp
pop ebp
ret