Function at 0x405fe0
Capabilities:
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1d34
call fcn.00414ba0
mov eax, dword [0x421280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 0x206
push eax
mov word [ebp - 0x4c8], ax
lea eax, [ebp - 0x4c6]
push eax
mov dword [edi], 0
call fcn.00411080
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.00411080
add esp, 0x18
lea eax, [ebp - 0x4c8]
push eax
call fcn.004059a0
test eax, eax
je 0x406387
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0xcc]
push str.config
push eax
call ebx
lea eax, [ebp - 0x4c8]
push eax
push 0
push str.count
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, 0x18
mov dword [ebp - 0x1d34], eax
cmp eax, edx
mov ecx, eax
cmovg ecx, edx
mov dword [edi], ecx
test eax, eax
jle 0x406379
xor eax, eax
push 0x62
push eax
mov word [ebp - 0x130], ax
lea eax, [ebp - 0x12e]
push eax
call fcn.00411080
xor eax, eax
push 0x62
push eax
mov word [ebp - 0x194], ax
lea eax, [ebp - 0x192]
push eax
call fcn.00411080
xor eax, eax
push 0x62
push eax
mov word [ebp - 0x2c0], ax
lea eax, [ebp - 0x2be]
push eax
call fcn.00411080
xor eax, eax
push 0x62
push eax
mov word [ebp - 0x1f8], ax
lea eax, [ebp - 0x1f6]
push eax
call fcn.00411080
xor eax, eax
push 0x62
push eax
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25a]
push eax
call fcn.00411080
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xae0], ax
lea eax, [ebp - 0xade]
push eax
call fcn.00411080
add esp, 0x48
xor eax, eax
mov word [ebp - 0x1d30], ax
push 0x1046
push eax
lea eax, [ebp - 0x1d2e]
push eax
call fcn.00411080
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x8d8], ax
lea eax, [ebp - 0x8d6]
push eax
call fcn.00411080
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xce8], ax
lea eax, [ebp - 0xce6]
push eax
call fcn.00411080
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x6d0], ax
lea eax, [ebp - 0x6ce]
push eax
call fcn.00411080
mov eax, dword [ebp - 0x1d34]
add esp, 0x30
xor edi, edi
test eax, eax
jle 0x406379
cmp eax, 0x18
jge 0x406379
push edi
lea eax, [ebp - 0x130]
push str.title_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push edi
lea eax, [ebp - 0x194]
push str.url_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push edi
lea eax, [ebp - 0x2c0]
push str.filename_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push edi
lea eax, [ebp - 0x1f8]
push str.param_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push edi
lea eax, [ebp - 0x25c]
push str.checkkey_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x3c
lea eax, [ebp - 0x4c8]
push eax
push 0x104
lea eax, [ebp - 0xae0]
push eax
push 0x41e848
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x4c8]
push eax
push 0x824
lea eax, [ebp - 0x1d30]
push eax
push 0x41e848
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x4c8]
push eax
push 0x104
lea eax, [ebp - 0x8d8]
push eax
push 0x41e848
lea eax, [ebp - 0x2c0]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x4c8]
push eax
push 0x104
lea eax, [ebp - 0xce8]
push eax
push 0x41e848
lea eax, [ebp - 0x1f8]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x4c8]
push eax
push 0x104
lea eax, [ebp - 0x6d0]
push eax
push 0x41e848
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x186c
call fcn.0040d4c1
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x40636a
lea ecx, [ebp - 0xae0]
push ecx
push eax
call ebx
lea eax, [ebp - 0x1d30]
push eax
mov eax, dword [esi]
add eax, 0x208
push eax
call ebx
lea eax, [ebp - 0x8d8]
push eax
mov eax, dword [esi]
add eax, 0x1250
push eax
call ebx
lea eax, [ebp - 0xce8]
push eax
mov eax, dword [esi]
add eax, 0x1458
push eax
call ebx
lea eax, [ebp - 0x6d0]
push eax
mov eax, dword [esi]
add eax, 0x1660
push eax
call ebx
mov eax, dword [esi]
add esi, 4
mov dword [eax + 0x1868], 1
mov eax, dword [ebp - 0x1d34]
inc edi
cmp edi, eax
jl 0x4061b3
lea eax, [ebp - 0x4c8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d13e
mov esp, ebp
pop ebp
ret 8