Function at 0x1400d7dd0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x458]
sub rsp, 0x558
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x440], rax
mov qword [rbp - 0x80], r9
mov r15, r8
mov qword [rbp - 0x70], r8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rbp + 0x4c0]
mov qword [rbp - 0x78], rax
xor r13d, r13d
mov r12d, r13d
mov dword [rsp + 0x40], r13d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x20]
call fcn.1401e7e40
call fcn.1401bb0c4
mov rcx, rax
test rax, rax
je 0x1400d87f6
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov rax, qword [rsi]
mov r9d, 0x104
lea r8, [rbp + 0x20]
lea rdx, str.MISC
mov rcx, rsi
mov rax, qword [rax + 0x250]
call qword [case.0x1400136d6.0]
lea rcx, [rbp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
lea r8d, [r13 + 7]
lea rdx, str.SetupUI
lea rcx, [rbp - 0x28]
call fcn.140005520
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
lea r8d, [r13 + 0xe]
lea rdx, str.ResourceModule
lea rcx, [rbp - 0x48]
call fcn.140005520
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x58], xmm1
lea r8d, [r13 + 0xa]
lea rdx, str.ModuleInfo
lea rcx, [rbp - 0x68]
call fcn.140005520
nop
mov edx, 0x400
lea r8d, [r13 + 0x30]
mov rcx, r15
call fcn.140011420
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400d7f14
mov rax, qword [rdi]
mov r9, r15
cmp qword [r15 + 0x18], 8
jb 0x1400d7f21
mov r9, qword [r15]
lea r8, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae r8, qword [rbp - 0x28]
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rcx, qword [rbp - 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor r8d, r8d
mov edx, eax
mov rcx, r15
call fcn.140011420
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x1400d7fac
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d7fa7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d8801
call fcn.1400079c0
movdqa xmm0, xmmword [0x14026f3f0]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], r13w
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x1400d7ffe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d7ff9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d8807
call fcn.1400079c0
movdqa xmm0, xmmword [0x14026f3f0]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r13w
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1400d8050
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d804b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d880d
call fcn.1400079c0
movdqa xmm0, xmmword [0x14026f3f0]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r13w
mov rdx, r15
cmp qword [r15 + 0x18], 8
jb 0x1400d806f
mov rdx, qword [r15]
mov r14, 0xffffffffffffffff
test rdx, rdx
jne 0x1400d8080
mov eax, r13d
jmp 0x1400d808d
mov rax, r14
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400d8083
mov r8d, eax
lea rcx, [rsp + 0x38]
call fcn.140004e60
mov rbx, qword [rsp + 0x38]
cmp dword [rbx - 0x10], 0
jle 0x1400d876f
mov edx, 0x2a
mov rcx, rbx
call fcn.1401e71f4
test rax, rax
je 0x1400d876f
sub rax, rbx
sar rax, 1
cmp eax, r14d
je 0x1400d876f
mov dword [rsi + 0x20c], 1
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r13
movups xmmword [rbp - 8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 8], xmm1
mov r8d, recv
lea rdx, str.SupportLocale
lea rcx, [rbp - 8]
call fcn.140005520
nop
lea r8, [rsp + 0x50]
lea rdx, [rbp - 8]
mov rcx, rdi
call fcn.1401966a0
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x1400d815b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d8156
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d8813
call fcn.1400079c0
movdqa xmm0, xmmword [0x14026f3f0]
movdqu xmmword [rbp + 8], xmm0
mov word [rbp - 8], r13w
mov rdi, qword [rsp + 0x50]
cmp qword [rsp + 0x58], rdi
je 0x1400d86f8
nop dword [rax]
mov rbx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400d818d
mov rbx, qword [rdi]
call fcn.1401bb0c4
mov rcx, rax
test rax, rax
je 0x1400d87eb
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
add rax, 0x18
mov qword [rsp + 0x30], rax
test rbx, rbx
je 0x1400d81e0
cmp rbx, 0x10000
jae 0x1400d81d1
movzx edx, bx
lea rcx, [rsp + 0x30]
call fcn.1400041d0
jmp 0x1400d81f4
mov rax, r14
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400d81d4
jmp 0x1400d81e3
mov eax, r13d
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140004e60
nop
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x230]
call fcn.1401e7e40
mov rsi, qword [rsp + 0x30]
cmp dword [rsi - 0x10], 1
jl 0x1400d87bd
movzx ecx, word [rsi]
call fcn.1401ebf9c
test eax, eax
je 0x1400d8233
add rsi, 2
movzx ecx, word [rsi]
call fcn.1401ebf9c
test eax, eax
jne 0x1400d8223
mov rbx, qword [rsp + 0x30]
cmp rsi, rbx
je 0x1400d82e9
sub rsi, rbx
sar rsi, 1
mov edx, dword [rbx - 0x10]
test edx, edx
js 0x1400d8843
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x1400d8275
lfence
lea rcx, [rsp + 0x30]
call fcn.140004e00
mov rbx, qword [rsp + 0x30]
movsxd rax, esi
lea rdx, [rbx + rax*2]
mov ecx, dword [rbx - 0x10]
mov r14d, ecx
sub r14d, esi
lea eax, [r14 + 1]
movsxd r8, eax
add r8, r8
je 0x1400d82b9
test rdx, rdx
je 0x1400d882d
lea eax, [rcx + 1]
movsxd r9, eax
add r9, r9
cmp r9, r8
jb 0x1400d8819
mov rcx, rbx
call fcn.1401e7770
mov rbx, qword [rsp + 0x30]
test r14d, r14d
js 0x1400d8843
cmp r14d, dword [rbx - 0xc]
jg 0x1400d8843
mov dword [rbx - 0x10], r14d
movsxd rcx, r14d
mov rax, qword [rsp + 0x30]
mov word [rax + rcx*2], r13w
mov rbx, qword [rsp + 0x30]
mov r14, 0xffffffffffffffff
mov rsi, r13
movzx eax, word [rbx]
test ax, ax
je 0x1400d8378
movzx ecx, ax
call fcn.1401ebf9c
test eax, eax
je 0x1400d8313
mov rax, rbx
test rsi, rsi
cmovne rax, rsi
mov rsi, rax
jmp 0x1400d8316
mov rsi, r13
add rbx, 2
movzx eax, word [rbx]
test ax, ax
jne 0x1400d82f8
test rsi, rsi
je 0x1400d8378
mov rax, qword [rsp + 0x30]
sub rsi, rax
sar rsi, 1
test esi, esi
js 0x1400d8843
mov edx, 1
sub edx, dword [rax - 8]
mov ecx, dword [rax - 0xc]
sub ecx, esi
or ecx, edx
jge 0x1400d835f
lfence
mov edx, esi
lea rcx, [rsp + 0x30]
call fcn.140004e00
mov rax, qword [rsp + 0x30]
cmp esi, dword [rax - 0xc]
jg 0x1400d8843
mov dword [rax - 0x10], esi
movsxd rcx, esi
mov rax, qword [rsp + 0x30]
mov word [rax + rcx*2], r13w
mov rdx, r15
cmp qword [r15 + 0x18], 8
jb 0x1400d8385
mov rdx, qword [r15]
test rdx, rdx
jne 0x1400d838f
mov eax, r13d
jmp 0x1400d839c
mov rax, r14
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400d8392
mov r8d, eax
lea rcx, [rsp + 0x38]
call fcn.140004e60
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], rax
test rax, rax
je 0x1400d83cd
mov r15, r14
nop dword [rax + rax]
inc r15
cmp word [rax + r15*2], 0
jne 0x1400d83c0
jmp 0x1400d83d0
mov r15d, r13d
mov qword [rsp + 0x48], r15
mov r14d, r13d
mov rbx, qword [rsp + 0x38]
mov rsi, rbx
movsxd rax, dword [rbx - 0x10]
lea r12, [rbx + rax*2]
cmp rbx, r12
jae 0x1400d8606
mov r15, 0xffffffffffffffff
nop dword [rax + rax]
lea rdx, [0x14025367c]
mov rcx, rsi
call fcn.1401e7270
test rax, rax
je 0x1400d843b
nop dword [rax]
nop dword [rax + rax]
inc r14d
lea rsi, [rax + 2]
lea rdx, [0x14025367c]
mov rcx, rsi
call fcn.1401e7270
test rax, rax
jne 0x1400d8420
test rsi, rsi
je 0x1400d844f
mov rax, r15
inc rax
cmp word [rsi + rax*2], 0
jne 0x1400d8443
jmp 0x1400d8451
xor eax, eax
inc eax
movsxd rcx, eax
lea rsi, [rsi + rcx*2]
cmp rsi, r12
jb 0x1400d8400
mov r15, qword [rsp + 0x48]
test r14d, r14d
jle 0x1400d8606
movsxd r13, dword [rbx - 0x10]
lea esi, [r15 - 1]
imul esi, r14d
add esi, r13d
mov dword [rsp + 0x68], esi
mov edx, r13d
cmp esi, r13d
cmovg edx, esi
test edx, edx
js 0x1400d8843
lfence
mov rbx, qword [rsp + 0x38]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x1400d84bc
lfence
lea rcx, [rsp + 0x38]
call fcn.140004e00
mov rbx, qword [rsp + 0x38]
mov r14, rbx
lea r12, [rbx + r13*2]
mov qword [rsp + 0x78], r12
cmp rbx, r12
jae 0x1400d85e5
lea rdx, [0x14025367c]
mov rcx, r14
call fcn.1401e7270
mov rsi, rax
test rax, rax
je 0x1400d85b1
movsxd rax, r15d
lea r12, [rax + rax]
nop dword [rax]
nop word [rax + rax]
mov rax, rsi
sub rax, rbx
sar rax, 1
mov r15d, r13d
sub r15d, eax
movsxd rax, r15d
lea r8, [rax*2 - 2]
lea rdx, [rsi + 2]
lea r14, [r12 + rsi]
test r8, r8
je 0x1400d8541
test r14, r14
je 0x1400d882d
test rdx, rdx
je 0x1400d882d
mov rcx, r14
call fcn.1401e7770
test r12, r12
je 0x1400d8573
test rsi, rsi
je 0x1400d882d
mov rax, qword [rsp + 0x70]
mov r8, r12
mov rcx, rsi
test rax, rax
je 0x1400d8826
lfence
mov rdx, rax
call fcn.1401e7770
mov rbx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x48]
dec eax
add eax, r15d
movsxd rcx, eax
xor eax, eax
mov word [rsi + rcx*2], ax
mov r15, qword [rsp + 0x48]
dec r13d
add r13d, r15d
lea rdx, [0x14025367c]
mov rcx, r14
call fcn.1401e7270
mov rsi, rax
test rax, rax
jne 0x1400d8500
mov r12, qword [rsp + 0x78]
test r14, r14
je 0x1400d85cd
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r14 + rax*2], 0
jne 0x1400d85c0
jmp 0x1400d85cf
xor eax, eax
inc eax
movsxd rcx, eax
lea r14, [r14 + rcx*2]
cmp r14, r12
jb 0x1400d84d1
mov esi, dword [rsp + 0x68]
test esi, esi
js 0x1400d8843
cmp esi, dword [rbx - 0xc]
jg 0x1400d8843
mov dword [rbx - 0x10], esi
movsxd rax, esi
xor r13d, r13d
mov word [rbx + rax*2], r13w
jmp 0x1400d8609
xor r13d, r13d
mov qword [rsp + 0x20], rbx
lea r9, str.Resource_
lea r8, [rbp + 0x20]
lea rdx, [0x14025b2e0]
lea rcx, [rbp + 0x230]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x230]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1400d86b7
lea r8, [rsp + 0x30]
mov r13, qword [rbp - 0x80]
mov rdx, qword [r13 + 0x10]
mov rcx, r13
call fcn.1401c9128
lea r8, [rbp + 0x230]
mov r13, qword [rbp - 0x78]
mov rdx, qword [r13 + 0x10]
mov rcx, r13
call fcn.1401c91a0
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov r14, 0xffffffffffffffff
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400d869c
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
add rdi, 0x20
xor r13d, r13d
cmp qword [rsp + 0x58], rdi
je 0x1400d87e1
mov r15, qword [rbp - 0x70]
jmp 0x1400d8180
mov r12d, 0x80010060
mov dword [0x1402bbd98], 0x60
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov r14, 0xffffffffffffffff
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400d86f8
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
nop
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x1400d876f
cmp rbx, qword [rsp + 0x58]
je 0x1400d8723
nop dword [rax]
mov rcx, rbx
call fcn.1400048a0
add rbx, 0x20
cmp rbx, qword [rsp + 0x58]
jne 0x1400d8710
mov rdx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400d8759
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d884e
mov rcx, rbx
call fcn.1400079c0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r13
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x1400d8797
lfence
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x1400136d6.0]
mov eax, r12d
mov rcx, qword [rbp + 0x440]
xor rcx, rsp
call fcn.1401e2900
add rsp, 0x558
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, [rsi - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400d87e1
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
mov r12d, dword [rsp + 0x40]
jmp 0x1400d86f8
mov ecx, 0x80004005
call fcn.140001470
nop
mov ecx, 0x80004005
call fcn.140001470
nop
call fcn.1401ec41c
nop
call fcn.1401ec41c
nop
call fcn.1401ec41c
nop
call fcn.1401ec41c
nop
call fcn.1401ec568
mov dword [rax], 0x22
jmp 0x1400d8838
xor edx, edx
call fcn.1401e7e40
call fcn.1401ec568
mov dword [rax], socket
call fcn.1401ec3fc
call fcn.1401bb848
int3
mov ecx, 0x80070057
call fcn.140001470
nop
call fcn.1401ec41c
int3