Function at 0x40f9e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b68a
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x488580]
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, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test esi, esi
je 0x40fe00
cmp word [esi], 0
je 0x40fe00
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fe00
lea ebx, [edi + 0xc]
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], ebx
push ebx
push eax
call fcn.00452a6c
push 0x104
push esi
push ebx
call fcn.00452a6c
push 0x5c
push ebx
call fcn.00452aac
xor ecx, ecx
add esp, 0x20
mov word [eax + 2], cx
mov eax, dword [edi]
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], ecx
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x224]
push ecx
push 0x46e1c0
push edi
call dword [eax + 0x40]
mov dword [ebp - 0x234], eax
test eax, eax
je 0x40fdeb
cmp dword [ebp - 0x224], 0
je 0x40fdeb
cmp dword [ebp - 0x228], 0
je 0x40fdeb
push 0x24
call fcn.004504e2
add esp, 4
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x40fae6
mov ecx, eax
call fcn.0043f130
mov ebx, eax
mov dword [ebp - 0x22c], eax
jmp 0x40faee
xor ebx, ebx
mov dword [ebp - 0x22c], ebx
push 0x70
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x20], edi
call fcn.004504e2
add esp, 4
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x40fb22
mov ecx, eax
call fcn.0043bd10
mov dword [ebp - 0x230], eax
jmp 0x40fb2a
xor ecx, ecx
mov dword [ebp - 0x230], ecx
push dword [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov esi, eax
lea ecx, [esi + 2]
push ecx
call fcn.004509e8
push esi
push dword [ebp - 0x234]
mov dword [ebp - 0x220], eax
push eax
call fcn.00452260
mov eax, dword [ebp - 0x220]
add esp, 0x10
mov word [eax + esi], 0
lea ecx, [eax + 2]
mov esi, dword [ebp - 0x230]
push 0
push ecx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0xc]
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x40fb90
push eax
call fcn.004509f1
add esp, 4
push dword [ebp - 0x228]
mov eax, dword [edi]
push dword [ebp - 0x224]
push edi
call dword [eax + 0x44]
push str.directui
mov ecx, esi
call fcn.0043d180
mov dword [ebp - 0x238], eax
lea ecx, [ebp - 0x238]
push str.theme
lea eax, [ebp - 0x234]
push eax
call fcn.0043d130
mov ecx, eax
call fcn.0040fe50
push eax
mov ecx, ebx
call fcn.0043fe60
test eax, eax
jne 0x40fc0e
mov ecx, ebx
call fcn.0043f1c0
push ebx
call fcn.00450495
mov eax, dword [esi]
add esp, 4
mov ecx, esi
push 1
call dword [eax]
push 0x104
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x21c]
push eax
jmp 0x40fdf8
push 0x28
call fcn.004504e2
add esp, 4
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x40fc34
mov ecx, eax
call fcn.00440270
mov ebx, eax
jmp 0x40fc36
xor ebx, ebx
mov eax, dword [edi]
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
push ecx
push str.DirectUI.js
push edi
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x228], 0
call dword [eax + 0x40]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x40fda3
cmp dword [ebp - 0x228], 0
je 0x40fda3
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x40fda3
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov esi, eax
lea ecx, [esi + 0x80]
push ecx
call fcn.004509e8
push esi
push 0
push eax
mov dword [ebp - 0x220], eax
call fcn.00451090
mov eax, dword [ebp - 0x220]
push esi
push dword [ebp - 0x21c]
push eax
call fcn.00452260
mov eax, dword [ebp - 0x220]
add esp, 0x1c
mov word [eax + esi], 0
lea esi, [eax + 2]
push str._r_nCollectGarbage____r_n
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
mov ecx, ebx
call fcn.00440980
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x40fd03
push eax
call fcn.004509f1
add esp, 4
push edi
push str.winManager
mov ecx, ebx
call fcn.00440610
mov esi, dword [ebp - 0x22c]
mov ecx, ebx
push esi
push str.resManager
call fcn.00440610
mov ecx, dword [edi + 0x214]
test ecx, ecx
je 0x40fd33
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [edi + 0x224]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x40fd58
mov ecx, eax
call fcn.00440390
push dword [ebp - 0x21c]
call fcn.00450495
add esp, 4
mov eax, dword [edi + 0x218]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x40fd7d
mov ecx, eax
call fcn.0043f1c0
push dword [ebp - 0x21c]
call fcn.00450495
add esp, 4
mov ecx, dword [ebp - 0x230]
mov dword [edi + 0x214], ecx
mov ecx, edi
mov dword [edi + 0x218], esi
mov dword [edi + 0x224], ebx
call fcn.00410970
mov eax, 1
jmp 0x40fe02
mov esi, dword [ebp - 0x22c]
mov ecx, esi
call fcn.0043f1c0
push esi
call fcn.00450495
mov ecx, dword [ebp - 0x230]
add esp, 4
mov eax, dword [ecx]
push 1
call dword [eax]
test ebx, ebx
je 0x40fdd9
mov ecx, ebx
call fcn.00440390
push ebx
call fcn.00450495
add esp, 4
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [edi + 0xc]
push eax
jmp 0x40fdf8
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.00452a6c
add esp, 0xc
xor eax, eax
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.00451043
mov esp, ebp
pop ebp
ret 8