Function at 0x14000515c
Capabilities:
Accept command line arguments
Read .ini file
Set current directory

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2f8]
sub rsp, 0x3d0
mov rax, qword [0x14000e088]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
xor r15d, r15d
mov rdi, rcx
mov r12d, r15d
mov dword [rsp + 0x30], r15d
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.cmutil.dll_CmStrCpyAllocA]
nop dword [rax + rax]
mov qword [rsp + 0x38], rax
mov r14, rax
test rax, rax
je 0x14000536b
cmp byte [rax], r15b
je 0x14000536b
lea ecx, [r15 + 0x78]
call qword [sym.imp.cmutil.dll_CmMalloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x14000527c
mov esi, r15d
lea rdx, str.InitArgs___invalid_parameter.
mov ecx, dword [0x14000e0a0]
call fcn.140007c34
test r12, r12
je 0x14000521b
mov rcx, r12
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
mov ebx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140005235
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
test rsi, rsi
je 0x140005249
mov rcx, rsi
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.1400080a0
lea r11, [rsp + 0x3d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ebx, 3
mov r13, r14
cmp byte [r14], r12b
je 0x140005337
cmp byte [r14], 0x20
je 0x1400052f3
cmp byte [r14], 0x22
je 0x1400052af
test ebx, 0xfffffffd
jne 0x140005345
mov ebx, 3
jmp 0x140005345
cmp ebx, 1
jne 0x1400052ec
mov rcx, r14
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov rcx, r13
mov byte [r14], r12b
mov rbx, rax
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov qword [rsi + r15*8], rax
mov r13, rbx
mov r14, rbx
inc r15
mov ebx, 2
jmp 0x14000535c
mov ebx, 1
jmp 0x140005345
cmp ebx, 3
jne 0x14000531b
mov rcx, r14
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov byte [r14], r12b
mov r14, rax
mov qword [rsi + r15*8], r13
inc r15
xor ebx, ebx
mov r13, rax
jmp 0x14000535c
test ebx, 0xfffffffd
jne 0x140005345
mov rcx, r13
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov r13, rax
jmp 0x140005345
cmp ebx, 2
je 0x140005340
mov qword [rsi + r15*8], r13
mov ebx, 4
mov rcx, r14
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov r14, rax
cmp ebx, 4
je 0x140005366
cmp r15, 0xf
jl 0x140005284
xor r15d, r15d
jmp 0x14000536e
mov rsi, r15
test rsi, rsi
je 0x1400051f5
cmp qword [rsi], r15
je 0x1400051f5
cmp qword [rsi + 8], r15
mov r13d, r15d
mov ebx, 1
je 0x1400055ba
mov rax, qword [section..data]
test rax, rax
je 0x140005410
mov ecx, ebx
xor r14d, r14d
mov rdx, qword [rsi + rcx*8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
nop dword [rax + rax]
test eax, eax
je 0x1400053da
inc r15d
lea rcx, section..data
mov eax, r15d
add rax, rax
mov r14d, r15d
mov rax, qword [rcx + rax*8]
mov ecx, ebx
test rax, rax
jne 0x1400053a3
jmp 0x140005410
test r13d, r13d
jne 0x1400055a6
add r14, r14
lea rax, section..data
mov eax, dword [rax + r14*8 + 8]
cmp eax, 4
je 0x140005402
cmp eax, 8
jne 0x14000540d
lea r13d, [rax - 7]
jmp 0x140005410
cmp qword [rdi + 0x10], 0
jne 0x140005585
or dword [rdi + 0x18], eax
mov eax, r15d
lea rcx, section..data
add rax, rax
xor r15d, r15d
cmp qword [rcx + rax*8], r15
jne 0x14000557a
test r13d, r13d
je 0x1400054ee
test r12, r12
jne 0x140005585
mov ecx, 0x825
mov r13d, r15d
call qword [sym.imp.cmutil.dll_CmMalloc]
nop dword [rax + rax]
mov r12, rax
test rax, rax
je 0x140005c61
mov r14d, ebx
mov edx, 0x825
mov rcx, rax
mov dword [rsp + 0x28], 0x900
mov r8, qword [rsi + r14*8]
call fcn.140001da4
test eax, eax
js 0x140005207
mov r8, qword [rsi + r14*8]
mov ecx, 0x825
mov rdx, r12
lea rax, [rcx + 0x7ffff7d9]
test rax, rax
je 0x1400054ad
mov al, byte [r8]
test al, al
je 0x1400054ad
mov byte [rdx], al
inc r8
inc rdx
sub rcx, 1
jne 0x14000548c
test rcx, rcx
lea rax, [rdx - 1]
cmovne rax, rdx
mov byte [rax], r15b
mov rax, rcx
neg rax
sbb r8d, r8d
not r8d
and r8d, 0x8007007a
test rcx, rcx
jne 0x14000557a
mov ecx, dword [0x14000e0a0]
lea rdx, str.InitArgs_____StringCchCopy_failed:_0x_x_n
call fcn.140007c34
jmp 0x140005207
cmp qword [rdi + 0x10], r15
jne 0x140005585
test byte [rdi + 0x18], 4
jne 0x140005585
mov r8d, ebx
lea rcx, [rbp + 0xa0]
mov edx, 0x105
mov dword [rsp + 0x28], 0x100
mov r8, qword [rsi + r8*8]
call fcn.140001da4
test eax, eax
js 0x1400055b2
lea rcx, [rbp + 0xa0]
call qword [sym.imp.cmutil.dll_CmStrCpyAllocA]
nop dword [rax + rax]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x140005207
mov dl, 0x5c
lea rcx, [rbp + 0xa0]
call qword [sym.imp.cmutil.dll_CmStrrchrA]
nop dword [rax + rax]
test rax, rax
je 0x14000557a
lea rcx, [rbp + 0xa0]
mov byte [rax], r15b
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
nop dword [rax + rax]
inc ebx
cmp qword [rsi + rbx*8], r15
jmp 0x14000538c
mov ecx, dword [0x14000e0a0]
lea rdx, str.InitArgs___argument_number__u___s__is_invalid.
mov r9d, ebx
mov r8d, ebx
mov r9, qword [rsi + r9*8]
call fcn.140007c34
jmp 0x140005207
lea rdx, str.InitArgs___URL_expected_after_AF_URL_flag.
jmp 0x1400051fc
mov r8d, eax
jmp 0x1400054d7
mov eax, dword [rdi + 0x18]
test al, 0x40
je 0x1400055e1
or eax, 0x61
cmp eax, 0x61
jne 0x140005207
mov dword [rsp + 0x30], 1
lea rdx, str.InitArgs____VPN_flag_detected_going_into_VPN_file_download_mode.
jmp 0x1400051fc
test r13d, r13d
jne 0x1400055a6
cmp qword [rdi + 0x10], r15
jne 0x1400055fc
test al, 4
jne 0x14000560d
lea rdx, str.InitArgs___must_use_AF_NO_PROFILE_if_no_profile_given_on_command_line.
jmp 0x1400051fc
test r12, r12
je 0x14000560d
lea rdx, str.InitArgs___cant_give_both_a_profile_and_a_URL_on_the_command_line.
jmp 0x1400051fc
mov ecx, 0x3b0
call qword [sym.imp.cmutil.dll_CmMalloc]
nop dword [rax + rax]
mov qword [rdi + 0x48], rax
test rax, rax
je 0x140005207
inc dword [rdi + 0x40]
lea r14, [0x140009da3]
mov r13d, 0x104
test r12, r12
jne 0x140005a42
mov rax, qword [rdi + 0x10]
test rax, rax
jne 0x140005664
lea rdx, str.InitArgs___must_give_AF_URL_on_command_line_when_AF_NO_PROFILE_is_given.
mov ecx, dword [0x14000e0a0]
call fcn.140007c34
jmp 0x14000521b
mov qword [rsp + 0x28], rax
lea r12, str.Connection_Manager
mov rcx, r12
mov dword [rsp + 0x20], r13d
lea r9, [rbp - 0x70]
mov r8, r14
lea rdx, str.CMSFile
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
nop dword [rax + rax]
cmp byte [rbp - 0x70], r15b
jne 0x1400056b3
mov r8, qword [rdi + 0x10]
lea rdx, str.InitArgs____Connection_Manager__CMSFile_entry_not_found_in__s.
mov ecx, dword [0x14000e0a0]
call fcn.140007c34
jmp 0x14000521b
mov ebx, 0x105
lea r8, [0x14000adb0]
mov edx, ebx
lea rcx, [rbp + 0xa0]
call fcn.140001ffc
test eax, eax
jns 0x1400056eb
lea rdx, str.InitArgs_____StringCchCat_failed:_0x_x_n
mov r8d, eax
mov ecx, dword [0x14000e0a0]
call fcn.140007c34
jmp 0x14000521b
lea r8, [rbp - 0x70]
mov rdx, rbx
lea rcx, [rbp + 0xa0]
call fcn.140001ffc
test eax, eax
js 0x1400056d1
lea rcx, [rbp + 0xa0]
call qword [sym.imp.cmutil.dll_CmStrCpyAllocA]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x48]
mov qword [rcx], rax
mov rax, qword [rdi + 0x48]
mov rcx, qword [rax]
test rcx, rcx
je 0x14000521b
mov qword [rsp + 0x28], rcx
lea r9, [rbp - 0x70]
lea rcx, [0x140009d24]
mov dword [rsp + 0x20], r13d
mov r8, r14
lea rdx, str.PBFile
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
nop dword [rax + rax]
cmp byte [rbp - 0x70], r15b
jne 0x140005792
mov r8, qword [rdi + 0x48]
lea rdx, str.InitArgs____ISP_Info__RegionFile_entry_not_found_in__s.
mov ecx, dword [0x14000e0a0]
mov r8, qword [r8]
call fcn.140007c34
mov rcx, r14
call qword [sym.imp.cmutil.dll_CmStrCpyAllocA]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x48]
mov qword [rcx + 0x30], rax
jmp 0x140005830
lea rcx, [rbp - 0x70]
call qword [sym.imp.cmutil.dll_CmStrCpyAllocA]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x48]
mov qword [rcx + 8], rax
test rax, rax
je 0x14000521b
mov rcx, qword [rdi + 0x48]
mov dl, 0x5c
mov rcx, qword [rcx + 8]
call qword [sym.imp.cmutil.dll_CmStrrchrA]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x1400057dd
lea rdx, str.InitArgs___bad_PBKFILE___no_backslash.
jmp 0x140005654
mov dl, 0x2e
mov rcx, r14
call qword [sym.imp.cmutil.dll_CmStrchrA]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140005802
lea rdx, str.InitArgs___bad_PBKFILE___no_dot.
jmp 0x140005654
lea rcx, [r14 + 1]
mov byte [rax], r15b
call qword [sym.imp.cmutil.dll_CmStrCpyAllocA]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x48]
mov qword [rcx + 0x30], rax
test rax, rax
je 0x14000521b
mov byte [rbx], 0x2e
lea r14, [0x140009da3]
mov rax, qword [rdi + 0x48]
lea r9, [rbp - 0x70]
mov r8, r14
lea rdx, str.RegionFile
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
lea rcx, [0x140009d24]
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
nop dword [rax + rax]
cmp byte [rbp - 0x70], r15b
jne 0x140005881
mov r8, qword [rdi + 0x48]
lea rdx, str.InitArgs____ISP_Info__RegionFile_entry_not_found_in__s.
mov ecx, dword [0x14000e0a0]
mov r8, qword [r8]
call fcn.140007c34
lea rcx, [rbp - 0x70]
call qword [sym.imp.cmutil.dll_CmStrCpyAllocA]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x48]
mov qword [rcx + 0x10], rax
test rax, rax
je 0x14000521b
mov rax, qword [rdi + 0x48]
lea r9, [rbp - 0x70]
mov r8, r14
lea rdx, str.Version
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
mov rcx, r12
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
nop dword [rax + rax]
lea rcx, [rbp - 0x70]
call qword [sym.imp.cmutil.dll_CmStrCpyAllocA]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x48]
mov qword [rcx + 0x20], rax
mov rax, qword [rdi + 0x48]
cmp qword [rax + 0x20], r15
je 0x14000521b
mov ecx, 0x825
call qword [sym.imp.cmutil.dll_CmMalloc]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x48]
mov qword [rcx + 0x18], rax
mov rbx, qword [rdi + 0x48]
cmp qword [rbx + 0x18], r15
je 0x14000521b
mov r14d, 0x48
lea rcx, [rsp + 0x40]
mov r8d, r14d
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rsp + 0x40], r14d
lea rdx, [rsp + 0x40]
mov rax, qword [rbx + 0x18]
mov qword [rsp + 0x48], rax
lea rax, [0x140004e90]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x50], 0x824
mov qword [rbp - 0x80], rdi
mov rcx, qword [rbx]
call qword [sym.imp.cmpbk32.dll_PhoneBookParseInfoA]
nop dword [rax + rax]
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x14000598c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rdx, str.InitArgs___PhoneBookParseInfo___failed__GLE_u.
jmp 0x1400056d8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.cmpbk32.dll_PhoneBookFreeFilter]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.cmpbk32.dll_PhoneBookFreeFilter]
nop dword [rax + rax]
mov r9, qword [rdi + 0x48]
lea rdx, str.DownLoadDelay
mov r8d, 0x78
mov rcx, r12
mov r9, qword [r9]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
nop dword [rax + rax]
imul r8d, eax, 0x3e8
lea rdx, str.Download_delay_is__u_millisseconds.
mov dword [rdi + 8], r8d
mov ecx, dword [0x14000e0a0]
call fcn.140007c34
mov r9, qword [rdi + 0x48]
lea rdx, str.HideDelay
or r8d, 0xffffffff
mov rcx, r12
mov r9, qword [r9]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
nop dword [rax + rax]
test eax, eax
jns 0x140005a19
or r8d, 0xffffffff
jmp 0x140005a20
imul r8d, eax, 0x3e8
mov dword [rdi + 0x80], r8d
lea rdx, str.Hide_delay_is__u_milliseconds.
mov ecx, dword [0x14000e0a0]
call fcn.140007c34
lea r14, [0x140009da3]
jmp 0x140005a4d
mov qword [rax + 0x18], r12
lea r12, str.Connection_Manager
cmp qword [rdi + 0x10], r15
je 0x140005c06
mov ebx, 0x105
mov ecx, ebx
call qword [sym.imp.cmutil.dll_CmMalloc]
nop dword [rax + rax]
mov qword [rdi + 0x60], rax
test rax, rax
je 0x14000521b
mov r8, qword [rdi + 0x48]
lea rcx, [rbp - 0x70]
mov edx, ebx
mov dword [rsp + 0x28], 0x100
mov r8, qword [r8]
call fcn.140001da4
mov ebx, eax
test eax, eax
jns 0x140005ab6
mov rcx, qword [rdi + 0x60]
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
mov r8d, ebx
lea rdx, str.InitArgs_____StringCchCopyEx_failed:_0x_x_n
jmp 0x1400056db
mov dl, 0x2e
lea rcx, [rbp - 0x70]
call qword [sym.imp.cmutil.dll_CmStrrchrA]
nop dword [rax + rax]
test rax, rax
je 0x140005ae2
mov dl, 0x2e
lea rcx, [rbp - 0x70]
call qword [sym.imp.cmutil.dll_CmStrrchrA]
nop dword [rax + rax]
mov byte [rax], r15b
mov dl, 0x5c
lea rcx, [rbp - 0x70]
call qword [sym.imp.cmutil.dll_CmStrrchrA]
nop dword [rax + rax]
test rax, rax
je 0x140005b2f
mov dl, 0x5c
lea rcx, [rbp - 0x70]
call qword [sym.imp.cmutil.dll_CmStrrchrA]
nop dword [rax + rax]
mov edx, 0x105
mov dword [rsp + 0x28], 0x100
lea rcx, [rbp - 0x70]
lea r8, [rax + 1]
call fcn.140001da4
mov ebx, eax
test eax, eax
js 0x140005a97
mov rax, qword [rdi + 0x48]
lea r8, [rbp - 0x70]
mov r9, qword [rdi + 0x60]
lea rdx, str.ServiceName
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
mov rcx, r12
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
nop dword [rax + rax]
mov rax, qword [rdi + 0x48]
lea r9, [rbp + 0x1b0]
mov r8, r14
lea rdx, str.Icon
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
mov rcx, r12
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
nop dword [rax + rax]
cmp byte [rbp + 0x1b0], r15b
je 0x140005bb2
mov rcx, qword [rdi]
lea rdx, [rbp + 0x1b0]
call qword [sym.imp.cmutil.dll_CmLoadIconA]
nop dword [rax + rax]
mov qword [rdi + 0x68], rax
mov rax, qword [rdi + 0x48]
lea r9, [rbp + 0x1b0]
mov r8, r14
lea rdx, str.SmallIcon
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
mov rcx, r12
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
nop dword [rax + rax]
cmp byte [rbp + 0x1b0], r15b
je 0x140005c06
mov rcx, qword [rdi]
lea rdx, [rbp + 0x1b0]
call qword [sym.imp.cmutil.dll_CmLoadSmallIconA]
nop dword [rax + rax]
mov qword [rdi + 0x70], rax
mov ebx, 0x66
cmp qword [rdi + 0x68], r15
jne 0x140005c26
mov rcx, qword [rdi]
mov edx, ebx
call qword [sym.imp.cmutil.dll_CmLoadIconA]
nop dword [rax + rax]
mov qword [rdi + 0x68], rax
cmp qword [rdi + 0x70], r15
jne 0x140005c42
mov rcx, qword [rdi]
mov rdx, rbx
call qword [sym.imp.cmutil.dll_CmLoadSmallIconA]
nop dword [rax + rax]
mov qword [rdi + 0x70], rax
mov rcx, qword [rdi + 0x48]
mov r9, qword [rcx + 0x30]
mov r8, qword [rcx + 0x20]
mov rcx, qword [rcx + 0x18]
call fcn.140004bc8
mov ebx, 1
jmp 0x14000521f
mov ebx, r13d
jmp 0x14000521f