Function at 0x4bc905
Capabilities:
Check if file exists
Get file attributes
Get file size
Set file attributes

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x58]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4bc92e
push 0x761
push 2
call fcn.004b8630
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
mov edi, dword [esp + 0x2c]
test edi, edi
jl 0x4bcbad
mov ecx, esi
call fcn.004bc670
cmp edi, eax
jge 0x4bcbad
mov edx, dword [esi + 8]
lea ecx, [edi + edi*2]
lea ebx, [edi + ecx*4]
shl ebx, 2
mov eax, dword [edx + ebx + 0x1c]
test eax, eax
je 0x4bc96c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 0x10
mov ebp, dword [esp + 0x30]
lea eax, [esi + 0x54]
push eax
mov ecx, ebp
call fcn.00618070
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x4bc991
mov ecx, dword [esi + 0x2c]
lea edx, [ecx + edi*4]
mov ecx, ebp
push edx
call fcn.00618b60
mov eax, dword [esi + 0x1c]
lea edi, [edi + edi*8]
shl edi, 5
lea ecx, [eax + edi + 0x30]
push ecx
mov ecx, ebp
call fcn.00618b00
mov eax, dword [ebp]
cmp dword [eax - 8], 0x103
jl 0x4bc9cd
push 0x779
push 0x29
call fcn.004b8630
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
mov edx, dword [esi + 8]
cmp dword [edx + ebx + 0x18], 1
jne 0x4bca21
mov ecx, dword [esp + 0x34]
test ecx, ecx
jne 0x4bc9fa
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4bc9fa
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 0x10
mov eax, dword [esi + 8]
mov ebp, dword [ebp]
lea ecx, [eax + ebx + 8]
push ecx
push ebp
call fcn.004b9780
add esp, 8
test eax, eax
je 0x4bca21
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 0x10
mov eax, dword [esi + 0x58]
push 0
push 0
push 3
push 0
push 7
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4bca5c
push 0x796
push 3
call fcn.004b8630
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
lea edx, [esp + 0x1c]
xor eax, eax
push edx
push ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, dword [esi + 8]
lea ecx, [eax + ebx]
mov eax, dword [eax + ebx]
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx + edi + 0x28]
add edx, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [ecx + edi + 0x2c]
adc ecx, eax
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jg 0x4bcb98
jl 0x4bcac3
cmp edx, dword [esp + 0x18]
ja 0x4bcb98
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x30]
mov edx, dword [esi + 0x1c]
mov eax, dword [ecx]
mov ecx, dword [edx + edi + 0x2c]
push ecx
mov edx, dword [edx + edi + 0x28]
push edx
push eax
push ebp
call fcn.004b9860
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
je 0x4bcb98
mov eax, dword [esi + 8]
mov edi, dword [esp + 0x30]
push 0x10
mov dword [eax + ebx + 0x18], 1
mov ecx, dword [esi + 8]
mov eax, dword [edi]
lea edx, [ecx + ebx + 8]
push edx
push eax
call fcn.00671ac0
mov eax, dword [edi]
lea edx, [esp + 0x2c]
xor ecx, ecx
push edx
push ecx
lea edx, [esp + 0x4c]
push ecx
push edx
lea edx, [esp + 0x48]
mov dword [esp + 0x48], ecx
push edx
push ecx
push eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
call fcn.0066c100
add esp, 0x28
test eax, eax
je 0x4bcb7c
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x2c]
mov dword [eax + ebx + 0x24], ecx
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x38]
mov dword [edx + ebx + 0x28], eax
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x20]
mov dword [ecx + ebx + 0x2c], edx
mov eax, dword [esp + 0x24]
mov dword [ecx + ebx + 0x30], eax
mov eax, dword [esi + 0x60]
test eax, eax
jne 0x4bcb98
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [edi]
or al, 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
push 0x767
push 1
call fcn.004b8630
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10