Function at 0x49af12
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, 0x38
mov ebx, dword [ebp + 8]
mov eax, dword [0x4f6014]
xor eax, ebp
mov dword [esp + 0x30], eax
mov esi, 0x1126
push ebx
call fcn.0049ac34
add esp, 4
test al, al
jne 0x49b179
xor eax, eax
lea esi, [esp + 0x18]
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], eax
mov ecx, ebx
mov edx, esi
call fcn.0049b18e
mov ebx, eax
mov ecx, esi
call fcn.0049b225
mov bh, al
mov ecx, esi
mov edx, esi
call fcn.0049b279
mov byte [esp + 3], bh
test bh, bh
jne 0x49af89
test bl, bl
jne 0x49af89
mov dword [esp + 4], 0x7b
test al, al
je 0x49b162
cmp byte [esp + 3], 0
jne 0x49b01f
lea ebx, [esp + 0x1c]
lea edi, [esp + 0xc]
mov ecx, edi
push str.._
call fcn.00413982
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.00435670
mov edi, dword [eax]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 7]
mov dword [esp + 0x2b], edx
mov dword [esp + 0x28], 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 0x49aff7
push dword [esp + 0x18]
mov byte [esp + 0xc], dl
call fcn.004a7ee0
mov dl, byte [esp + 0xc]
add esp, 4
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2b]
mov dword [ebx + 3], ecx
mov dword [ebx], eax
mov byte [esp + 0x23], dl
cmp byte [esp + 0x17], 0
jns 0x49b01f
push dword [esp + 0xc]
call fcn.004a7ee0
add esp, 4
xor edi, edi
dec edi
lea ebx, [esp + 0x24]
mov dword [esp + 8], 0
lea ecx, [esp + 0xc]
push ebx
push edi
push 0
push esi
call fcn.00435880
cmp byte [esp + 0x23], 0
jns 0x49b04f
push dword [esp + 0x18]
call fcn.004a7ee0
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
movsd xmm0, qword [esp + 0xc]
movsd qword [esp + 0x18], xmm0
cmp byte [esp + 0x23], 0
mov eax, esi
jns 0x49b070
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49b087
bt eax, 0xa
jae 0x49b0fb
jmp 0x49b14b
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 2]
cmp ecx, 2
jb 0x49b0e9
cmp eax, 0x7b
je 0x49b0e9
test byte [esp + 8], 1
sete dl
or dl, byte [esp + 3]
jne 0x49b0e2
movzx edx, byte [esp + 0x23]
test dl, dl
cmovs edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovns ebx, esi
test edx, edx
je 0x49b0e2
add edx, edx
test edx, edx
je 0x49b0e2
lea esi, [edx - 2]
cmp word [ebx + edx - 2], 0x5c
mov edx, esi
jne 0x49b0c7
mov ebx, 2
cmp esi, 6
je 0x49b0e9
mov dword [esp + 4], eax
xor ebx, ebx
inc ebx
cmp ecx, 2
jb 0x49b0f3
cmp eax, 0x7b
jne 0x49b13d
lea esi, [esp + 0x18]
lea ebx, [esp + 0x24]
movzx eax, byte [esp + 0x23]
test al, al
cmovs eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmovns ecx, esi
mov dl, 1
mov dword [esp + 8], edx
test eax, eax
je 0x49b12f
add eax, eax
test eax, eax
je 0x49b12f
lea edi, [eax - 2]
cmp word [ecx + eax - 2], 0x5c
mov eax, edi
jne 0x49b11a
sar edi, 1
jmp 0x49b132
xor edi, edi
dec edi
cmp edi, 2
ja 0x49b02e
jmp 0x49b15a
test ebx, ebx
jne 0x49b155
lea esi, [esp + 0x18]
lea ebx, [esp + 0x24]
jmp 0x49b132
mov dword [esp + 4], 0
jmp 0x49b162
cmp ebx, 2
jne 0x49b162
mov dword [esp + 4], 0x1126
cmp byte [esp + 0x23], 0
jns 0x49b175
push dword [esp + 0x18]
call fcn.004a7ee0
add esp, 4
mov esi, dword [esp + 4]
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.004a8de3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret