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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0x598224
mov dword [ebp - 0x220], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [edi], 0
mov word [ebp - 0x20c], ax
call fcn.0051d250
add esp, 0xc
push 0x576bd0
lea ecx, [ebp - 0x210]
call fcn.00464b60
lea edx, [ebp - 0x218]
push edx
call fcn.004b4e80
add esp, 4
push eax
lea ecx, [ebp - 0x210]
call fcn.0044f5c0
mov eax, dword [ebp - 0x218]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7c2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x210]
push 0x103
lea ecx, [ebp - 0x20c]
push ebx
push ecx
call fcn.005248a6
add esp, 0xc
push 0x566e30
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
lea ecx, [ebp - 0x248]
push ecx
push eax
lea edx, [ebp - 0x20c]
push edx
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4b7e5c
mov eax, dword [ebp - 0x234]
cmp dword [esi + 0x34], eax
je 0x4b7e63
lea ecx, [ebp - 0x20c]
push 0x565094
mov dword [edi], 1
push ecx
mov dword [esi + 0x34], eax
mov dword [ebp - 0x214], 0
call fcn.00524e42
mov edi, eax
add esp, 8
test edi, edi
jne 0x4b7d00
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4b7e73
push edi
push 4
lea ecx, [ebp - 0x214]
push 1
push ecx
call fcn.00524d5f
add esp, 0x10
cmp eax, 4
je 0x4b7d32
push edi
call fcn.00522bd6
add esp, 4
lea ecx, [ebp - 0x210]
call fcn.00442750
jmp 0x4b7e7f
mov edx, dword [ebp - 0x214]
dec edx
cmp edx, 2
jbe 0x4b7d64
push edi
call fcn.00522bd6
add esp, 4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x210]
call fcn.00442750
jmp 0x4b7e7f
mov ecx, esi
call fcn.004b6e00
mov ecx, dword [ebp - 0x214]
push ecx
mov ecx, esi
call fcn.004b5a50
mov ebx, eax
test ebx, ebx
jbe 0x4b7e0d
push 0x2e4
call fcn.0051d4d3
add esp, 4
test eax, eax
je 0x4b7d9f
mov ecx, eax
call fcn.004b5940
mov esi, eax
jmp 0x4b7da1
xor esi, esi
push 0x2e4
push 0
push esi
mov dword [ebp - 0x218], esi
call fcn.0051d250
push edi
push ebx
push 1
push esi
call fcn.00524d5f
add esp, 0x1c
cmp eax, ebx
jne 0x4b7dfe
xor edx, edx
mov word [esi + 0x246], dx
xor eax, eax
xor ecx, ecx
mov word [esi + 0x206], ax
mov word [esi + 0x28e], cx
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
add ecx, 0x1c
mov word [esi + 0x2e2], dx
call fcn.004b74f0
jmp 0x4b7d83
push esi
call fcn.0051d230
mov esi, dword [ebp - 0x220]
add esp, 4
lea ecx, [ebp - 0x224]
add esi, 0x1c
push ecx
mov ecx, esi
call fcn.004b6b10
lea edx, [ebp - 0x21c]
push edx
mov ecx, esi
mov ebx, eax
call fcn.004b6ae0
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push 0x4b5a00
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
call fcn.004b6f10
push edi
call fcn.00522bd6
add esp, 0x18
lea ecx, [ebp - 0x210]
call fcn.00442750
jmp 0x4b7e7f
mov ecx, esi
call fcn.004b6e00
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7e7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x598224
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 4