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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
mov ecx, 0x14
rep stosd dword es:[edi], eax
pop edi
pop ecx
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
je 0x4d4a50
mov edx, dword [ebp - 0x18]
inc dword [edx]
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.004d1e20
cmp dword [ebp - 0x18], 0
je 0x4d4a6a
mov ecx, dword [ebp - 0x18]
call fcn.0040c8f0
mov eax, dword [ebp - 0x50]
mov dword [eax], 0x565ddc
mov eax, dword [ebp - 0x50]
mov dword [eax + 0xc], 0
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x10], 0
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x11], 0
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x12], 0
cmp byte [ebp + 0xc], 1
jne 0x4d4b48
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.004da580
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004d3840
pop ecx
pop ecx
cmp dword [ebp - 0x1c], 0
je 0x4d4ac5
mov ecx, dword [ebp - 0x1c]
call fcn.0040c8f0
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
je 0x4d4ad6
mov edx, dword [ebp - 0x20]
inc dword [edx]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
je 0x4d4ae9
mov edx, dword [ebp - 0x24]
inc dword [edx]
push 1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.004d4030
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x50]
add ecx, 0xc
call fcn.0040d2e0
cmp dword [ebp - 0x28], 0
je 0x4d4b1c
mov ecx, dword [ebp - 0x28]
call fcn.0040c8f0
cmp dword [ebp - 0x24], 0
je 0x4d4b2a
mov ecx, dword [ebp - 0x24]
call fcn.0040c8f0
cmp dword [ebp - 0x20], 0
je 0x4d4b38
mov ecx, dword [ebp - 0x20]
call fcn.0040c8f0
cmp dword [ebp - 4], 0
je 0x4d4b56
mov ecx, dword [ebp - 4]
call fcn.0040c8f0
jmp 0x4d4b56
push dword [ebp + 8]
mov ecx, dword [ebp - 0x50]
add ecx, 0xc
call fcn.0040d2e0
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0
je 0x4d4b6a
mov edx, dword [ebp - 0x2c]
inc dword [edx]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.004d5300
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x50]
add ecx, 0xc
call fcn.0040d2e0
cmp dword [ebp - 0x30], 0
je 0x4d4b97
mov ecx, dword [ebp - 0x30]
call fcn.0040c8f0
cmp dword [ebp - 0x2c], 0
je 0x4d4ba5
mov ecx, dword [ebp - 0x2c]
call fcn.0040c8f0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
je 0x4d4bd4
mov edx, dword [ebp - 0x34]
inc dword [edx]
lea eax, [ebp - 0x14]
push eax
push 0x5c
lea eax, [ebp - 0x34]
push eax
call fcn.0052fbe0
add esp, 0xc
cmp dword [ebp - 0x34], 0
je 0x4d4bf4
mov ecx, dword [ebp - 0x34]
call fcn.0040c8f0
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x4d4c09
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 4]
add edx, 1
jmp 0x4d4c0e
mov edx, 0x548034
cmp byte [edx], 0x5c
jne 0x4d4c43
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x4d4c28
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 4]
add edx, 2
jmp 0x4d4c2d
mov edx, 0x548034
cmp byte [edx], 0x5c
jne 0x4d4c43
mov eax, dword [ebp - 0xc]
cmp eax, 4
jne 0x4d4c43
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x10], 1
jmp 0x4d4cad
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x4d4c58
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 4]
add edx, 2
jmp 0x4d4c5d
mov edx, 0x548034
cmp byte [edx], 0x3a
jne 0x4d4ca3
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x4d4c74
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [edx + 0xc]
jmp 0x4d4c79
mov eax, 0
cmp eax, 3
je 0x4d4c9a
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x4d4c90
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [edx + 0xc]
jmp 0x4d4c95
mov eax, 0
cmp eax, 2
jne 0x4d4ca3
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x10], 1
jmp 0x4d4cad
movzx edx, byte [ebp + 0x10]
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x10], dl
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0
je 0x4d4cc1
mov edx, dword [ebp - 0x38]
inc dword [edx]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004d3840
pop ecx
pop ecx
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x50]
add ecx, 0xc
call fcn.0040d2e0
cmp dword [ebp - 0x3c], 0
je 0x4d4ced
mov ecx, dword [ebp - 0x3c]
call fcn.0040c8f0
cmp dword [ebp - 0x38], 0
je 0x4d4cfb
mov ecx, dword [ebp - 0x38]
call fcn.0040c8f0
cmp dword [ebp + 0x14], 0
je 0x4d4da7
call fcn.0052fe80
cmp al, 0
je 0x4d4d3f
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x50]
add ecx, 0xc
call fcn.0040cf40
lea ecx, [ebp - 0x40]
call fcn.0040d1f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x40], 0
je 0x4d4d90
mov ecx, dword [ebp - 0x40]
call fcn.0040c8f0
jmp 0x4d4d90
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0
je 0x4d4d53
mov edx, dword [ebp - 0x44]
inc dword [edx]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00514300
pop ecx
pop ecx
lea ecx, [ebp - 0x48]
call fcn.0040d1c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x48], 0
je 0x4d4d82
mov ecx, dword [ebp - 0x48]
call fcn.0040c8f0
cmp dword [ebp - 0x44], 0
je 0x4d4d90
mov ecx, dword [ebp - 0x44]
call fcn.0040c8f0
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x4d4da7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
setne dl
mov eax, dword [ebp + 0x14]
mov byte [eax], dl
cmp dword [ebp - 0x10], 0
je 0x4d4dbc
push 0x401fb0
push dword [ebp - 0x10]
call fcn.0053b0b0
pop ecx
pop ecx
mov eax, dword [ebp - 0x50]
leave
ret 0x10