Function at 0x4217a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56daac
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x5cc6c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x420]
push 0x208
push 0
push eax
mov dword [ebp - 0x440], edi
call fcn.0053efc0
add esp, 4
mov eax, esp
mov dword [eax], 0x580820
mov dword [eax + 4], 7
lea eax, [ebp - 0x458]
push eax
call fcn.00418db0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x421814
mov eax, dword [eax]
push str.Download
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edx, dword [ebp - 0x444]
cmp edx, 8
jb 0x421867
mov ecx, dword [ebp - 0x458]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42185d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421a46
push edx
push ecx
call fcn.004f9d5c
add esp, 8
call fcn.004062e0
mov ecx, eax
test ecx, ecx
je 0x421a4b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x424]
call fcn.004088d0
test al, al
jne 0x4218d2
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4218b0
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.00406810
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.0053efc0
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [esi + 0x20]
mov esi, dword [ebp - 0x424]
push 0x104
push eax
push esi
push 0x581070
push str.settings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [ebp - 0x42c], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x428], 7
mov word [ebp - 0x43c], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421940
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x43c]
call fcn.00406a80
lea eax, [ebp - 0x43c]
mov byte [ebp - 4], 2
push eax
call fcn.00417ed0
mov edx, dword [ebp - 0x428]
add esp, 4
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x4219b9
mov ecx, dword [ebp - 0x43c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4219af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421a55
push edx
push ecx
call fcn.004f9d5c
add esp, 8
call fcn.004062e0
mov ecx, eax
test ecx, ecx
je 0x421a5a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.004088d0
test al, al
jne 0x421a0f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4219f1
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00406810
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x421a27
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fa004
mov esp, ebp
pop ebp
ret 4
call fcn.00542850
push 0x80004005
call fcn.004061e0
call fcn.00542850
push 0x80004005
call fcn.004061e0
int3