Function at 0x4b0900
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x94
mov eax, dword [0x541f38]
xor eax, esp
mov dword [esp + 0x90], eax
push ebp
push esi
push edi
push 0x527f5c
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0xffffffff
call fcn.0043a930
lea eax, [esp + 0xc]
push eax
call fcn.004846d0
mov ecx, eax
call fcn.004825e0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b0b12
mov eax, 7
mov dword [esp + 0x4c], eax
xor edx, edx
mov dword [esp + 0x68], eax
xor eax, eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], 0
mov word [esp + 0x38], dx
mov dword [esp + 0x64], edx
mov word [esp + 0x54], ax
call fcn.004a3300
push 0
lea ecx, [esp + 0x38]
call fcn.004aa3f0
mov edx, dword [0x54ffc8]
mov eax, dword [edx + 0xc]
mov ecx, 0x54ffc8
call eax
mov ecx, dword [esp + 0xc]
mov edi, eax
add edi, 0x10
cmp dword [ecx - 4], 1
mov dword [esp + 0x14], edi
jle 0x4b09c0
mov ecx, dword [ecx - 0xc]
push ecx
lea ecx, [esp + 0x10]
call fcn.00439760
mov ecx, dword [esp + 0xc]
push ecx
mov eax, esp
mov dword [eax], ecx
lea ecx, [esp + 0x38]
call fcn.004ad630
movzx esi, al
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004d86b3
add esp, 8
test eax, eax
jl 0x4b0b4e
mov ecx, dword [esp + 0xc]
cmp eax, dword [ecx - 8]
jg 0x4b0b4e
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0xc]
xor edx, edx
mov word [ecx + eax*2], dx
test esi, esi
je 0x4b0aed
push edx
push edx
mov edx, dword [esp + 0x74]
push edx
lea ecx, [esp + 0x40]
call fcn.004a2b80
push ecx
mov eax, esp
lea ecx, [esp + 0x38]
mov dword [eax], 0
call fcn.004a3b90
mov ebp, 8
push ecx
mov eax, esp
lea ecx, [esp + 0x38]
mov dword [eax], str.FileItem
call fcn.004a3c50
test al, al
je 0x4b0aed
mov eax, dword [esp + 0x74]
push str.BackUp
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x40]
call fcn.004a6fb0
cmp dword [esp + 0x30], ebp
jb 0x4b0a77
mov eax, dword [esp + 0x1c]
mov esi, eax
test eax, eax
jne 0x4b0a7b
jmp 0x4b0a8f
lea esi, [esp + 0x1c]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b0a80
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.0043a260
cmp dword [esp + 0x30], ebp
jb 0x4b0aad
mov edx, dword [esp + 0x1c]
push edx
call fcn.004d72b6
add esp, 4
mov edi, dword [esp + 0x14]
cmp dword [edi - 0xc], 0
jle 0x4b0a33
push str.open
push edi
call fcn.004d7575
add esp, 8
test eax, eax
jne 0x4b0ad7
mov dword [esp + 0x10], 1
jmp 0x4b0aed
push str.close
push edi
call fcn.004d7575
add esp, 8
neg eax
sbb eax, eax
mov dword [esp + 0x10], eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b0b09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x34]
call fcn.004a8080
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b0b32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004d7eb0
add esp, 0x94
ret
push 0x80070057
call fcn.00438530
int3