Function at 0x40cbe3
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x43db90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], edi
test edi, edi
je 0x40cdec
cmp word [edi], 0
je 0x40cdec
push 5
push str.file:
push edi
call fcn.00416e5e
add esp, 0xc
test eax, eax
jne 0x40cc38
xor eax, eax
jmp 0x40cdef
push 5
push str.http:
push edi
call fcn.00416e5e
add esp, 0xc
test eax, eax
je 0x40cc31
push 6
push str.https:
push edi
call fcn.00416e5e
add esp, 0xc
test eax, eax
je 0x40cc31
push 4
push str.res:
push edi
call fcn.00416e5e
add esp, 0xc
test eax, eax
jne 0x40cc7d
add edi, 8
mov dword [ebp - 0x114], edi
test edi, edi
je 0x40cc90
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x40cc94
xor eax, eax
jmp 0x40ccaa
lea esi, [eax + eax]
mov eax, esi
call fcn.004160c0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00405da4
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edi, dword [0x440094]
lea esi, [ebp - 0x108]
mov eax, esi
push 0x2f
push eax
mov dword [ebp - 0x110], edi
mov byte [ebp - 0x10c], 0
call fcn.0041662e
pop ecx
pop ecx
test eax, eax
je 0x40cd22
lea esi, [eax + 1]
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40cd22
test al, 0x10
jne 0x40cd22
push 2
push 0
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 0x10c], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x110], edi
push 0x2e
push esi
call fcn.0041662e
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x40cd9b
mov byte [ebx], 0
inc ebx
je 0x40cd9b
push str.HTML
push ebx
call fcn.0041683c
pop ecx
pop ecx
test eax, eax
je 0x40cd9b
push str.ICON
push ebx
call fcn.0041683c
pop ecx
pop ecx
test eax, eax
jne 0x40cd98
push ecx
mov ecx, esp
push esi
call fcn.00403883
push dword [ebp - 0x114]
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x118]
call fcn.0040a7bd
add esp, 0x10
cmp byte [ebp - 0x10c], 0
mov esi, eax
je 0x40cd94
test edi, edi
je 0x40cd94
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x40cdef
push ebx
jmp 0x40cd9d
push 0x17
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40cdcc
cmp byte [ebp - 0x10c], 0
je 0x40cc31
test edi, edi
je 0x40cc31
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40cc31
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40ce04
cmp byte [ebp - 0x10c], 0
je 0x40cdec
test edi, edi
je 0x40cdec
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
inc eax
lea esp, [ebp - 0x124]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415106
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40cdd8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x40cdd8
push eax
push ebx
push dword [ebp - 0x114]
push dword [ebp - 0x118]
call dword [sym.imp.HTMLayout.dll_HTMLayoutDataReady]
jmp 0x40cdab