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

Disassembly:
mov eax, 0x420700
call fcn.00417aac
sub esp, 0x324
push esi
mov dword [ebp - 0x18], ecx
push 0x425c20
push 1
lea ecx, [ebp - 0x10]
call fcn.004169d0
mov esi, 0x100
lea eax, [ebp - 0x2c]
and dword [ebp - 4], 0
push esi
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x10]
call fcn.00416bb0
test eax, eax
je 0x40bc76
push ebx
push edi
lea eax, [ebp - 0x330]
push esi
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x10]
call fcn.00416a10
and dword [ebp - 0x14], 0
push 0x2c
pop ebx
lea eax, [ebp - 0x330]
push ebx
push eax
call fcn.004187e6
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x40bada
and byte [esi], 0
lea eax, [ebp - 0x330]
push eax
call fcn.004187db
test eax, eax
pop ecx
mov dword [ebp - 0x14], eax
jge 0x40bada
and dword [ebp - 0x14], 0
inc esi
push ebx
push esi
call fcn.004187e6
pop ecx
test eax, eax
pop ecx
je 0x40bc52
and byte [eax], 0
lea esi, [eax + 1]
cmp byte [esi], 0x20
jne 0x40bafa
inc esi
jmp 0x40baf2
push ebx
push esi
call fcn.004187e6
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x40bc52
and byte [edi], 0
movsx eax, byte [esi]
push eax
call fcn.00418728
test eax, eax
pop ecx
je 0x40bb52
push esi
call fcn.004187db
test eax, eax
pop ecx
je 0x40bc52
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xd8]
lea ecx, [ebp - 0xd8]
push 0x425c18
push eax
mov dword [ebp - 0x20], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40bb55
mov dword [ebp - 0x20], esi
inc edi
push ebx
push edi
call fcn.004187e6
pop ecx
mov esi, eax
pop ecx
cmp byte [edi], 0x20
jne 0x40bb69
inc edi
jmp 0x40bb61
test esi, esi
mov dword [ebp - 0x24], 0x3e8
je 0x40bc52
mov al, byte [edi]
cmp al, 0x30
jl 0x40bb82
cmp al, 0x39
jle 0x40bb86
cmp al, 0x2d
jne 0x40bba1
and byte [esi], 0
push edi
call fcn.004187db
lea edi, [esi + 1]
push ebx
push edi
mov dword [ebp - 0x24], eax
call fcn.004187e6
add esp, 0xc
mov esi, eax
test esi, esi
je 0x40bc52
mov eax, dword [ebp - 0x18]
and byte [esi], 0
and dword [ebp - 0x1c], 0
inc esi
mov eax, dword [eax + 0x50]
push esi
lea ecx, [ebp - 0x38]
mov ebx, dword [eax + 8]
call fcn.0040836a
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00402ab4
test eax, eax
je 0x40bc1e
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x40bbe1
call fcn.00402193
jmp 0x40bbe3
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40bc1e
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x40bbfd
call fcn.00402193
jmp 0x40bbff
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x40bc15
mov dword [ebp - 0x1c], 1
jmp 0x40bc1e
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x50]
mov ebx, dword [eax + 8]
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x24]
push edi
push dword [ebp - 0x20]
push ebx
call fcn.0040bc91
cmp dword [ebp - 0x1c], 0
je 0x40bc3e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x38]
and byte [ebp - 4], 0
test ecx, ecx
je 0x40bc52
call fcn.00401c6b
and dword [ebp - 0x38], 0
mov esi, 0x100
lea eax, [ebp - 0x2c]
push esi
push eax
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00416c20
test eax, eax
jne 0x40ba8f
pop edi
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004169f0
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop esi
mov dword fs:[0], ecx
leave
ret