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

Disassembly:
push 0x128
mov eax, 0x532f60
call fcn.00527194
mov esi, ecx
mov dword [ebp - 0x120], esi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x40]
mov edx, esi
call fcn.004c8f01
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
jb 0x4c72ea
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x4c75e9
cmp dword [esi + 0x28], 0
jne 0x4c7547
lea ebx, [esi + 0x60]
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x4c7310
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c7547
lea eax, [ebp - 0x134]
mov ecx, edi
push eax
call fcn.004c6c5a
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x128], ecx
cmp eax, ecx
je 0x4c74c8
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.004c8f01
push 0x4499dc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0049932c
mov edx, ebx
lea ecx, [ebp - 0xb8]
call fcn.004c8f01
push 8
mov byte [ebp - 4], 3
mov ecx, dword [eax + 0x10]
pop edi
cmp dword [eax + 0x14], edi
jb 0x4c738b
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004993b0
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 2
call fcn.0047de9f
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jb 0x4c73af
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x4c744d
lea ecx, [ebp - 0xe8]
call fcn.004c9220
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xd0]
call fcn.004c8f01
push 0x4499dc
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0049932c
push eax
lea ecx, [ebp - 0x70]
call fcn.004a139e
mov byte [ebp - 4], 6
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jb 0x4c7402
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x70]
push eax
call fcn.004993b0
push eax
lea ecx, [ebp - 0x58]
call fcn.004a139e
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.0047c80b
lea ecx, [ebp - 0x58]
call fcn.0047de9f
lea ecx, [ebp - 0x70]
call fcn.0047de9f
lea ecx, [ebp - 0xd0]
call fcn.0047de9f
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 2
call fcn.0047c9d0
push 0x10000
call fcn.00526210
mov esi, eax
pop ecx
mov dword [ebp - 0x124], esi
mov byte [ebp - 4], 7
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jb 0x4c746f
mov eax, dword [ebp - 0x28]
push 1
push eax
push 0x8000
push esi
call dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchCanonicalizeEx]
mov edi, eax
test edi, edi
js 0x4c74fa
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4c74dc
test esi, esi
je 0x4c749b
push esi
call fcn.005261fb
pop ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0047de9f
mov eax, dword [ebp - 0x11c]
add eax, 0x18
mov dword [ebp - 0x11c], eax
cmp eax, dword [ebp - 0x128]
jne 0x4c7352
mov esi, dword [ebp - 0x120]
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 0
call fcn.004a08d8
jmp 0x4c75e9
push esi
lea ecx, [ebp - 0x40]
call fcn.004bd27a
test esi, esi
je 0x4c74f0
push esi
call fcn.005261fb
pop ecx
lea ecx, [ebp - 0x28]
call fcn.0047de9f
jmp 0x4c74c2
mov ecx, dword [ebp + 4]
mov edx, 0x26a
push edi
push 0x4499e0
call fcn.004c60f3
cmp dword [ebp - 0x124], 0
je 0x4c7522
push dword [ebp - 0x124]
call fcn.005261fb
pop ecx
lea ecx, [ebp - 0x28]
call fcn.0047de9f
lea ecx, [ebp - 0x134]
call fcn.004a08d8
lea ecx, [ebp - 0x40]
call fcn.0047de9f
mov eax, edi
call fcn.0052713e
ret 4
lea ecx, [ebp - 0x118]
call fcn.004c9220
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x100]
call fcn.004c8f01
push 0x4499dc
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.0049932c
push eax
lea ecx, [ebp - 0xa0]
call fcn.004a139e
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
jb 0x4c758f
mov eax, dword [ebp - 0x40]
push dword [ebp - 0x30]
lea ecx, [ebp - 0xa0]
push eax
call fcn.004993b0
push eax
lea ecx, [ebp - 0x88]
call fcn.004a139e
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x40]
call fcn.0047c80b
lea ecx, [ebp - 0x88]
call fcn.0047de9f
lea ecx, [ebp - 0xa0]
call fcn.0047de9f
lea ecx, [ebp - 0x100]
call fcn.0047de9f
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0
call fcn.0047c9d0
cmp dword [ebp - 0x30], 0
je 0x4c7609
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.004c7792
lea ecx, [ebp - 0x40]
call fcn.0047de9f
xor eax, eax
jmp 0x4c753f
push 0x449a10
mov edx, 0x27e
mov ecx, 0x4499e0
call fcn.004c4fbe
int3