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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e628
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 esi, ecx
xor ebx, ebx
push 0xffffffffffffffff
lea eax, [esi + 0xc4]
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.0040a080
xor edi, edi
mov dword [ebp - 4], ebx
add esi, 0x118
lea esp, [esp]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x41232d
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 0x41232d
push edi
mov ecx, esi
call fcn.0040fb40
cmp byte [eax + 0x59], 0
jne 0x412316
add edi, 1
jmp 0x4122e0
push edi
mov ecx, esi
call fcn.0040fb40
push 0xffffffffffffffff
add eax, 0x3c
push ebx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a080
cmp dword [ebp - 0x14], 0x10
jb 0x41237b
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x412380
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, 1
cmp edi, 0x3fffffff
jg 0x412380
lea eax, [edi + edi]
call fcn.00553150
mov esi, esp
test esi, esi
je 0x412380
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 0x412382
lea ebx, [ebp - 0x28]
jmp 0x41233a
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [ebp - 0x34]
mov edi, eax
mov eax, dword [esi + 0x48]
push eax
mov dword [ebp - 0x38], edi
call fcn.00501a60
add esp, 4
test edi, edi
mov byte [ebp - 0x2d], al
je 0x4123c7
cmp dword [esi + 0xec], 0
je 0x4123c7
test al, al
je 0x4123c7
mov ecx, dword [esi + 0x4c]
push ecx
mov ecx, esi
call fcn.0040da50
test al, al
mov dword [ebp - 0x34], 1
je 0x4123ce
mov dword [ebp - 0x34], 0
mov edi, dword [esi + 4]
call fcn.004a1350
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x4123f8
push str.uiview_set_check
push eax
call ebx
test eax, eax
je 0x4123f8
mov edx, dword [ebp - 0x34]
push edx
push 0x7da
push edi
call eax
cmp dword [ebp - 0x38], 0
je 0x412445
cmp byte [ebp - 0x2d], 0
je 0x412445
mov edi, dword [esi + 4]
call fcn.004a1350
test eax, eax
je 0x412429
push str.uiview_set_text_color
push eax
call ebx
test eax, eax
je 0x412429
push str.color_light_btn_txt_normal
push 0x7da
push edi
call eax
mov esi, dword [esi + 4]
call fcn.004a1350
test eax, eax
je 0x41248c
push str.uiview_enable_window
push eax
call ebx
test eax, eax
je 0x41248c
push 1
jmp 0x412484
mov edi, dword [esi + 4]
call fcn.004a1350
test eax, eax
je 0x41246a
push str.uiview_set_text_color
push eax
call ebx
test eax, eax
je 0x41246a
push 0x59636c
push 0x7da
push edi
call eax
mov esi, dword [esi + 4]
call fcn.004a1350
test eax, eax
je 0x41248c
push str.uiview_enable_window
push eax
call ebx
test eax, eax
je 0x41248c
push 0
push 0x7da
push esi
call eax
cmp dword [ebp - 0x14], 0x10
jb 0x41249e
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