Function at 0x40e5c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
sub rsp, 0xd8
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov qword [rax - 8], rsi
mov qword [rax - 0x10], rdi
mov qword [rax - 0x18], r12
mov qword [rax - 0x20], r13
mov rbp, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
or eax, 0x8001
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
xor r12d, r12d
lea r13, [0x00451660]
test rax, rax
jne 0x40e90d
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x38], r12d
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [0x00451668]
nop
lea rax, [0x00451698]
mov qword [rsp + 0x20], rax
movsxd rdi, dword [rbp + 0x10]
mov rsi, qword [rbp + 8]
movsxd rbx, dword [rsp + 0x30]
lea edx, [rbx + rdi]
lea rcx, [rsp + 0x20]
call qword [0x004516a0]
cmp ebx, ebx
jge 0x40e68f
mov r8, qword [rsp + 0x28]
lea rdx, [rbx + r8]
lea rcx, [rbx + rdi]
add rcx, r8
mov eax, ebx
sub eax, ebx
movsxd r8, eax
call fcn.004286b0
mov r8, rdi
mov rcx, rbx
add rcx, qword [rsp + 0x28]
mov rdx, rsi
call fcn.004286b0
nop
lea rax, [0x00451728]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x30]
lea r9d, [rax - 1]
movsxd r8, r9d
mov r10, qword [rsp + 0x28]
test r9d, r9d
js 0x40e6f6
nop
nop
nop
movzx edx, byte [r8 + r10]
mov al, 0x2f
lea rcx, [0x004520a4]
nop
cmp al, dl
je 0x40e6fc
inc rcx
movzx eax, byte [rcx]
test al, al
jne 0x40e6e0
dec r9d
dec r8
jns 0x40e6d0
mov r9d, 0xffffffff
lea ebx, [r9 + 1]
lea eax, [rbx + 1]
mov edx, dword [rsp + 0x38]
cmp eax, edx
jle 0x40e748
mov ecx, 8
cmp edx, ecx
cmovl edx, ecx
mov dword [rsp + 0x38], edx
cmp eax, edx
jle 0x40e735
add edx, edx
mov dword [rsp + 0x38], edx
cmp eax, edx
jle 0x40e735
lea edx, [rax + 0xb]
mov eax, edx
and eax, 7
sub edx, eax
mov dword [rsp + 0x38], edx
movsxd rdx, edx
mov rcx, r10
call fcn.004285f0
mov r10, rax
mov qword [rsp + 0x28], rax
movsxd rax, ebx
mov byte [rax + r10], 0
mov dword [rsp + 0x30], ebx
lea r8, [rsp + 0x20]
lea rdx, [0x0045209c]
lea rcx, [rsp + 0x60]
call fcn.00404200
mov rbx, rax
lea rcx, str.PATH
call fcn.00429f40
mov rdx, rax
mov r8, rbx
lea rcx, [rsp + 0x80]
call fcn.00404200
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8, qword [rsp + 0x20]
call qword [r8 + 8]
movsxd rdi, dword [rbx + 0x10]
mov rsi, qword [rbx + 8]
movsxd rbx, dword [rsp + 0x30]
lea edx, [rbx + rdi]
lea rcx, [rsp + 0x20]
mov rax, qword [rsp + 0x20]
call qword [rax + 8]
cmp ebx, ebx
jge 0x40e7dc
mov r8, qword [rsp + 0x28]
lea rdx, [rbx + r8]
lea rcx, [rbx + rdi]
add rcx, r8
mov eax, ebx
sub eax, ebx
movsxd r8, eax
call fcn.004286b0
mov r8, rdi
mov rcx, rbx
add rcx, qword [rsp + 0x28]
mov rdx, rsi
call fcn.004286b0
nop
mov qword [rsp + 0x80], r13
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x88], r12
mov dword [rsp + 0x90], r12d
mov dword [rsp + 0x98], r12d
test rcx, rcx
je 0x40e822
call fcn.004289f0
lea rdi, [0x00451630]
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x60], r13
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x78], r12d
test rcx, rcx
je 0x40e854
call fcn.004289f0
lea r8, [rsp + 0x20]
lea rdx, [0x0045208c]
lea rcx, [rsp + 0x60]
call fcn.00404200
mov rbx, rax
mov r8, qword [rax]
mov edx, dword [rax + 0x10]
mov rcx, rax
call qword [r8 + 8]
mov rcx, qword [rbx + 8]
call fcn.0044e5f0
nop
mov qword [rsp + 0x60], r13
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x78], r12d
test rcx, rcx
je 0x40e8a7
call fcn.004289f0
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x40e8e5
mov qword [rsp + 0x20], r13
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x38], r12d
test rcx, rcx
je 0x40ea6e
call fcn.004289f0
jmp 0x40ea6e
mov qword [rsp + 0x20], r13
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x38], r12d
test rcx, rcx
je 0x40e908
call fcn.004289f0
mov qword [rsp + 0x20], rdi
lea rdx, str.SplashInit
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
lea rdx, str.SplashLoadMemory
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
lea rdx, str.SplashLoadFile
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rsi, rsi
je 0x40ea6e
lea rdx, [rsp + 0x40]
mov rcx, qword [0x0046ac48]
call fcn.0040c430
nop
mov edx, dword [rsp + 0x50]
test edx, edx
je 0x40e9d5
lea rcx, [rsp + 0x40]
mov rax, qword [rsp + 0x40]
call qword [rax + 8]
mov rcx, qword [rsp + 0x48]
call fcn.00413d30
test eax, eax
je 0x40e9d5
mov dword [0x0046ac60], 1
call rsi
mov edx, dword [rsp + 0x50]
lea rcx, [rsp + 0x40]
mov rax, qword [rsp + 0x40]
call qword [rax + 8]
mov rcx, qword [rsp + 0x48]
call rbx
nop
mov qword [rsp + 0x40], r13
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x58], r12d
test rcx, rcx
je 0x40ea6e
call fcn.004289f0
jmp 0x40ea6e
mov edx, 0x64
xor ecx, ecx
lea r8d, [rdx - 0x5a]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x40ea13
mov qword [rsp + 0x40], r13
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x58], r12d
test rcx, rcx
je 0x40ea6e
call fcn.004289f0
jmp 0x40ea6e
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test ebx, ebx
je 0x40ea4b
mov dword [0x0046ac60], ebx
call rsi
mov edx, ebx
mov rcx, rdi
call rbp
nop
mov qword [rsp + 0x40], r13
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x58], r12d
test rcx, rcx
je 0x40ea6e
call fcn.004289f0
mov rbx, qword [rsp + 0xf0]
mov rbp, qword [rsp + 0xf8]
mov rsi, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xc8]
mov r12, qword [rsp + 0xc0]
mov r13, qword [rsp + 0xb8]
add rsp, 0xd8
ret