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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov edi, dword [ebp + 8]
mov eax, dword [0x674014]
xor eax, ebp
mov dword [esp + 0x38], eax
mov esi, 0x1126
push edi
call fcn.004dcfe4
add esp, 4
test al, al
jne 0x4dd4f4
xor eax, eax
lea esi, [esp + 0x20]
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], eax
mov ecx, edi
mov edx, esi
call fcn.004dd509
mov ebx, eax
mov ecx, esi
call fcn.004dd5a0
mov byte [esp + 7], al
mov ecx, esi
mov edx, esi
call fcn.004dd5eb
test bl, bl
jne 0x4dd332
cmp byte [esp + 7], 0
jne 0x4dd332
mov dword [esp + 8], 0x7b
test al, al
je 0x4dd4dd
cmp byte [esp + 7], 0
jne 0x4dd3cc
lea ebx, [esp + 0x24]
lea edi, [esp + 0x14]
mov ecx, edi
push 0x627420
call fcn.00419880
movzx eax, byte [ebx + 7]
test al, al
cmovs eax, dword [ebx]
mov edx, dword [ebx - 4]
cmovns edx, esi
mov ecx, edi
push eax
push edx
call fcn.004ab748
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 7]
mov dword [esp + 0x33], edx
mov dword [esp + 0x30], ecx
mov dl, byte [eax + 0xb]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax], ecx
mov dword [eax + 8], ecx
cmp byte [ebx + 7], 0
jns 0x4dd3a0
push dword [esp + 0x20]
mov byte [esp + 0x10], dl
call fcn.005dc756
mov dl, byte [esp + 0x10]
add esp, 4
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x33]
mov dword [ebx + 3], ecx
mov dword [ebx], eax
mov byte [esp + 0x2b], dl
cmp byte [esp + 0x1f], 0
jns 0x4dd3c8
push dword [esp + 0x14]
call fcn.005dc756
add esp, 4
lea esi, [esp + 0x20]
xor edi, edi
dec edi
lea ebx, [esp + 0x2c]
mov dword [esp + 0xc], 0
lea ecx, [esp + 0x14]
push ebx
push edi
push 0
push esi
call fcn.004ab82c
cmp byte [esp + 0x2b], 0
jns 0x4dd3fc
push dword [esp + 0x20]
call fcn.005dc756
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
movsd xmm0, qword [esp + 0x14]
movsd qword [esp + 0x20], xmm0
cmp byte [esp + 0x2b], 0
mov eax, esi
jns 0x4dd41d
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4dd434
bt eax, 0xa
jae 0x4dd496
jmp 0x4dd4c6
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea esi, [eax - 2]
cmp esi, 2
jb 0x4dd484
cmp ebx, 0x7b
je 0x4dd484
test byte [esp + 0xc], 1
sete al
or al, byte [esp + 7]
jne 0x4dd479
lea ecx, [esp + 0x20]
push 0xffffffffffffffff
push 0x5c
call fcn.004abb74
mov dword [esp + 0x10], 2
cmp eax, 3
je 0x4dd484
mov dword [esp + 8], ebx
xor eax, eax
inc eax
mov dword [esp + 0x10], eax
cmp esi, 2
jb 0x4dd48e
cmp ebx, 0x7b
jne 0x4dd4b4
lea esi, [esp + 0x20]
lea ebx, [esp + 0x2c]
mov ecx, esi
push 0xffffffffffffffff
push 0x5c
call fcn.004abb74
mov edi, eax
mov al, 1
mov dword [esp + 0xc], eax
cmp edi, 2
ja 0x4dd3db
jmp 0x4dd4d5
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4dd4d0
lea esi, [esp + 0x20]
lea ebx, [esp + 0x2c]
jmp 0x4dd4a9
mov dword [esp + 8], 0
jmp 0x4dd4dd
cmp eax, 2
jne 0x4dd4dd
mov dword [esp + 8], 0x1126
cmp byte [esp + 0x2b], 0
jns 0x4dd4f0
push dword [esp + 0x20]
call fcn.005dc756
add esp, 4
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0x38]
xor ecx, ebp
call fcn.005dd6f3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret