Function at 0x41f770
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f4f8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5cca0c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
push 0xffffffffffffffff
lea eax, [ebx + 0xc4]
push edi
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x28], 0
call fcn.0040a080
mov dword [ebp - 4], edi
lea esi, [ebx + 0x118]
jmp 0x41f7d0
mov eax, dword [esi + 4]
test eax, eax
je 0x41f81e
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x41f81e
push edi
mov ecx, esi
call fcn.0041e330
cmp byte [eax + 0x59], 0
jne 0x41f806
add edi, 1
jmp 0x41f7d0
push edi
mov ecx, esi
call fcn.0041e330
push 0xffffffffffffffff
add eax, 0x3c
push 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a080
mov eax, dword [ebx + 0x48]
push eax
call fcn.00501a60
add esp, 4
cmp dword [ebp - 0x14], 0x10
mov byte [ebp - 0x2d], al
jb 0x41f87b
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41f880
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, 1
cmp edi, 0x3fffffff
jg 0x41f880
lea eax, [edi + edi]
call fcn.00553150
mov esi, esp
test esi, esi
je 0x41f880
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0x3a8
mov word [esi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x41f882
lea ebx, [ebp - 0x28]
jmp 0x41f83a
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebx + 4]
mov dword [ebp - 0x34], eax
call fcn.004a1350
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x41f8b9
push str.uiview_enable_window
push eax
call esi
test eax, eax
je 0x41f8b9
mov ecx, dword [ebp + 8]
push ecx
push 0x7d1
push edi
call eax
mov edi, dword [ebx + 4]
call fcn.004a1350
test eax, eax
je 0x41f8dd
push str.uiview_enable_window
push eax
call esi
test eax, eax
je 0x41f8dd
mov edx, dword [ebp + 8]
push edx
push 0x7d4
push edi
call eax
mov edi, dword [ebx + 4]
call fcn.004a1350
test eax, eax
je 0x41f901
push str.uiview_enable_window
push eax
call esi
test eax, eax
je 0x41f901
mov ecx, dword [ebp + 8]
push ecx
push 0x7d6
push edi
call eax
mov edi, dword [ebx + 4]
call fcn.004a1350
test eax, eax
je 0x41f925
push str.uiview_enable_window
push eax
call esi
test eax, eax
je 0x41f925
mov edx, dword [ebp + 8]
push edx
push 0x7dc
push edi
call eax
cmp byte [ebp - 0x2d], 0
je 0x41f991
cmp dword [ebp - 0x34], 0
je 0x41f991
mov edi, dword [ebx + 4]
call fcn.004a1350
cmp dword [ebp + 8], 0
je 0x41f956
test eax, eax
je 0x41f973
push str.uiview_set_text_color
push eax
call esi
test eax, eax
je 0x41f973
push str.color_light_btn_txt_normal
jmp 0x41f96b
test eax, eax
je 0x41f973
push str.uiview_set_text_color
push eax
call esi
test eax, eax
je 0x41f973
push 0x59636c
push 0x7da
push edi
call eax
mov edi, dword [ebx + 4]
call fcn.004a1350
test eax, eax
je 0x41f9d8
push str.uiview_enable_window
push eax
call esi
test eax, eax
je 0x41f9d8
mov ecx, dword [ebp + 8]
push ecx
jmp 0x41f9d0
mov edi, dword [ebx + 4]
call fcn.004a1350
test eax, eax
je 0x41f9b6
push str.uiview_set_text_color
push eax
call esi
test eax, eax
je 0x41f9b6
push 0x59636c
push 0x7da
push edi
call eax
mov edi, dword [ebx + 4]
call fcn.004a1350
test eax, eax
je 0x41f9d8
push str.uiview_enable_window
push eax
call esi
test eax, eax
je 0x41f9d8
push 0
push 0x7da
push edi
call eax
mov edi, dword [ebx + 4]
call fcn.004a1350
cmp dword [ebp - 0x34], 0
je 0x41fa3e
cmp dword [ebp + 8], 0
je 0x41fa03
test eax, eax
je 0x41fa20
push str.uiview_set_text_color
push eax
call esi
test eax, eax
je 0x41fa20
push str.color_light_btn_txt_normal
jmp 0x41fa18
test eax, eax
je 0x41fa20
push str.uiview_set_text_color
push eax
call esi
test eax, eax
je 0x41fa20
push 0x59636c
push 0x7d9
push edi
call eax
mov ebx, dword [ebx + 4]
call fcn.004a1350
test eax, eax
je 0x41fa7d
push str.uiview_enable_window
push eax
call esi
test eax, eax
je 0x41fa7d
mov edx, dword [ebp + 8]
push edx
jmp 0x41fa75
test eax, eax
je 0x41fa5b
push str.uiview_set_text_color
push eax
call esi
test eax, eax
je 0x41fa5b
push 0x59636c
push 0x7d9
push edi
call eax
mov ebx, dword [ebx + 4]
call fcn.004a1350
test eax, eax
je 0x41fa7d
push str.uiview_enable_window
push eax
call esi
test eax, eax
je 0x41fa7d
push 0
push 0x7d9
push ebx
call eax
cmp dword [ebp - 0x14], 0x10
jb 0x41fa8f
mov eax, dword [ebp - 0x28]
push eax
call fcn.0055215c
add esp, 4
lea esp, [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00552d63
mov esp, ebp
pop ebp
ret 4