Function at 0x4c6cc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x645038
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x7496c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], ecx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x44], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [edi + 0x74], ebx
je 0x4c6d06
mov eax, dword [edi + 0x74]
jmp 0x4c6d09
lea eax, [edi + 0x78]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4c6d10
sub eax, edx
sar eax, 1
je 0x4c6f2e
cmp dword [edi + 0x74], ebx
je 0x4c6d2f
mov eax, dword [edi + 0x74]
jmp 0x4c6d32
lea eax, [edi + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c6f2e
cmp dword [edi + 0x74], ebx
je 0x4c6d4c
mov eax, dword [edi + 0x74]
jmp 0x4c6d4f
lea eax, [edi + 0x78]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402180
mov byte [ebp - 4], 1
cmp dword [edi + 0x5c], ebx
je 0x4c6d66
mov ecx, dword [edi + 0x5c]
jmp 0x4c6d69
lea ecx, [edi + 0x60]
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x4c6d73
lea eax, [ebp - 0x28]
push ecx
push eax
call fcn.0061874a
add esp, 8
test eax, eax
je 0x4c6f5a
cmp dword [edi + 0x5c], ebx
je 0x4c6d8f
mov eax, dword [edi + 0x5c]
jmp 0x4c6d92
lea eax, [edi + 0x60]
push 1
push eax
call fcn.004a2840
add esp, 8
cmp dword [edi + 0x5c], ebx
je 0x4c6da7
mov ecx, dword [edi + 0x5c]
jmp 0x4c6daa
lea ecx, [edi + 0x60]
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x4c6db4
lea eax, [ebp - 0x28]
push 1
push ecx
push eax
call fcn.004a23d0
add esp, 0xc
test eax, eax
jne 0x4c6f5a
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x1c], ax
mov byte [ebp - 4], 2
cmp dword [edi + 0x5c], ebx
je 0x4c6de0
mov eax, dword [edi + 0x5c]
jmp 0x4c6de3
lea eax, [edi + 0x60]
push eax
lea ecx, [ebp - 0x20]
call fcn.004017f0
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x4c6df6
lea eax, [ebp - 0x1c]
push 0x5c
push eax
call fcn.00612d55
add esp, 8
mov dword [ebp - 0x4c], ebx
cmp eax, ebx
je 0x4c6f16
add eax, 2
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x4c6e1e
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.004a29e0
add esp, 8
test eax, eax
jne 0x4c6f16
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x4c6e3b
lea eax, [ebp - 0x1c]
push 0x5c
add eax, 6
push eax
call fcn.00614db0
add esp, 8
mov esi, eax
jmp 0x4c6e50
cmp esi, ebx
je 0x4c6ecb
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x4c6e5e
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x38]
call fcn.00402180
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x38]
cmp eax, ebx
mov ecx, eax
jne 0x4c6e77
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x4c6e81
lea eax, [ebp - 0x1c]
mov edx, esi
sub edx, eax
sar edx, 1
xor eax, eax
mov word [ecx + edx*2], ax
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x4c6e97
lea eax, [ebp - 0x34]
push 1
push eax
call fcn.004a29e0
add esp, 8
test eax, eax
jne 0x4c6ed5
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x4c6eb0
lea eax, [ebp - 0x34]
push 1
push eax
call fcn.004a2bc0
add esp, 8
test eax, eax
jne 0x4c6ed5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.004011f0
cmp dword [edi + 0x5c], ebx
je 0x4c6ef6
mov ecx, dword [edi + 0x5c]
jmp 0x4c6ef9
push 0x5c
add esi, 2
push esi
call fcn.00614db0
add esp, 8
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.004011f0
jmp 0x4c6e50
lea ecx, [edi + 0x60]
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x4c6f03
lea eax, [ebp - 0x28]
push 1
push ecx
push eax
call fcn.004a23d0
add esp, 0xc
mov dword [ebp - 0x4c], eax
cmp eax, ebx
jne 0x4c6f4e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004011f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004011f0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00613241
mov esp, ebp
pop ebp
ret 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004011f0
xor ebx, ebx
mov dword [ebp - 0x40], ebx
xor esi, esi
mov dword [ebp - 0x48], esi
mov ecx, dword [ebp - 0x3c]
cmp esi, dword [ecx + 0x51c]
jge 0x4c6f97
mov edi, ecx
add edi, 0x514
push esi
mov ecx, edi
call fcn.004c65d0
mov edx, dword [ebp + 8]
cmp dword [eax], edx
jne 0x4c6fd2
push esi
mov ecx, edi
call fcn.004c65d0
mov ebx, dword [eax + 4]
mov dword [ebp - 0x40], ebx
mov edi, dword [ebp - 0x44]
test ebx, ebx
jne 0x4c6fb4
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4c6fc7
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.004c5650
mov ebx, eax
mov dword [ebp - 0x40], ebx
test ebx, ebx
je 0x4c6fc7
mov dword [ebx + 0xcc], 1
push 3
mov ecx, ebx
call fcn.005aaf10
cmp dword [edi + 0x5c], 0
je 0x4c6fd8
mov eax, dword [edi + 0x5c]
jmp 0x4c6fdb
inc esi
mov edi, dword [ebp - 0x44]
jmp 0x4c6f61
lea eax, [edi + 0x60]
push 0
push 0
push eax
call fcn.005ae940
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004011f0
mov eax, 1
jmp 0x4c6f30