Function at 0x40e910
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, [0x00453650]
test rax, rax
jne 0x40ec5d
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 [0x00453658]
nop
lea rax, [0x00453688]
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 [0x00453690]
cmp ebx, ebx
jge 0x40e9df
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.0042a950
mov r8, rdi
mov rcx, rbx
add rcx, qword [rsp + 0x28]
mov rdx, rsi
call fcn.0042a950
nop
lea rax, [0x00453718]
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 0x40ea46
nop
nop
nop
movzx edx, byte [r8 + r10]
mov al, 0x2f
lea rcx, [0x004540d4]
nop
cmp al, dl
je 0x40ea4c
inc rcx
movzx eax, byte [rcx]
test al, al
jne 0x40ea30
dec r9d
dec r8
jns 0x40ea20
mov r9d, 0xffffffff
lea ebx, [r9 + 1]
lea eax, [rbx + 1]
mov edx, dword [rsp + 0x38]
cmp eax, edx
jle 0x40ea98
mov ecx, 8
cmp edx, ecx
cmovl edx, ecx
mov dword [rsp + 0x38], edx
cmp eax, edx
jle 0x40ea85
add edx, edx
mov dword [rsp + 0x38], edx
cmp eax, edx
jle 0x40ea85
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.0042a6f0
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, [0x004540cc]
lea rcx, [rsp + 0x60]
call fcn.00404420
mov rbx, rax
lea rcx, str.PATH
call fcn.0042c040
mov rdx, rax
mov r8, rbx
lea rcx, [rsp + 0x80]
call fcn.00404420
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 0x40eb2c
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.0042a950
mov r8, rdi
mov rcx, rbx
add rcx, qword [rsp + 0x28]
mov rdx, rsi
call fcn.0042a950
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 0x40eb72
call fcn.0042a7a0
lea rdi, [0x00453630]
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 0x40eba4
call fcn.0042a7a0
lea r8, [rsp + 0x20]
lea rdx, [0x004540bc]
lea rcx, [rsp + 0x60]
call fcn.00404420
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.004506f0
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 0x40ebf7
call fcn.0042a7a0
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x40ec35
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 0x40edbe
call fcn.0042a7a0
jmp 0x40edbe
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 0x40ec58
call fcn.0042a7a0
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 0x40edbe
lea rdx, [rsp + 0x40]
mov rcx, qword [0x0046cca8]
call fcn.0040c5a0
nop
mov edx, dword [rsp + 0x50]
test edx, edx
je 0x40ed25
lea rcx, [rsp + 0x40]
mov rax, qword [rsp + 0x40]
call qword [rax + 8]
mov rcx, qword [rsp + 0x48]
call fcn.004160b0
test eax, eax
je 0x40ed25
mov dword [0x0046ccc0], 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 0x40edbe
call fcn.0042a7a0
jmp 0x40edbe
mov edx, 0x64
xor ecx, ecx
lea r8d, [rdx - 0x5a]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x40ed63
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 0x40edbe
call fcn.0042a7a0
jmp 0x40edbe
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 0x40ed9b
mov dword [0x0046ccc0], 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 0x40edbe
call fcn.0042a7a0
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