Function at 0x412ae0
Capabilities:
Delete file
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c4
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x2a0]
mov edi, ecx
push eax
push 1
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.dlnowconf
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x208
lea eax, [ebp - 0x8b8]
push 0
push eax
call fcn.0041d2c0
push 0x208
lea eax, [ebp - 0x6b0]
push 0
push eax
call fcn.0041d2c0
push 0x208
lea eax, [ebp - 0x4a8]
push 0
push eax
call fcn.0041d2c0
add esp, 0x20
lea eax, [ebp - 0x2a0]
mov ebx, 0x104
mov edx, ebx
push eax
push ecx
lea ecx, [ebp - 0x8b8]
call fcn.00401190
cmp word [ebp - 0x8b8], 0
mov edx, ebx
push ecx
jne 0x412ba6
push str.FilePath_not_set.
push ecx
lea ecx, [ebp - 0x4a8]
call fcn.00401190
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x8b8]
push eax
push ecx
lea ecx, [ebp - 0x6b0]
call fcn.00401190
mov ecx, ebx
lea eax, [ebp - 0x6b0]
cmp word [eax], 0
je 0x412bcf
add eax, 2
sub ecx, 1
jne 0x412bc1
mov eax, ebx
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x412bf8
push ecx
push 0x4364a8
push ecx
sub ebx, esi
lea ecx, [ebp - 0x6b0]
lea ecx, [ecx + esi*2]
mov edx, ebx
call fcn.00401190
push ecx
lea eax, [ebp - 0x4a8]
push eax
push ecx
lea edx, [ebp - 0x6b0]
lea ecx, [ebp - 0x8b8]
call fcn.0040f260
add esp, 0xc
test eax, eax
jne 0x412c74
push eax
push 0x4000000
push 5
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x6b0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x412c5a
lea eax, [ebp - 0x6b0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x8b8], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jne 0x412c97
xorps xmm0, xmm0
movlpd qword [ebp - 0x8c0], xmm0
mov eax, dword [ebp - 0x8c0]
jmp 0x412cf5
xor eax, eax
lea ecx, [ebp - 0x8b8]
cmp word [ebp - 0x6b0], 0
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x6b0]
cmove eax, ecx
push eax
push 0x40
lea eax, [ebp - 0x88]
push eax
push 0
push str.version
push str.main
call esi
test eax, eax
jne 0x412ce6
xorps xmm0, xmm0
movlpd qword [ebp - 0x8c0], xmm0
mov eax, dword [ebp - 0x8c0]
jmp 0x412cf5
lea eax, [ebp - 0x88]
push eax
call fcn.004219c2
add esp, 4
cmp word [ebp - 0x8b8], 0
mov word [edi], ax
jne 0x412d15
xorps xmm0, xmm0
movlpd qword [ebp - 0x8c0], xmm0
mov eax, dword [ebp - 0x8c0]
jmp 0x412d73
xor eax, eax
lea ecx, [ebp - 0x8b8]
cmp word [ebp - 0x6b0], 0
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x6b0]
cmove eax, ecx
push eax
push 0x40
lea eax, [ebp - 0x88]
push eax
push 0
push str.lang_id
push str.main
call esi
test eax, eax
jne 0x412d64
xorps xmm0, xmm0
movlpd qword [ebp - 0x8c0], xmm0
mov eax, dword [ebp - 0x8c0]
jmp 0x412d73
lea eax, [ebp - 0x88]
push eax
call fcn.004219c2
add esp, 4
cmp word [ebp - 0x8b8], 0
mov word [edi + 2], ax
jne 0x412d94
xorps xmm0, xmm0
movlpd qword [ebp - 0x8c0], xmm0
mov eax, dword [ebp - 0x8c0]
jmp 0x412df2
xor eax, eax
lea ecx, [ebp - 0x8b8]
cmp word [ebp - 0x6b0], 0
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x6b0]
cmove eax, ecx
push eax
push 0x40
lea eax, [ebp - 0x88]
push eax
push 0
push str.always_on_top
push str.main
call esi
test eax, eax
jne 0x412de3
xorps xmm0, xmm0
movlpd qword [ebp - 0x8c0], xmm0
mov eax, dword [ebp - 0x8c0]
jmp 0x412df2
lea eax, [ebp - 0x88]
push eax
call fcn.004219c2
add esp, 4
cmp word [ebp - 0x8b8], 0
mov dword [edi + 0x8c], eax
jne 0x412e15
xorps xmm0, xmm0
movlpd qword [ebp - 0x8c0], xmm0
mov eax, dword [ebp - 0x8c0]
jmp 0x412e73
xor eax, eax
lea ecx, [ebp - 0x8b8]
cmp word [ebp - 0x6b0], 0
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x6b0]
cmove eax, ecx
push eax
push 0x40
lea eax, [ebp - 0x88]
push eax
push 0
push str.auto_update
push str.main
call esi
test eax, eax
jne 0x412e64
xorps xmm0, xmm0
movlpd qword [ebp - 0x8c0], xmm0
mov eax, dword [ebp - 0x8c0]
jmp 0x412e73
lea eax, [ebp - 0x88]
push eax
call fcn.004219c2
add esp, 4
cmp word [ebp - 0x8b8], 0
mov dword [edi + 0x90], eax
je 0x412f7b
cmp word [ebp - 0x6b0], 0
lea ecx, [ebp - 0x8b8]
lea eax, [ebp - 0x6b0]
cmove eax, ecx
push eax
push 0x104
lea eax, [edi + 0x94]
push eax
push 0
push str.output_folder
push str.main
call esi
cmp word [ebp - 0x8b8], 0
je 0x412f7b
cmp word [ebp - 0x6b0], 0
lea ecx, [ebp - 0x8b8]
lea eax, [ebp - 0x6b0]
cmove eax, ecx
push eax
push 0x100
lea eax, [edi + 0x29c]
push eax
push 0
push str.proxy_server
push str.main
call esi
cmp word [ebp - 0x8b8], 0
je 0x412f7b
cmp word [ebp - 0x6b0], 0
lea ecx, [ebp - 0x8b8]
lea eax, [ebp - 0x6b0]
cmove eax, ecx
push eax
push 0x200
lea eax, [edi + 0x49c]
push eax
push 0
push str.commands
push str.main
call esi
cmp word [ebp - 0x8b8], 0
je 0x412f7b
cmp word [ebp - 0x6b0], 0
lea ecx, [ebp - 0x8b8]
lea eax, [ebp - 0x6b0]
cmove eax, ecx
push eax
push 0x100
lea eax, [edi + 0x89c]
push eax
push 0
push str.output_template
push str.main
call esi
cmp word [ebp - 0x8b8], 0
jne 0x412f8e
xorps xmm0, xmm0
movlpd qword [ebp - 0x8c0], xmm0
mov eax, dword [ebp - 0x8c0]
jmp 0x412fec
xor eax, eax
lea ecx, [ebp - 0x8b8]
cmp word [ebp - 0x6b0], 0
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x6b0]
cmove eax, ecx
push eax
push 0x40
lea eax, [ebp - 0x88]
push eax
push 0
push str.validate
push str.license
call esi
test eax, eax
jne 0x412fdd
xorps xmm0, xmm0
movlpd qword [ebp - 0x8c0], xmm0
mov eax, dword [ebp - 0x8c0]
jmp 0x412fec
lea eax, [ebp - 0x88]
push eax
call fcn.004219c2
add esp, 4
cmp word [ebp - 0x8b8], 0
mov dword [edi + 4], eax
je 0x413080
cmp word [ebp - 0x6b0], 0
lea ecx, [ebp - 0x8b8]
lea eax, [ebp - 0x6b0]
cmove eax, ecx
push eax
push 0x40
lea eax, [edi + 8]
push eax
push 0
push 0x4368cc
push str.license
call esi
cmp word [ebp - 0x8b8], 0
je 0x413080
xor eax, eax
lea ecx, [ebp - 0x8b8]
cmp word [ebp - 0x6b0], 0
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x6b0]
cmove eax, ecx
push eax
push 0x40
lea eax, [ebp - 0x88]
push eax
push 0
push 0x4368d4
push str.license
call esi
test eax, eax
je 0x413080
lea eax, [ebp - 0x88]
push eax
call fcn.004219c2
add esp, 4
jmp 0x413091
xorps xmm0, xmm0
movlpd qword [ebp - 0x8c0], xmm0
mov eax, dword [ebp - 0x8c0]
cmp word [ebp - 0x8b8], 0
mov dword [edi + 0x88], eax
jne 0x4130a5
xor eax, eax
jmp 0x4130d1
cmp word [ebp - 0x6b0], 0
lea ecx, [ebp - 0x8b8]
lea eax, [ebp - 0x6b0]
cmove eax, ecx
push eax
push 8
lea eax, [ebp - 0x98]
push eax
push 0
push 0
push str.credentials
call esi
xor ecx, ecx
test eax, eax
setne cl
cmp word [ebp - 0x6b0], 0
mov dword [0x43e0b4], ecx
je 0x413122
push 0
push 0x4000000
push 5
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x6b0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41311b
lea eax, [ebp - 0x6b0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x413122
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret