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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508660
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x54c494]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x4d2ddb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc4], eax
jmp 0x4d2de7
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0xc4], eax
push dword [ebp - 0xc4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4d2e0f
mov eax, dword [ebp - 0x10]
and eax, 0x10
sub eax, 0x10
neg eax
sbb eax, eax
inc eax
jmp 0x4d2fa0
push dword [ebp + 8]
lea ecx, [ebp - 0x30]
call fcn.00403870
and dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
call fcn.004d2cb9
pop ecx
mov eax, dword [0x50e1cc]
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x62], 0x5c
push 1
push dword [ebp - 0x68]
lea eax, [ebp - 0x62]
push eax
lea ecx, [ebp - 0x30]
call fcn.00445620
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [0x50e1cc]
jne 0x4d2e6f
mov byte [ebp - 0x35], 0
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00402090
mov al, byte [ebp - 0x35]
jmp 0x4d2fa0
push dword [ebp - 0x34]
push 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x30]
call int.004399e0
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 1
push dword [ebp - 0xcc]
call fcn.004d2d99
pop ecx
movzx eax, al
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x36], al
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x54]
call fcn.00402090
movzx eax, byte [ebp - 0x36]
test eax, eax
je 0x4d2ee1
mov byte [ebp - 0x55], 0
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00402090
mov al, byte [ebp - 0x55]
jmp 0x4d2fa0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
dec eax
cmp dword [ebp - 0x34], eax
jne 0x4d2f12
mov byte [ebp - 0x56], 1
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00402090
mov al, byte [ebp - 0x56]
jmp 0x4d2fa0
cmp dword [ebp - 0x18], 0x10
jb 0x4d2f23
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xd0], eax
jmp 0x4d2f2c
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xd0], eax
push 0
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebp - 0x18], 0x10
jb 0x4d2f4b
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xd4], eax
jmp 0x4d2f54
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xd4], eax
push dword [ebp - 0xd4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4d2f7d
mov eax, dword [ebp - 0x10]
and eax, 0x10
je 0x4d2f7d
mov dword [ebp - 0xd8], 1
jmp 0x4d2f84
and dword [ebp - 0xd8], 0
mov al, byte [ebp - 0xd8]
mov byte [ebp - 0x57], al
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00402090
mov al, byte [ebp - 0x57]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b596a
leave
ret