Function at 0x40d310
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, [0x0044f640]
test rax, rax
jne 0x40d65d
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 [0x0044f648]
nop
lea rax, [0x0044f678]
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 [0x0044f680]
cmp ebx, ebx
jge 0x40d3df
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.004266e0
mov r8, rdi
mov rcx, rbx
add rcx, qword [rsp + 0x28]
mov rdx, rsi
call fcn.004266e0
nop
lea rax, [0x0044f708]
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 0x40d446
nop
nop
nop
movzx edx, byte [r8 + r10]
mov al, 0x2f
lea rcx, [0x00450044]
nop
cmp al, dl
je 0x40d44c
inc rcx
movzx eax, byte [rcx]
test al, al
jne 0x40d430
dec r9d
dec r8
jns 0x40d420
mov r9d, 0xffffffff
lea ebx, [r9 + 1]
lea eax, [rbx + 1]
mov edx, dword [rsp + 0x38]
cmp eax, edx
jle 0x40d498
mov ecx, 8
cmp edx, ecx
cmovl edx, ecx
mov dword [rsp + 0x38], edx
cmp eax, edx
jle 0x40d485
add edx, edx
mov dword [rsp + 0x38], edx
cmp eax, edx
jle 0x40d485
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.00426480
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, [0x0045003c]
lea rcx, [rsp + 0x60]
call fcn.00404050
mov rbx, rax
lea rcx, str.PATH
call fcn.00427dd0
mov rdx, rax
mov r8, rbx
lea rcx, [rsp + 0x80]
call fcn.00404050
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 0x40d52c
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.004266e0
mov r8, rdi
mov rcx, rbx
add rcx, qword [rsp + 0x28]
mov rdx, rsi
call fcn.004266e0
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 0x40d572
call fcn.00426530
lea rdi, [0x0044f620]
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 0x40d5a4
call fcn.00426530
lea r8, [rsp + 0x20]
lea rdx, [0x0045002c]
lea rcx, [rsp + 0x60]
call fcn.00404050
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.0044c490
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 0x40d5f7
call fcn.00426530
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x40d635
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 0x40d7be
call fcn.00426530
jmp 0x40d7be
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 0x40d658
call fcn.00426530
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 0x40d7be
lea rdx, [rsp + 0x40]
mov rcx, qword [0x004687c8]
call fcn.0040adf0
nop
mov edx, dword [rsp + 0x50]
test edx, edx
je 0x40d725
lea rcx, [rsp + 0x40]
mov rax, qword [rsp + 0x40]
call qword [rax + 8]
mov rcx, qword [rsp + 0x48]
call fcn.004122d0
test eax, eax
je 0x40d725
mov dword [0x004687e0], 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 0x40d7be
call fcn.00426530
jmp 0x40d7be
mov edx, 0x64
xor ecx, ecx
lea r8d, [rdx - 0x5a]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x40d763
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 0x40d7be
call fcn.00426530
jmp 0x40d7be
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 0x40d79b
mov dword [0x004687e0], 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 0x40d7be
call fcn.00426530
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