Function at 0x41895a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x515584]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
mov edx, dword [eax + 4]
cmp eax, vtable.CDownload.0
jne 0x418d10
cmp dword [edi + 0x247c], 0
je 0x4185d2
cmp dword [edi + 0x246c], 1
jg 0x4185d2
mov eax, dword [edi + 0x26a0]
mov dword [edi + 0x246c], 1
test eax, eax
je 0x4185d2
push dword [edi + 0x269c]
push 1
push edi
call eax
test eax, eax
je 0x418cfb
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xc], ebx
call ebx
mov ecx, dword [edi + 0x2468]
mov edx, 0xa
cmp ecx, edx
mov dword [esp + 0x1c], eax
mov dword [edi + 0x26ac], eax
mov dword [edi + 0x26cc], eax
cmovb edx, ecx
lea eax, [edi + 0x62cb8]
mov dword [edi + 0x2468], edx
push eax
call fcn.0049b6bb
add esp, 4
mov ecx, edi
push 0
call fcn.004183a0
test eax, eax
je 0x418cfb
mov eax, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
movsd xmm0, qword [0x4db1e8]
mov dword [esp + 0x24], eax
mov eax, dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
mov dword [esp + 0x28], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x2c], eax
mov eax, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [esp + 0x18], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esp + 0x10], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
mov eax, dword [sym.imp.WININET.dll_InternetWriteFile]
mov dword [esp + 0x20], eax
mov eax, dword [sym.imp.WININET.dll_InternetReadFileExA]
mov dword [esp + 0x30], eax
mov eax, dword [sym.imp.WININET.dll_InternetReadFile]
movsd qword [esp + 0x40], xmm0
mov dword [esp + 0x34], eax
jmp 0x418694
mov dword [esi + 0x18], eax
nop dword [eax + eax]
mov ebx, dword [esp + 0xc]
cmp dword [edi + 0x5d0f8], 7
je 0x4186ba
cmp dword [edi + 0x26a8], 0
je 0x4186ba
call ebx
sub eax, dword [edi + 0x26ac]
cmp eax, dword [edi + 0x26a8]
ja 0x418c89
mov eax, dword [edi + 0x2464]
xorps xmm0, xmm0
movlpd qword [esp + 0x5c], xmm0
xor edx, edx
movlpd qword [esp + 0x64], xmm0
movlpd qword [esp + 0x6c], xmm0
movlpd qword [esp + 0x74], xmm0
movlpd qword [esp + 0x7c], xmm0
mov dword [esp + 0x58], eax
nop word [eax + eax]
mov ecx, dword [edi + 0x26dc]
mov eax, 0xb
mov esi, dword [edi + 0x26d8]
sub ecx, esi
sar ecx, 2
cmp ecx, eax
cmovb eax, ecx
cmp edx, eax
jae 0x418723
mov ecx, dword [esi + edx*4]
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x41871c
mov eax, dword [ecx + 0xc]
mov dword [esp + edx*4 + 0x5c], eax
inc edx
jmp 0x4186f0
inc edx
cmp edx, 1
jbe 0x418cca
push 0x1f4
push 0
lea eax, [esp + 0x60]
push eax
push edx
call dword [esp + 0x34]
mov ebx, eax
call dword [esp + 0xc]
mov ecx, eax
mov dword [esp + 0x48], eax
sub ecx, dword [esp + 0x1c]
cmp ecx, 0x1f4
jb 0x41882d
mov eax, dword [edi + 0x26b8]
lea esi, [edi + 0x26b4]
mov edx, dword [edi + 0x26c0]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
cmp dword [esi + 8], eax
je 0x418784
mov dword [eax], edx
mov dword [eax + 4], ecx
add dword [esi + 4], 8
jmp 0x418791
lea ecx, [esp + 0x38]
push ecx
push eax
mov ecx, esi
call fcn.0041bac0
mov edx, dword [esi + 4]
mov eax, edx
mov ecx, dword [esi]
sub eax, ecx
sar eax, 3
cmp eax, 6
jbe 0x4187c1
lea eax, [ecx + 8]
sub edx, eax
push edx
push eax
push ecx
call fcn.00490510
add esp, 0xc
add dword [edi + 0x26b8], 0xfffffff8
mov edx, dword [edi + 0x26b8]
mov ecx, dword [esi]
sub edx, ecx
and edx, 0xfffffff8
cmp edx, 0x30
jne 0x41881b
xor edx, edx
xor esi, esi
xor eax, eax
add edx, dword [ecx + eax*8 + 4]
add esi, dword [ecx + eax*8]
inc eax
cmp eax, 6
jb 0x4187d1
movd xmm0, esi
movd xmm1, edx
cvtdq2pd xmm0, xmm0
shr esi, 0x1f
shr edx, 0x1f
cvtdq2pd xmm1, xmm1
addsd xmm0, qword [esi*8 + 0x4db200]
addsd xmm1, qword [edx*8 + 0x4db200]
divsd xmm0, xmm1
mulsd xmm0, qword [esp + 0x40]
call fcn.0048e571
mov dword [edi + 0x26b0], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
mov dword [edi + 0x26c0], 0
lea eax, [esp + 0x50]
push eax
call fcn.0049b6bb
mov ecx, dword [esp + 0x54]
add esp, 4
sub ecx, dword [edi + 0x62cb8]
mov eax, dword [esp + 0x54]
sbb eax, dword [edi + 0x62cbc]
mov esi, dword [edi + 0x26b0]
mov dword [edi + 0x62cc0], ecx
mov dword [edi + 0x62cc4], eax
test esi, esi
je 0x418891
mov ecx, dword [edi + 0x5d100]
mov eax, ecx
mov edx, dword [edi + 0x5d104]
and eax, edx
cmp eax, 0xffffffff
je 0x418891
sub ecx, dword [edi + 0x5d110]
push 0
sbb edx, dword [edi + 0x5d114]
push esi
push edx
push ecx
call fcn.0048e820
jmp 0x4188a2
xorps xmm0, xmm0
movlpd qword [esp + 0x48], xmm0
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov dword [edi + 0x62cc8], eax
mov dword [edi + 0x62ccc], edx
cmp ebx, 0xffffffff
je case.default.0x418953
cmp ebx, 0x102
jne 0x418911
cmp dword [edi + 0x246c], 6
mov ebx, dword [esp + 0xc]
jne 0x418694
call ebx
mov ecx, eax
sub ecx, dword [edi + 0x26a4]
cmp ecx, 0x3e8
jbe 0x418694
mov dword [edi + 0x26a4], eax
mov ecx, edi
mov eax, dword [edi]
push 0
push 6
call dword [eax + 4]
test eax, eax
jne 0x418694
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0048d7c2
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x418ca5
mov eax, dword [edi + 0x26d8]
dec ebx
mov esi, dword [eax + ebx*4]
call dword [esp + 0xc]
mov dword [edi + 0x26c4], eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x418947
push eax
call dword [esp + 0x2c]
push dword [esi + 0x10]
call dword [esp + 0x30]
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0x28]
cmp eax, 0xa
ja case.default.0x418953
jmp dword [eax*4 + 0x418d1c]
mov eax, dword [edi + 0x26d8]
mov esi, dword [eax + ebx*4]
push dword [esi + 0xc]
mov dword [esi + 0x28], 1
call dword [esp + 0x1c]
cmp dword [esi + 0x24], 0
jne 0x418980
lea eax, [edi + 0x5f5c0]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x20]
mov ecx, edi
push esi
cmp dword [eax + 4], 1
je 0x418993
call fcn.0041a220
jmp 0x418998
call fcn.0041a030
test eax, eax
je 0x4189a8
push dword [esi + 0xc]
call dword [esp + 0x14]
jmp 0x418690
call dword [esp + 0x14]
cmp eax, 0x3e5
je 0x418690
push ebx
mov ecx, edi
call fcn.00419f00
jmp case.default.0x418953
mov eax, dword [edi + 0x26d8]
mov esi, dword [eax + ebx*4]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 2
cmp dword [eax + 4], 1
je 0x418a39
cmp dword [edi + 0x2480], 0
mov ebx, dword [esp + 0xc]
je 0x418694
push dword [esi + 0xc]
mov dword [esp + 0x4c], 0
call dword [esp + 0x1c]
lea eax, [esp + 0x48]
push eax
push dword [edi + 0x2484]
push dword [edi + 0x2480]
push dword [esi + 0x1c]
call dword [esp + 0x30]
test eax, eax
je 0x418a25
push dword [esi + 0xc]
call dword [esp + 0x14]
jmp 0x418694
call dword [esp + 0x14]
cmp eax, 0x3e5
jne case.default.0x418953
jmp 0x418694
cmp dword [esi], 0
jne 0x418a49
mov eax, dword [esi + 4]
test eax, eax
jne 0x418685
push 1
push ebx
mov ecx, edi
mov dword [esi + 0x28], 0
call fcn.0041a400
test eax, eax
je case.default.0x418953
jmp 0x418690
push ebx
mov ecx, edi
call fcn.00418d50
jmp 0x418c80
push ebx
mov ecx, edi
call fcn.00418e60
jmp 0x418c80
mov eax, dword [edi + 0x26d8]
mov esi, dword [eax + ebx*4]
push dword [esi + 0xc]
mov dword [esi + 0x28], 5
call dword [esp + 0x1c]
mov eax, dword [esi + 0x8040]
cmp dword [eax + 4], 0
jne 0x418aef
jmp 0x418980
mov eax, dword [edi + 0x26d8]
mov esi, dword [eax + ebx*4]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 6
cmp dword [eax + 4], 1
jne 0x4189dd
cmp dword [esi], 0
jne 0x418ad6
mov eax, dword [esi + 4]
test eax, eax
jne 0x418685
push 1
push ebx
mov ecx, edi
mov dword [esi + 0x28], 4
call fcn.0041a400
test eax, eax
jne 0x418690
push ebx
mov ecx, edi
call fcn.00419f00
jmp 0x418690
push ebx
mov ecx, edi
call fcn.004196e0
jmp 0x418c80
push ebx
mov ecx, edi
call fcn.004197f0
jmp 0x418c80
mov eax, dword [edi + 0x26d8]
push 0x8000
push 0
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x50], eax
mov dword [eax + 0x8048], 0
lea esi, [eax + 0x40]
mov dword [eax + 0x804c], 0
mov dword [eax + 0x8050], 0
mov dword [eax + 0x8054], 0
mov dword [eax + 0x8060], 0
mov dword [eax + 0x8064], 0
mov dword [eax + 0x8068], 0
push esi
mov dword [eax + 0x8044], 0x28
call fcn.00490000
mov eax, dword [esp + 0x54]
add esp, 0xc
mov dword [eax + 0x8058], esi
mov esi, eax
mov edx, dword [esi + 0x8040]
mov dword [esi + 0x805c], 0x8000
test edx, edx
je 0x418be0
mov eax, dword [edx + 0x10]
sub eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x14]
sbb ecx, dword [edx + 0x1c]
sub eax, dword [edx + 8]
sbb ecx, dword [edx + 0xc]
add eax, 1
adc ecx, 0
test ecx, ecx
jb 0x418bda
ja 0x418bcb
cmp eax, 0x8000
jbe 0x418bda
mov eax, 0x8000
mov dword [esp + 0x4c], 0
jmp 0x418c21
mov dword [esp + 0x4c], ecx
jmp 0x418c21
mov eax, dword [edi + 0x5d100]
mov ecx, dword [edi + 0x5d104]
cmp eax, 0xffffffff
jne 0x418bf5
cmp ecx, eax
je 0x418c27
sub eax, dword [edi + 0x5d110]
sbb ecx, dword [edi + 0x5d114]
test ecx, ecx
jb 0x418c1d
ja 0x418c0e
cmp eax, 0x8000
jbe 0x418c1d
mov eax, 0x8000
mov dword [esp + 0x4c], 0
jmp 0x418c21
mov dword [esp + 0x4c], ecx
mov dword [esi + 0x805c], eax
push dword [esi + 0xc]
call dword [esp + 0x1c]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x28], 9
cmp dword [eax + 4], 1
je 0x418c55
push esi
push 1
lea eax, [esi + 0x8044]
push eax
push ecx
call dword [esp + 0x40]
jmp 0x418998
lea eax, [esi + 0x805c]
push eax
push dword [eax]
push dword [esi + 0x8058]
push ecx
call dword [esp + 0x44]
jmp 0x418998
push ebx
mov ecx, edi
call fcn.00419a40
jmp 0x418c80
push ebx
mov ecx, edi
call fcn.00419cf0
test eax, eax
je case.default.0x418953
jmp 0x418690
mov dword [edi + 0x5d0f8], 0xa
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0048d7c2
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x5d0f8], 7
je 0x418cfb
mov dword [edi + 0x5d0f8], 9
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0048d7c2
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x26f0], 0
je 0x418cfb
mov eax, dword [edi + 0x5d114]
cmp eax, dword [edi + 0x5d104]
ja 0x418cfb
jb case.default.0x418953
mov eax, dword [edi + 0x5d110]
cmp eax, dword [edi + 0x5d100]
jae 0x418cfb
mov dword [edi + 0x5d0f8], 8
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048d7c2
mov esp, ebp
pop ebp
ret
push 0
push 1
call edx
jmp 0x4185ca