Function at 0x40408b
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41d8ca
call fcn.004128c4
sub esp, 0x5c
mov eax, dword [0x4280c8]
push str.CDownloadFile::ContinueDownload_begin.__n
mov dword [ebp - 0x10], eax
call fcn.0040b1f8
lea eax, [ebx + 0x54]
mov dword [esp], 0x41e42c
push eax
call fcn.004051bc
test eax, eax
pop ecx
pop ecx
jne 0x4040c8
push 2
pop eax
jmp 0x404262
push esi
lea ecx, [ebp - 0x68]
lea esi, [ebx + 0x38]
mov eax, dword [esi]
push ecx
push eax
call fcn.0041077c
test eax, eax
pop ecx
pop ecx
je 0x4040e5
xor eax, eax
jmp 0x404261
mov eax, dword [esi]
push edi
mov edi, dword [eax - 0xc]
push 0x5c
call fcn.00404cb1
mov ecx, edi
sub ecx, eax
lea eax, [ebp - 0x38]
push eax
dec ecx
mov eax, esi
call fcn.00404ccf
xor edi, edi
mov dword [ebp - 4], edi
push dword [ebx + 0x40]
push str.CDownloadFile::ContinueDownload_m_nThreadNumber_d.__n
call fcn.0040b1f8
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop ecx
pop ecx
push dword [ebx + 0x48]
push edi
push str.ThreadNumber
push dword [ebp - 0x38]
call esi
cmp dword [ebx + 0x40], eax
jne 0x404253
push dword [ebx + 0x48]
push edi
push str.DownloadSize
push dword [ebp - 0x38]
call esi
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0x40]
shl eax, 3
push eax
call fcn.0040f0dc
and dword [ebp - 0x3c], 0
cmp dword [ebx + 0x40], 0
mov edi, eax
mov eax, dword [ebp - 0x40]
pop ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x34], eax
jle 0x4041cd
push dword [ebp - 0x3c]
lea eax, [ebp - 0x30]
push str.Thread_dEnd
push eax
call fcn.00410bc3
add esp, 0xc
push dword [ebx + 0x48]
lea eax, [ebp - 0x30]
push 0
push eax
push dword [ebp - 0x38]
call esi
mov ecx, dword [ebp - 0x3c]
push ecx
mov dword [edi + ecx*8], eax
lea eax, [ebp - 0x30]
push 0x42133c
push eax
call fcn.00410bc3
add esp, 0xc
push dword [ebx + 0x48]
lea eax, [ebp - 0x30]
push 0
push eax
push dword [ebp - 0x38]
call esi
mov ecx, dword [ebp - 0x3c]
mov edx, dword [edi + ecx*8]
mov dword [edi + ecx*8 + 4], eax
sub edx, eax
mov eax, dword [ebp - 0x34]
inc ecx
cmp ecx, dword [ebx + 0x40]
lea eax, [eax + edx + 1]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], ecx
jl 0x404166
push dword [ebp - 0x34]
push str.CDownloadFile::ContinueDownload_lTmp_d.__n
call fcn.0040b1f8
mov eax, dword [ebx + 0x30]
cmp dword [ebp - 0x34], eax
pop ecx
pop ecx
je 0x4041ee
push edi
call fcn.00410b38
xor edi, edi
jmp 0x404252
mov ecx, dword [ebp - 0x40]
mov dword [ebx + 0x3c], ecx
cmp dword [ebx + 0x3c], eax
jge 0x40423d
and dword [ebp - 0x34], 0
cmp dword [ebx + 0x40], 0
jle 0x40423d
push 0x44
call fcn.0040f0e1
test eax, eax
pop ecx
je 0x404228
mov ecx, dword [ebp - 0x34]
shl ecx, 3
push dword [ecx + edi]
mov edi, dword [ecx + edi + 4]
mov esi, eax
call fcn.004062b3
mov edi, dword [ebp - 0x44]
jmp 0x40422a
xor eax, eax
push ebx
mov esi, eax
call fcn.00402ded
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebx + 0x40]
jl 0x404203
push edi
call fcn.00410b38
mov dword [esp], str.CDownloadFile::ContinueDownload_OK.__n
call fcn.0040b1f8
xor edi, edi
inc edi
pop ecx
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
call fcn.00402528
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004120cb
leave
ret