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

Disassembly:
push 0xa4
mov eax, 0x6c7a35
call fcn.00648b50
mov edi, ecx
lea eax, [ebp - 0xb0]
push eax
call fcn.005193cc
and dword [ebp - 4], 0
lea ecx, [ebp - 0xa0]
push dword [eax]
call fcn.00515719
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xb0]
lea ecx, [ecx - 0x10]
call fcn.00515ed6
push dword [ebp - 0xa0]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5196cb
call fcn.00515e26
push eax
lea ecx, [ebp - 0x98]
call fcn.00515c3a
mov byte [ebp - 4], 3
xor esi, esi
mov eax, dword [ebp - 0x98]
inc esi
mov edx, esi
mov ebx, 0x12c
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, ebx
or ecx, edx
jge 0x5194cd
push ebx
lea ecx, [ebp - 0x98]
call fcn.0051599a
mov eax, dword [ebp - 0x98]
push dword [ebp - 0xa0]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0x741504
push str.Name
push str.License
call ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 4
call fcn.0051d5f9
mov byte [ebp - 4], 3
call fcn.00515e26
push eax
lea ecx, [ebp - 0x9c]
call fcn.00515c3a
mov byte [ebp - 4], 5
mov edx, 0x12c
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax - 8]
sub esi, dword [eax - 4]
sub ecx, edx
or ecx, esi
jge 0x519544
push edx
lea ecx, [ebp - 0x9c]
call fcn.0051599a
mov eax, dword [ebp - 0x9c]
mov edx, 0x12c
push dword [ebp - 0xa0]
push edx
push eax
push 0x741504
push str.LicenseKey
push str.License
call ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 6
call fcn.0051d5f9
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x98]
lea ecx, [ecx - 0x10]
call fcn.00515476
add eax, 0x10
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x9c]
lea ecx, [ecx - 0x10]
call fcn.00515476
add eax, 0x10
mov dword [ebp - 0xac], eax
mov ebx, 0x74be50
mov byte [ebp - 4], 8
push ebx
lea ecx, [ebp - 0xa4]
call fcn.00519ebc
push 0
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 9
mov eax, dword [edi]
push ecx
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0xa8]
push ecx
mov ecx, edi
call dword [eax]
mov byte [ebp - 4], 8
mov esi, eax
mov ecx, dword [ebp - 0xa4]
add ecx, 0xfffffff0
call fcn.00515ed6
cmp esi, 3
jne 0x519687
push 0x4e4
push dword [ebp - 0x98]
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], eax
call fcn.0051d215
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xa8]
push dword [ebp - 0x94]
call fcn.00519e64
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 8
cmp dword [ebp - 0x94], eax
je 0x51964c
push dword [ebp - 0x94]
call fcn.0067b635
pop ecx
push ebx
lea ecx, [ebp - 0xa4]
call fcn.00519ebc
push 0
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0xb
mov eax, dword [edi]
push ecx
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0xa8]
push ecx
mov ecx, edi
call dword [eax]
mov ecx, dword [ebp - 0xa4]
lea ecx, [ecx - 0x10]
call fcn.00515ed6
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0xac]
lea ecx, [ecx - 0x10]
call fcn.00515ed6
mov ecx, dword [ebp - 0xa8]
lea ecx, [ecx - 0x10]
call fcn.00515ed6
mov ecx, dword [ebp - 0x9c]
lea ecx, [ecx - 0x10]
call fcn.00515ed6
mov ecx, dword [ebp - 0x98]
lea ecx, [ecx - 0x10]
call fcn.00515ed6
mov ecx, dword [ebp - 0xa0]
lea ecx, [ecx - 0x10]
call fcn.00515ed6
call fcn.00648afa
ret