Function at 0x4b75c0
Capabilities:
Check if file exists
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x598224
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
sar eax, 2
test eax, eax
ja 0x4b7608
push 0x598224
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], cx
call fcn.0051d250
add esp, 0xc
push 0x576bd0
lea ecx, [ebp - 0x214]
call fcn.00464b60
lea eax, [ebp - 0x218]
push eax
call fcn.004b4e80
add esp, 4
push eax
lea ecx, [ebp - 0x214]
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 0x4b767d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
mov ebx, dword [ebp - 0x214]
push edi
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]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b7a7e
lea ecx, [ebp - 0x20c]
push 0x565094
push ecx
call fcn.00524e42
mov edi, eax
add esp, 8
mov dword [ebp - 0x218], edi
test edi, edi
jne 0x4b76f6
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4b7b67
lea ecx, [ebp - 0x234]
call fcn.004b7390
push 0
push 0
push edi
call fcn.00522a95
push edi
push 4
lea ecx, [ebp - 0x210]
push 1
push ecx
call fcn.00524d5f
add esp, 0x1c
cmp eax, 4
jne 0x4b7819
mov eax, dword [ebp - 0x210]
lea edx, [eax - 1]
cmp edx, 2
ja 0x4b7819
push eax
mov ecx, esi
call fcn.004b5a50
mov ebx, eax
test ebx, ebx
jbe 0x4b77dd
lea esp, [esp]
push 0x2e4
call fcn.0051d4d3
add esp, 4
test eax, eax
je 0x4b776c
mov ecx, eax
call fcn.004b5940
mov edi, eax
jmp 0x4b776e
xor edi, edi
push 0x2e4
push 0
push edi
mov dword [ebp - 0x238], edi
call fcn.0051d250
mov eax, dword [ebp - 0x218]
push eax
push ebx
push 1
push edi
call fcn.00524d5f
add esp, 0x1c
cmp eax, ebx
jne 0x4b77ce
xor ecx, ecx
mov word [edi + 0x246], cx
xor edx, edx
mov word [edi + 0x206], dx
xor eax, eax
mov word [edi + 0x28e], ax
lea edx, [ebp - 0x238]
mov word [edi + 0x2e2], cx
push edx
lea ecx, [ebp - 0x234]
call fcn.004b74f0
jmp 0x4b7750
push edi
call fcn.0051d230
mov edi, dword [ebp - 0x218]
add esp, 4
push edi
call fcn.00522bd6
add esp, 4
mov edx, dword [esi + 0x14]
sub edx, dword [esi + 0x10]
mov ecx, 0x3e8
sar edx, 2
sub ecx, edx
jns 0x4b77fa
xor ecx, ecx
mov eax, dword [ebp - 0x224]
sub eax, dword [ebp - 0x228]
sar eax, 2
cmp eax, ecx
jbe 0x4b7831
sub eax, ecx
mov edi, eax
mov dword [ebp - 0x218], eax
jmp 0x4b7839
push edi
call fcn.00522bd6
add esp, 4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4b77e6
xor edi, edi
mov dword [ebp - 0x218], edi
lea eax, [ebp - 0x20c]
push 0x56508c
push eax
call fcn.00524e42
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4b786e
lea ecx, [ebp - 0x234]
call fcn.004b6970
lea ecx, [ebp - 0x214]
call fcn.00442750
jmp 0x4b7b73
push ebx
push 4
lea ecx, [ebp - 0x210]
push 1
push ecx
mov dword [ebp - 0x210], 3
call fcn.00522696
mov edx, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x228]
mov eax, edx
sub eax, ecx
sar eax, 2
add esp, 0x10
cmp dword [ebp - 0x218], eax
jae 0x4b7902
cmp edi, eax
jb 0x4b78bc
call fcn.0051f89a
mov edx, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x228]
cmp dword [ecx + edi*4], 0
je 0x4b78f6
sub edx, ecx
sar edx, 2
cmp edi, edx
jb 0x4b78d6
call fcn.0051f89a
mov ecx, dword [ebp - 0x228]
mov edx, dword [ecx + edi*4]
push ebx
push 0x2e4
push 1
push edx
call fcn.00522696
mov edx, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x228]
add esp, 0x10
mov eax, edx
sub eax, ecx
inc edi
sar eax, 2
cmp edi, eax
jb 0x4b78bc
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
sar eax, 2
cmp eax, 0x3e8
jbe 0x4b7923
mov edi, dword [esi + 0x14]
sub edi, dword [esi + 0x10]
sar edi, 2
sub edi, 0x3e8
jmp 0x4b7925
xor edi, edi
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
sar ecx, 2
cmp edi, ecx
jae 0x4b7983
mov edx, dword [esi + 0x14]
sub edx, dword [esi + 0x10]
sar edx, 2
cmp edi, edx
jb 0x4b7944
call fcn.0051f89a
mov eax, dword [esi + 0x10]
cmp dword [eax + edi*4], 0
je 0x4b7975
mov ecx, dword [esi + 0x14]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x4b795e
call fcn.0051f89a
mov edx, dword [esi + 0x10]
mov eax, dword [edx + edi*4]
push ebx
push 0x2e4
push 1
push eax
call fcn.00522696
add esp, 0x10
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
inc edi
sar ecx, 2
cmp edi, ecx
jb 0x4b7932
push ebx
call fcn.00522bd6
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x228]
mov ebx, eax
sub ebx, ecx
sar ebx, 2
add esp, 4
xor edi, edi
test ebx, ebx
jbe 0x4b79f8
mov edx, eax
sub edx, ecx
sar edx, 2
cmp edi, edx
jb 0x4b79c1
call fcn.0051f89a
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x228]
cmp dword [ecx + edi*4], 0
je 0x4b79f3
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x4b79db
call fcn.0051f89a
mov ecx, dword [ebp - 0x228]
mov eax, dword [ecx + edi*4]
push eax
call fcn.0051d230
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x228]
add esp, 4
inc edi
cmp edi, ebx
jb 0x4b79a5
mov dword [ebp - 0x218], eax
cmp ecx, eax
jbe 0x4b7a13
call fcn.0051f89a
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x228]
mov edi, dword [ebp - 0x234]
mov ebx, ecx
cmp ecx, eax
jbe 0x4b7a24
call fcn.0051f89a
mov ecx, dword [ebp - 0x218]
mov edx, dword [ebp - 0x234]
push ecx
push edi
push ebx
push edx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.004b6b40
mov eax, dword [ebp - 0x228]
xor edi, edi
cmp eax, edi
je 0x4b7a5b
push eax
call fcn.0051d230
add esp, 4
mov ecx, dword [ebp - 0x234]
push ecx
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x220], edi
call fcn.0051d230
jmp 0x4b7b47
lea edx, [ebp - 0x20c]
push 0x56508c
push edx
mov dword [ebp - 0x210], 3
call fcn.00524e42
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4b7b51
push ebx
push 4
lea ecx, [ebp - 0x210]
push 1
push ecx
call fcn.00522696
mov edx, dword [esi + 0x14]
sub edx, dword [esi + 0x10]
add esp, 0x10
sar edx, 2
cmp edx, 0x3e8
jbe 0x4b7adc
mov edi, dword [esi + 0x14]
sub edi, dword [esi + 0x10]
sar edi, 2
sub edi, 0x3e8
jmp 0x4b7ade
xor edi, edi
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
sar eax, 2
cmp edi, eax
jae 0x4b7b41
jmp 0x4b7af0
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
sar ecx, 2
cmp edi, ecx
jb 0x4b7b02
call fcn.0051f89a
mov edx, dword [esi + 0x10]
cmp dword [edx + edi*4], 0
je 0x4b7b33
mov eax, dword [esi + 0x14]
sub eax, edx
sar eax, 2
cmp edi, eax
jb 0x4b7b1c
call fcn.0051f89a
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + edi*4]
push ebx
push 0x2e4
push 1
push edx
call fcn.00522696
add esp, 0x10
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
inc edi
sar eax, 2
cmp edi, eax
jb 0x4b7af0
push ebx
call fcn.00522bd6
add esp, 4
mov ecx, esi
call fcn.004b6d60
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7b73
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 ebx
xor ecx, ebp
pop esi
call fcn.0051d23b
mov esp, ebp
pop ebp
ret