Function at 0x14000a730
Capabilities:
Inspect load icon resource
Read .ini file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4c0
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x518], rbx
mov rax, qword [0x140090f00]
xor rax, rsp
mov qword [rsp + 0x4b8], rax
mov rdi, r9
mov rbp, r8
mov esi, edx
mov dword [rsp + 0x30], edx
mov r12, rcx
mov r15, qword [rsp + 0x528]
mov rax, qword [r8]
mov rcx, r8
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [rsp + 0x38], eax
mov rdx, qword [rbp]
mov rcx, rbp
call qword [rdx + 0x18]
mov r14, rax
mov rax, qword [0x140098358]
test rax, rax
jne 0x14000a7c5
lea ecx, [rax + 0x40]
call fcn.140015154
test rax, rax
je 0x14000a7bc
mov qword [rax], 0
jmp 0x14000a7be
xor eax, eax
mov qword [0x140098358], rax
mov r13, qword [rax + 0x20]
mov qword [rsp + 0x50], r13
test r15, r15
jne 0x14000a7e2
mov rdx, qword [rax + 0x30]
mov rcx, r13
call qword [sym.imp.GDI32.dll_SelectObject]
jmp 0x14000a7ee
mov rdx, r15
mov rcx, r13
call qword [sym.imp.GDI32.dll_SelectObject]
mov ecx, 0xe0
call fcn.140015154
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14000a80f
mov rcx, rax
call fcn.14000c940
mov rbx, rax
jmp 0x14000a811
xor ebx, ebx
mov qword [rsp + 0x48], rbx
test rdi, rdi
je 0x14000a827
mov qword [rbx + 0xb0], rdi
jmp 0x14000a916
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x18]
test rax, rax
je 0x14000a916
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x18]
mov rsi, rax
lea rdi, [0x14007a0a8]
mov ecx, 9
repe cmpsw word [rsi], word [rdi]
jne 0x14000a912
call fcn.140019178
mov edx, 0x87
mov rcx, qword [rax + 0x10]
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [rbx + 0xb0], rax
mov r8d, 0x104
lea rdx, [rsp + 0x2a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dx, 0x5c
lea rcx, [rsp + 0x2a0]
call fcn.140047120
mov word [rax + 2], 0
mov word [rsp + 0x90], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x92]
call fcn.14004a690
lea r8, [rsp + 0x2a0]
lea rdx, str._sConfig.ini
lea rcx, [rsp + 0x90]
call fcn.140046bd0
lea r9, [rsp + 0x90]
mov r8d, 1
lea rdx, str.bBottomAdverUseByUser
lea rcx, str.ControlConf
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne al
mov byte [rbx + 0xd8], al
mov esi, dword [rsp + 0x30]
jmp 0x14000a916
mov esi, dword [rsp + 0x30]
mov rax, qword [rsp + 0x520]
mov qword [rbx + 0xd0], rax
mov qword [rbx + 0xb8], r15
movsxd r15, dword [rsp + 0x38]
test r15d, r15d
jne 0x14000a9ce
xor r8d, r8d
lea rdx, [0x14007a0f8]
mov rcx, rbx
call fcn.1400029c0
xor eax, eax
mov dword [rbx + 0x78], eax
mov dword [rbx + 0x9c], eax
mov qword [rbx + 0xa0], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8d, 0xc00
mov edx, esi
mov rcx, qword [r12 + 8]
call qword [sym.imp.USER32.dll_InsertMenuW]
test eax, eax
jne 0x14000a98f
lea edx, [rax + 1]
mov rcx, rbx
call fcn.14000a420
xor eax, eax
jmp 0x14000b063
cmp dword [r12 + 0x10], 0
je 0x14000a9ba
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8d, 0xd00
mov edx, esi
mov rcx, qword [r12 + 8]
call qword [sym.imp.USER32.dll_ModifyMenuW]
test eax, eax
je 0x14000b063
lea rdx, [rsp + 0x48]
mov rcx, qword [r12 + 0x28]
call fcn.14000c120
jmp 0x14000b05e
cmp r15d, 0xffffffff
jne 0x14000ada6
lea ecx, [r15 + 0x31]
call fcn.140015154
mov rsi, rax
test rax, rax
je 0x14000aa27
xor r15d, r15d
mov qword [rax + 8], r15
lea rax, [0x14007a0d0]
mov qword [rsi], rax
mov dword [rsi + 0x10], r15d
mov dword [rsi + 0x14], 0x14
mov dword [rsi + 0x18], 0xa
mov dword [rsi + 0x1c], 0x14
mov dword [rsi + 0x24], 6
mov dword [rsi + 0x20], 0xfa
mov qword [rsi + 0x28], r15
jmp 0x14000aa2d
xor r15d, r15d
mov rsi, r15
mov ecx, 0x20
call fcn.140015154
nop
test rax, rax
je 0x14000aa4b
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
jmp 0x14000aa4e
mov rax, r15
mov qword [rsi + 0x28], rax
mov dword [rsi + 0x10], 1
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x28]
mov rdx, rax
mov rcx, rsi
call fcn.14000a2a0
xor edx, edx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x78], rdx
mov dword [rsp + 0x58], 0x28
mov dword [rsp + 0x5c], 2
mov rax, qword [0x140098358]
test rax, rax
jne 0x14000aac1
lea ecx, [rdx + 0x40]
call fcn.140015154
test rax, rax
je 0x14000aab7
mov qword [rax], r15
jmp 0x14000aaba
mov rax, r15
mov qword [0x140098358], rax
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x58]
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_SetMenuInfo]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r14
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, r13
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov edi, dword [r12 + 0x20]
cmp dword [rsp + 0x40], edi
jg 0x14000ab2c
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r14
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbx + 0x28]
mov rdx, r14
call fcn.1400029c0
jmp 0x14000acb5
mov word [rsp + 0x90], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x92]
call fcn.14004a690
lea r11, [rsp + 0x90]
mov qword [rsp + 0x20], r11
mov r9, r14
mov r8d, edi
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.14000b0d0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
not rcx
lea r13, [rcx - 1]
mov rdx, qword [rbx + 0x48]
cmp rdx, 8
jb 0x14000ab96
lea rdi, [rbx + 0x30]
mov rax, qword [rdi]
jmp 0x14000ab9d
lea rdi, [rbx + 0x30]
mov rax, rdi
lea rcx, [rsp + 0x90]
cmp rcx, rax
jb 0x14000abf9
cmp rdx, 8
jb 0x14000abb5
mov rcx, qword [rdi]
jmp 0x14000abb8
mov rcx, rdi
mov rax, qword [rbx + 0x40]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x90]
cmp rcx, rax
jbe 0x14000abf9
cmp rdx, 8
jb 0x14000abd6
mov rdi, qword [rdi]
lea r8, [rsp + 0x90]
sub r8, rdi
sar r8, 1
mov r9, r13
lea rdx, [rbx + 0x28]
lea rcx, [rbx + 0x28]
call fcn.1400027c0
jmp 0x14000ac85
movabs rax, 0x7ffffffffffffffe
cmp r13, rax
jbe 0x14000ac0d
call fcn.140064b10
mov rax, qword [rbx + 0x48]
cmp rax, r13
jae 0x14000ac28
mov r8, qword [rbx + 0x40]
mov rdx, r13
lea rcx, [rbx + 0x28]
call fcn.140002af0
jmp 0x14000ac41
test r13, r13
jne 0x14000ac41
mov qword [rbx + 0x40], r15
cmp rax, 8
jb 0x14000ac3a
mov rdi, qword [rdi]
mov word [rdi], 0
jmp 0x14000ac85
test r13, r13
je 0x14000ac85
mov rdx, qword [rbx + 0x48]
cmp rdx, 8
jb 0x14000ac55
mov rcx, qword [rdi]
jmp 0x14000ac58
mov rcx, rdi
lea r15, [r13 + r13]
add rdx, rdx
mov r9, r15
lea r8, [rsp + 0x90]
call fcn.140046d10
mov qword [rbx + 0x40], r13
cmp qword [rbx + 0x48], 8
jb 0x14000ac7e
mov rdi, qword [rdi]
mov word [rdi + r15], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [r12 + 0x18]
add eax, dword [r12 + 0x14]
add eax, dword [rsp + 0x40]
mov dword [rbx + 0x84], eax
mov eax, dword [r12 + 0x1c]
mov dword [rbx + 0x88], eax
mov edi, dword [r12 + 0x14]
mov dword [rbx + 0x8c], edi
mov eax, dword [rbx + 0x88]
sub eax, dword [rbx + 0x80]
sub eax, dword [rsp + 0x44]
cdq
sub eax, edx
sar eax, 1
mov dword [rbx + 0x90], eax
mov edx, dword [rsp + 0x40]
add edx, edi
mov dword [rbx + 0x94], edx
mov ecx, dword [rsp + 0x44]
add eax, ecx
mov dword [rbx + 0x98], eax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r14
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r14
mov rcx, rbx
call fcn.1400029c0
mov dword [rbx + 0x78], 0xffffffff
mov qword [rbx + 0xa0], rsi
mov r9d, dword [rsi + 8]
mov qword [rsp + 0x20], r14
mov r8d, 0x410
mov ebp, dword [rsp + 0x30]
mov edx, ebp
mov rcx, qword [r12 + 8]
call qword [sym.imp.USER32.dll_InsertMenuW]
test eax, eax
je 0x14000b063
cmp dword [r12 + 0x10], 0
je 0x14000ad92
mov r9d, dword [rsi + 8]
mov qword [rsp + 0x20], rbx
mov r8d, 0x510
mov edx, ebp
mov rcx, qword [r12 + 8]
call qword [sym.imp.USER32.dll_ModifyMenuW]
test eax, eax
je 0x14000b063
lea rdx, [rsp + 0x48]
mov rcx, qword [r12 + 0x28]
call fcn.14000c120
jmp 0x14000b05e
xor esi, esi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x3c], esi
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r14
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea r9, [rsp + 0x38]
mov rdx, r14
mov rcx, r13
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov edi, dword [r12 + 0x20]
cmp dword [rsp + 0x38], edi
jg 0x14000ae03
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r14
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbx + 0x28]
mov rdx, r14
call fcn.1400029c0
jmp 0x14000af86
mov word [rsp + 0x90], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x92]
call fcn.14004a690
lea rdx, [rsp + 0x90]
mov qword [rsp + 0x20], rdx
mov r9, r14
mov r8d, edi
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.14000b0d0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
not rcx
lea rbp, [rcx - 1]
mov rdx, qword [rbx + 0x48]
cmp rdx, 8
jb 0x14000ae6b
lea rdi, [rbx + 0x30]
mov rax, qword [rdi]
jmp 0x14000ae72
lea rdi, [rbx + 0x30]
mov rax, rdi
lea rcx, [rsp + 0x90]
cmp rcx, rax
jb 0x14000aece
cmp rdx, 8
jb 0x14000ae8a
mov rcx, qword [rdi]
jmp 0x14000ae8d
mov rcx, rdi
mov rax, qword [rbx + 0x40]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x90]
cmp rcx, rax
jbe 0x14000aece
cmp rdx, 8
jb 0x14000aeab
mov rdi, qword [rdi]
lea r8, [rsp + 0x90]
sub r8, rdi
sar r8, 1
mov r9, rbp
lea rdx, [rbx + 0x28]
lea rcx, [rbx + 0x28]
call fcn.1400027c0
jmp 0x14000af56
movabs rax, 0x7ffffffffffffffe
cmp rbp, rax
jbe 0x14000aee2
call fcn.140064b10
mov rax, qword [rbx + 0x48]
cmp rax, rbp
jae 0x14000aefd
mov r8, qword [rbx + 0x40]
mov rdx, rbp
lea rcx, [rbx + 0x28]
call fcn.140002af0
jmp 0x14000af14
test rbp, rbp
jne 0x14000af14
mov qword [rbx + 0x40], rsi
cmp rax, 8
jb 0x14000af0f
mov rdi, qword [rdi]
mov word [rdi], si
jmp 0x14000af56
test rbp, rbp
je 0x14000af56
mov rdx, qword [rbx + 0x48]
cmp rdx, 8
jb 0x14000af28
mov rcx, qword [rdi]
jmp 0x14000af2b
mov rcx, rdi
lea r13, [rbp + rbp]
add rdx, rdx
mov r9, r13
lea r8, [rsp + 0x90]
call fcn.140046d10
mov qword [rbx + 0x40], rbp
cmp qword [rbx + 0x48], 8
jb 0x14000af51
mov rdi, qword [rdi]
mov word [rdi + r13], si
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r14
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r14
mov rcx, rbx
call fcn.1400029c0
mov dword [rbx + 0x78], r15d
mov dword [rbx + 0x9c], esi
mov qword [rbx + 0xa0], rsi
mov esi, dword [rsp + 0x38]
lea eax, [rsi + 0x20]
mov dword [rbx + 0x84], eax
mov eax, dword [r12 + 0x1c]
mov dword [rbx + 0x88], eax
mov ecx, dword [r12 + 0x14]
mov dword [rbx + 0x8c], ecx
mov eax, dword [rbx + 0x88]
sub eax, dword [rbx + 0x80]
mov edi, dword [rsp + 0x3c]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [rbx + 0x90], eax
add ecx, esi
mov dword [rbx + 0x94], ecx
add eax, edi
mov dword [rbx + 0x98], eax
mov qword [rsp + 0x20], r14
mov r9, r15
mov r8d, 0x400
mov ebp, dword [rsp + 0x30]
mov edx, ebp
mov rcx, qword [r12 + 8]
call qword [sym.imp.USER32.dll_InsertMenuW]
test eax, eax
je 0x14000b063
cmp dword [r12 + 0x10], 0
je 0x14000b04f
mov qword [rsp + 0x20], rbx
mov r9, r15
mov r8d, 0x500
mov edx, ebp
mov rcx, qword [r12 + 8]
call qword [sym.imp.USER32.dll_ModifyMenuW]
test eax, eax
je 0x14000b063
lea rdx, [rsp + 0x48]
mov rcx, qword [r12 + 0x28]
call fcn.14000c120
mov eax, 1
mov rcx, qword [rsp + 0x4b8]
xor rcx, rsp
call fcn.1400469b0
mov rbx, qword [rsp + 0x518]
add rsp, 0x4c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret