Function at 0x140005710
Capabilities:
Extract resource via kernel32 functions
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x350
mov r12, rdx
mov r14, rcx
lea rdx, [rax - 0x128]
mov rcx, r12
call fcn.140007ae4
lea rdx, [rsp + 0x240]
lea rcx, str.INI_DIR
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov edx, 1
mov r8d, 0x2af
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ebx, ebx
cmp rax, rbx
je 0x1400057b6
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
cmp rax, rbx
je 0x1400057b6
cmp dword [rax], 0x20494e49
jne 0x1400057b6
lea rcx, [rax + 4]
mov dl, 1
call fcn.140004e6c
cmp rax, rbx
mov rdi, rax
jne 0x1400057de
lea rcx, str.Could_not_load_embedded_INI_file
call fcn.1400069bc
xor edx, edx
mov rcx, r12
call fcn.140004e6c
cmp rax, rbx
mov rdi, rax
jne 0x140005840
lea rcx, str.Could_not_load_INI_file:__s
mov rdx, r12
call fcn.1400069fc
xor eax, eax
jmp 0x1400059d9
lea rdx, str.:ini.override
mov r8d, 1
mov rcx, rax
call fcn.140004ae4
cmp eax, ebx
je 0x140005840
xor edx, edx
mov rcx, r12
call fcn.140004e6c
cmp rax, rbx
mov rsi, rax
je 0x140005840
cmp dword [rax], ebx
mov r13d, ebx
jle 0x140005838
mov rbp, rbx
mov r8, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov rcx, rdi
mov r8, qword [r8 + rbp]
mov rdx, qword [rdx + rbp]
call fcn.140004b38
add r13d, 1
add rbp, 8
cmp r13d, dword [rsi]
jl 0x140005813
mov rcx, rsi
call fcn.140004b50
mov rcx, rdi
call fcn.140005454
mov rcx, rdi
call fcn.140005310
lea rdx, str.:ini.file.location
mov rcx, rdi
call fcn.140004cb4
cmp rax, rbx
mov rbp, rax
je 0x1400058d3
lea rcx, str.Loading_INI_keys_from_file_location:__s
mov rdx, rax
call fcn.1400065e4
xor edx, edx
mov rcx, rbp
call fcn.140004e6c
cmp rax, rbx
mov rsi, rax
je 0x1400058c4
mov rcx, rax
call fcn.140005454
cmp dword [rsi], ebx
jle 0x1400058ba
mov rbp, rbx
mov r8, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov rcx, rdi
mov r8, qword [r8 + rbp]
mov rdx, qword [rdx + rbp]
call fcn.140004b38
add ebx, 1
add rbp, 8
cmp ebx, dword [rsi]
jl 0x140005897
mov rcx, rsi
call fcn.140004b50
jmp 0x1400058d3
lea rcx, str.Could_not_load_INI_keys_from_file:__s
mov rdx, rbp
call fcn.1400069bc
mov rcx, rdi
call fcn.14000550c
lea rdx, str.WinRun4J:module.ini
mov r8, r12
mov rcx, rdi
call fcn.140004b38
lea r8, [rsp + 0x240]
lea rdx, str.WinRun4J:ini.dir
mov rcx, rdi
call fcn.140004b38
lea rdx, [rsp + 0x130]
mov r8d, 0x104
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r8, [rsp + 0x130]
lea rdx, str.WinRun4J:module.name
mov rcx, rdi
call fcn.140004b38
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x130]
call fcn.140007ae4
lea r8, [rsp + 0x20]
lea rdx, str.WinRun4J:module.dir
mov rcx, rdi
call fcn.140004b38
lea rdx, str.:log.level
mov rcx, rdi
call fcn.140004cb4
lea rdx, str.:log
mov rcx, rdi
mov rbx, rax
call fcn.140004cb4
mov r9, rdi
mov r8, rbx
mov rcx, r14
mov rdx, rax
call fcn.140006a5c
lea rdx, [rsp + 0x130]
lea rcx, str.Module_Name:__s
call fcn.1400065e4
lea rcx, str.Module_INI:__s
mov rdx, r12
call fcn.1400065e4
lea rdx, [rsp + 0x20]
lea rcx, str.Module_Dir:__s
call fcn.1400065e4
lea rdx, [rsp + 0x20]
lea rcx, str.INI_Dir:__s
call fcn.1400065e4
mov qword [0x14002b248], rdi
mov rax, rdi
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret