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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ec1e8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2e8
mov eax, dword [0x7ce4e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
test dl, dl
jne 0x4d9eb5
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4d9dc7
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4d9e0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp ecx, 2
jne 0x4d9de8
lea edi, [eax - 1]
jmp 0x4d9eb5
cmp ecx, 3
jne 0x4d9df5
lea edi, [ecx - 1]
jmp 0x4d9eb5
xor eax, eax
cmp ecx, 5
setne al
add eax, 3
mov dword [ebp - 0x2dc], eax
mov edi, eax
jmp 0x4d9eb5
test al, 0x10
je 0x4d9eb0
push 0x2a4
lea eax, [ebp - 0x2d8]
push 0
push eax
call fcn.005c0be0
add esp, 0xc
push 3
push ecx
push esi
lea ecx, [ebp - 0x2d8]
call fcn.004e0490
lea eax, [ebp - 0x2f4]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x2d8]
call fcn.004e07d0
lea ecx, [ebp - 0x2f4]
mov esi, dword [eax + 0x10]
call fcn.004743f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x84]
test esi, esi
jne 0x4d9e85
cmp eax, 0xffffffff
je 0x4d9e7e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, 5
jmp 0x4d9e96
cmp eax, 0xffffffff
je 0x4d9e91
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, 6
lea ecx, [ebp - 0x44]
call fcn.004e0c90
lea ecx, [ebp - 0x60]
call fcn.004743f0
lea ecx, [ebp - 0x80]
call fcn.004743f0
jmp 0x4d9eb5
mov edi, 7
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push 0x20
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0xf
call fcn.005be217
movups xmm0, xmmword [str.Windows.PostOperationState.]
mov edx, eax
mov dword [ebp - 0x20], 0x1b
mov dword [ebp - 0x30], edx
add esp, 4
mov dword [ebp - 0x1c], 0x1f
movups xmmword [edx], xmm0
movq xmm0, qword [0x796bac]
movq qword [edx + 0x10], xmm0
mov cx, word [0x796bb4]
mov word [edx + 0x18], cx
mov al, byte [0x796bb6]
mov byte [edx + 0x1a], al
mov byte [edx + 0x1b], 0
mov dword [ebp - 4], 1
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x2dc], ecx
test ecx, ecx
je 0x4d9f79
mov esi, dword [ebp - 0x1c]
mov eax, esi
mov edx, dword [ebp - 0x20]
sub eax, edx
push ecx
push dword [ebx + 8]
cmp ecx, eax
ja 0x4d9f63
lea eax, [ecx + edx]
cmp esi, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
lea esi, [eax + edx]
push esi
call fcn.005c0660
mov eax, dword [ebp - 0x2dc]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x4d9f79
mov byte [ebp - 0x2dc], 0
push dword [ebp - 0x2dc]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00489670
sub esp, 8
lea ecx, [ebp - 0x30]
push 9
push 8
call fcn.004eaa30
add esp, 0x10
mov ecx, eax
mov edx, dword [eax]
push edi
call dword [edx + 0x14]
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0x10
jb 0x4d9fc3
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4d9fb9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d9fe1
push ecx
push edx
call fcn.005be247
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005be209
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.005c44be
int3