Function at 0x45fc30
Capabilities:
Check if file exists
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4a802d
mov eax, dword fs:[0]
push eax
sub esp, 0x718
mov eax, dword [0x4c97a0]
xor eax, esp
mov dword [esp + 0x710], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c97a0]
xor eax, esp
push eax
lea eax, [esp + 0x72c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x73c]
fldz
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
fstp qword [esp + 0x44]
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x50], eax
mov dword [eax], ebx
lea eax, [esi + 0x18]
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x44], eax
call edi
test eax, eax
je 0x45ff2d
lea ebp, [esi + 0x428]
push ebp
call edi
test eax, eax
je 0x45ff2d
mov edi, dword [esp + 0x40]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45ff2d
push ebp
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x45ff2d
lea eax, [esp + 0x28]
push eax
call fcn.00433170
add esi, 0x220
push esi
push edi
mov dword [esp + 0x73c], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
sbb eax, eax
inc eax
cmp eax, ebx
je 0x45ff64
mov ecx, 0x5c
mov word [esp + 0x50c], cx
mov dword [esp + 0x510], ebx
mov dword [esp + 0x514], ebx
lea edx, [esp + 0x14]
push edx
mov ecx, edi
mov byte [esp + 0x738], 1
call fcn.0046c8c0
push eax
lea eax, [esp + 0x1c]
push eax
mov ebx, str..
mov byte [esp + 0x73c], 2
call fcn.00461a70
mov eax, dword [eax]
add esp, 8
lea esi, [esp + 0xb4]
call fcn.0045e760
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45fd79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x734], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45fda1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x514]
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebp, 0x2e
test eax, eax
je 0x45fdfd
mov ecx, dword [esp + 0xb4]
shr ecx, 4
and ecx, 1
je 0x45fdf5
cmp word [esp + 0xe0], bp
jne 0x45fdf5
mov dx, word [esp + 0xe2]
test dx, dx
je 0x45fe98
cmp dx, bp
jne 0x45fdf5
cmp word [esp + 0xe4], 0
je 0x45fe98
test ecx, ecx
jne 0x45fe98
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0xb8]
call fcn.0045e870
mov eax, dword [eax]
push str.filelist.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
mov eax, dword [esp + 0x18]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45fe41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x45fe91
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xb8]
call fcn.0045e870
mov ebx, eax
lea edi, [esp + 0x28]
mov byte [esp + 0x734], 3
call fcn.0045f0c0
mov byte [esp + 0x734], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45fe91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x514]
mov ecx, dword [esp + 0x510]
test ecx, ecx
je 0x45fec8
test eax, eax
je 0x45fec8
lea edx, [esp + 0xb4]
push edx
push ecx
call esi
mov dword [esp + 0x514], eax
test eax, eax
jne 0x45fdb7
mov ecx, dword [esp + 0x510]
mov byte [esp + 0x734], 0
mov dword [esp + 0x514], 0
test ecx, ecx
je 0x45feeb
cmp ecx, 0xffffffff
je 0x45feeb
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x1c]
xor ebx, ebx
mov esi, dword [esp + 0x38]
sub esi, dword [esp + 0x34]
sar esi, 2
mov dword [esp + 0x20], esi
cmp esi, ebx
jne 0x460025
lea esi, [esp + 0x28]
call fcn.0040e790
mov edi, dword [esp + 0x24]
cmp ebp, ebx
je 0x45ff22
push ebp
call fcn.0048c465
add esp, 4
cmp edi, ebx
je 0x45ff2d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
fld qword [esp + 0x44]
fld qword [0x4ba978]
fmul st(1)
fld qword [0x4ba970]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x460282
fldz
fcomp st(3)
fnstsw ax
fstp st(2)
test ah, 5
jp 0x460284
fstp st(0)
jmp 0x460286
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, ebx
je 0x460274
cmp edi, 0xffffffff
je 0x460274
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.004848ce
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
cmp ebp, ebx
jne 0x45ffb8
lea esi, [esp + 0x28]
call fcn.0040e790
jmp 0x45ff15
push ebx
lea ecx, [esp + 0x1c]
push ecx
push esi
push ebp
push edi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45ffaa
cmp dword [esp + 0x18], esi
jne 0x45ffaa
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov edx, esp
mov dword [esp + 0x24], esp
push edx
mov ecx, 0x4b4f2c
mov dword [esp + 0x2c], ebx
mov byte [esi + ebp], bl
call fcn.0046c8c0
lea eax, [esp + 0x2c]
push eax
push ecx
mov ecx, esp
mov byte [esp + 0x740], 4
mov dword [esp + 0x20], esp
push ecx
mov ecx, ebp
call fcn.0045f3e0
mov byte [esp + 0x740], bl
call fcn.0045f140
add esp, 0xc
jmp 0x45fef1
lea edx, [esp + 0x8c]
push edx
call fcn.0045f470
xor ebp, ebp
cmp esi, ebx
mov byte [esp + 0x734], 5
jle 0x46021c
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x34]
sar eax, 2
cmp ebp, eax
jb 0x460058
call fcn.0048b4bc
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + ebp*4]
sub eax, 0x10
call fcn.0046b5f0
add eax, 0x10
mov dword [esp + 0x14], eax
lea edi, [esp + 0x14]
mov byte [esp + 0x734], 6
call fcn.0045fa00
mov ebx, edi
call fcn.0045fb50
mov ebx, eax
call fcn.0045fa60
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x4600b4
add eax, 0xfffffff0
mov byte [esp + 0x734], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x460203
mov ebx, dword [esp + 0xa4]
mov edi, dword [esp + 0x8c]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xb0]
push edx
lea esi, [esp + 0x94]
call fcn.0044ed00
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x4600e7
cmp eax, edi
je 0x4600ec
call fcn.0048b4bc
cmp dword [esi + 4], ebx
jne 0x4601e7
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x526]
push edx
mov word [esp + 0x528], cx
call fcn.0048dc10
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x4c]
add esp, 0xc
push eax
push ecx
lea edx, [esp + 0x524]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x51c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4601e7
lea ecx, [esp + 0x14]
push ecx
lea ebx, [esp + 0x90]
call fcn.0044f460
xor esi, esi
mov dword [eax], esi
xor eax, eax
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
push esi
lea eax, [esp + 0x524]
push eax
mov dword [esp + 0x74], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4601e7
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x54], ecx
mov ecx, eax
and eax, 0x7fffffff
and ecx, 0x80000000
mov dword [esp + 0x58], eax
fild qword [esp + 0x54]
mov eax, dword [esp + 0x50]
inc dword [eax]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], esi
fild qword [esp + 0x5c]
fchs
faddp st(1)
fadd qword [esp + 0x44]
fstp qword [esp + 0x44]
mov byte [esp + 0x734], 5
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46020f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebp
cmp ebp, dword [esp + 0x20]
jl 0x460044
xor ebx, ebx
lea ecx, [esp + 0x8c]
push ecx
mov byte [esp + 0x738], bl
call fcn.0045f980
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x46024e
mov edi, dword [esp + 0x38]
call fcn.004602b0
mov edx, dword [esp + 0x34]
push edx
call fcn.0048b128
add esp, 4
mov eax, dword [esp + 0x28]
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.0048b128
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
add esp, 4
jmp 0x45ff15
lea esi, [esp + 0x28]
call fcn.0040e790
jmp 0x45ff22
fstp st(2)
fstp st(1)
mov ecx, dword [esp + 0x72c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x710]
xor ecx, esp
call fcn.0048b133
add esp, 0x724
ret 4