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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x57b070]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 4], ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
push edi
test ebx, ebx
je 0x44ddbb
cmp word [ebx], 0
je 0x44ddbb
lea eax, [esi + 0x5c]
xor edi, edi
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0xc]
mov esi, dword [eax]
mov dword [esp + 0x20], eax
cmp esi, dword [eax + 4]
je 0x44db32
nop word [eax + eax]
mov eax, dword [esi]
push ebx
push dword [eax + 0xc]
call fcn.004b2ecb
add esp, 8
test eax, eax
je 0x44db30
mov eax, dword [esp + 0x20]
add esi, 4
cmp esi, dword [eax + 4]
jne 0x44db10
jmp 0x44db32
mov edi, dword [esi]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x44db59
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret 4
push 0x30
call fcn.004a35dc
mov esi, eax
add esp, 4
mov ecx, esi
mov dword [esp + 0x10], esi
call fcn.00452b70
push 0x2e
push ebx
mov dword [esi], vtable.t_cuTextureEx.0
mov dword [esp + 0x2c], esi
call fcn.004a550b
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x44db96
mov eax, dword [esi]
mov ecx, esi
jmp 0x44ddb8
push ebx
call fcn.0044d950
mov edi, eax
test edi, edi
jne 0x44dc26
push str..bmp
push dword [esp + 0x18]
call fcn.004b2ecb
add esp, 8
test eax, eax
jne 0x44dbc5
lea edi, [eax + 1]
xor bl, bl
jmp 0x44dc71
push str..png
push dword [esp + 0x18]
call fcn.004b2ecb
add esp, 8
test eax, eax
jne 0x44dbe8
push ebx
push ebx
mov ecx, esi
lea edi, [eax + 2]
call fcn.00452e90
jmp 0x44dc67
push 0x55dec0
push dword [esp + 0x18]
call fcn.004b2ecb
add esp, 8
test eax, eax
jne 0x44dc0b
push ebx
push ebx
mov ecx, esi
lea edi, [eax + 3]
call fcn.00453010
jmp 0x44dc67
push str..gif
push dword [esp + 0x18]
call fcn.004b2ecb
add esp, 8
mov ecx, 4
test eax, eax
cmove edi, ecx
xor bl, bl
cmp edi, 1
je 0x44dc71
cmp edi, 2
jne 0x44dc41
mov ebx, dword [esp + 0xc]
mov ecx, esi
push ebx
push ebx
call fcn.00452e90
jmp 0x44dc67
cmp edi, 3
jne 0x44dc55
mov ebx, dword [esp + 0xc]
mov ecx, esi
push ebx
push ebx
call fcn.00453010
jmp 0x44dc67
cmp edi, 4
jne 0x44dc71
mov eax, dword [esp + 0xc]
mov ecx, esi
push eax
push eax
call fcn.00452c50
mov bl, al
test bl, bl
jne 0x44ddd4
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0x48]
cmp esi, dword [eax + 0x4c]
je 0x44dcf0
nop dword [eax]
push dword [esp + 0xc]
mov ecx, dword [esi]
call fcn.0044fd00
test eax, eax
je 0x44dce4
cmp edi, 1
je 0x44dcdc
cmp edi, 2
jne 0x44dcac
push dword [eax + 8]
mov ecx, dword [esp + 0x14]
push dword [eax + 4]
push dword [eax]
call fcn.00452f40
jmp 0x44dcda
cmp edi, 3
jne 0x44dcc4
push dword [eax + 8]
mov ecx, dword [esp + 0x14]
push dword [eax + 4]
push dword [eax]
call fcn.004530e0
jmp 0x44dcda
cmp edi, 4
jne 0x44dcdc
push dword [eax + 8]
mov ecx, dword [esp + 0x14]
push dword [eax + 4]
push dword [eax]
call fcn.00452d00
mov bl, al
test bl, bl
jne 0x44ddd4
mov eax, dword [esp + 0x18]
add esi, 4
cmp esi, dword [eax + 0x4c]
jne 0x44dc80
push 0x208
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.004a64e0
mov eax, dword [esp + 0x24]
add esp, 0xc
mov esi, dword [eax + 0x30]
cmp esi, dword [eax + 0x34]
je 0x44ddb2
push dword [esp + 0xc]
lea eax, [esp + 0x2c]
push dword [esi]
push 0x5570a4
push 0x104
push eax
call fcn.00425020
add esp, 0x14
xor al, al
jne 0x44dda2
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44dda2
shr eax, 4
not al
and al, 1
je 0x44dda2
cmp edi, 1
je 0x44dd9e
cmp edi, 2
jne 0x44dd6c
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x10]
call fcn.00452e90
jmp 0x44dd9c
cmp edi, 3
jne 0x44dd85
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x10]
call fcn.00453010
jmp 0x44dd9c
cmp edi, 4
jne 0x44dd9e
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x10]
call fcn.00452c50
mov bl, al
test bl, bl
jne 0x44ddd4
mov eax, dword [esp + 0x18]
add esi, 4
cmp esi, dword [eax + 0x34]
jne 0x44dd14
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
call dword [eax + 8]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
call fcn.004478b0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x234]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret 4