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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x54c384]
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 0x4318b4
cmp dword [edi + 0x247c], 0
je 0x431192
cmp dword [edi + 0x246c], 1
jg 0x431192
mov eax, dword [edi + 0x26a0]
mov dword [edi + 0x246c], 1
test eax, eax
je 0x431192
push dword [edi + 0x269c]
push 1
push edi
call eax
test eax, eax
je 0x43189f
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.004c82ab
add esp, 4
mov ecx, edi
push 0
call fcn.00430f60
test eax, eax
je 0x43189f
mov eax, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
movsd xmm0, qword [0x511728]
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 0x431254
mov dword [esi + 0x18], eax
nop dword [eax + eax]
mov ebx, dword [esp + 0xc]
cmp dword [edi + 0x5d0f8], 7
je 0x43127a
cmp dword [edi + 0x26a8], 0
je 0x43127a
call ebx
sub eax, dword [edi + 0x26ac]
cmp eax, dword [edi + 0x26a8]
ja 0x431852
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 0x4312e3
mov ecx, dword [esi + edx*4]
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x4312dc
mov eax, dword [ecx + 0xc]
mov dword [esp + edx*4 + 0x5c], eax
inc edx
jmp 0x4312b0
inc edx
cmp edx, 1
jbe 0x43186e
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 0x4313ed
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 0x431344
mov dword [eax], edx
mov dword [eax + 4], ecx
add dword [esi + 4], 8
jmp 0x431351
lea ecx, [esp + 0x38]
push ecx
push eax
mov ecx, esi
call fcn.00434620
mov edx, dword [esi + 4]
mov eax, edx
mov ecx, dword [esi]
sub eax, ecx
sar eax, 3
cmp eax, 6
jbe 0x431381
lea eax, [ecx + 8]
sub edx, eax
push edx
push eax
push ecx
call fcn.004c0040
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 0x4313db
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 0x431391
movd xmm0, esi
movd xmm1, edx
cvtdq2pd xmm0, xmm0
shr esi, 0x1f
shr edx, 0x1f
cvtdq2pd xmm1, xmm1
addsd xmm0, qword [esi*8 + 0x511760]
addsd xmm1, qword [edx*8 + 0x511760]
divsd xmm0, xmm1
mulsd xmm0, qword [esp + 0x40]
call fcn.004be8b1
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.004c82ab
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 0x431451
mov ecx, dword [edi + 0x5d100]
mov eax, ecx
mov edx, dword [edi + 0x5d104]
and eax, edx
cmp eax, 0xffffffff
je 0x431451
sub ecx, dword [edi + 0x5d110]
push 0
sbb edx, dword [edi + 0x5d114]
push esi
push edx
push ecx
call fcn.004beb60
jmp 0x431462
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.0x431513
cmp ebx, 0x102
jne 0x4314d1
cmp dword [edi + 0x246c], 6
mov ebx, dword [esp + 0xc]
jne 0x431254
call ebx
mov ecx, eax
sub ecx, dword [edi + 0x26a4]
cmp ecx, 0x3e8
jbe 0x431254
mov dword [edi + 0x26a4], eax
mov ecx, edi
mov eax, dword [edi]
push 0
push 6
call dword [eax + 4]
test eax, eax
jne 0x431254
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004bdaf8
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x431849
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 0x431507
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.0x431513
jmp dword [eax*4 + 0x4318c0]
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 0x431540
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 0x431553
call fcn.00432dc0
jmp 0x431558
call fcn.00432bd0
test eax, eax
je 0x431568
push dword [esi + 0xc]
call dword [esp + 0x14]
jmp 0x431250
call dword [esp + 0x14]
cmp eax, 0x3e5
je 0x431250
push ebx
mov ecx, edi
call fcn.00432aa0
jmp case.default.0x431513
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 0x4315f9
cmp dword [edi + 0x2480], 0
mov ebx, dword [esp + 0xc]
je 0x431254
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 0x4315e5
push dword [esi + 0xc]
call dword [esp + 0x14]
jmp 0x431254
call dword [esp + 0x14]
cmp eax, 0x3e5
jne case.default.0x431513
jmp 0x431254
cmp dword [esi], 0
jne 0x431609
mov eax, dword [esi + 4]
test eax, eax
jne 0x431245
push 1
push ebx
mov ecx, edi
mov dword [esi + 0x28], 0
call fcn.00432fa0
test eax, eax
je case.default.0x431513
jmp 0x431250
push ebx
mov ecx, edi
call fcn.004318f0
jmp 0x431840
push ebx
mov ecx, edi
call fcn.00431a00
jmp 0x431840
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 0x4316af
jmp 0x431540
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 0x43159d
cmp dword [esi], 0
jne 0x431696
mov eax, dword [esi + 4]
test eax, eax
jne 0x431245
push 1
push ebx
mov ecx, edi
mov dword [esi + 0x28], 4
call fcn.00432fa0
test eax, eax
jne 0x431250
push ebx
mov ecx, edi
call fcn.00432aa0
jmp 0x431250
push ebx
mov ecx, edi
call fcn.00432280
jmp 0x431840
push ebx
mov ecx, edi
call fcn.00432390
jmp 0x431840
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.004c05c0
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 0x4317a0
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 0x43179a
ja 0x43178b
cmp eax, 0x8000
jbe 0x43179a
mov eax, 0x8000
mov dword [esp + 0x4c], 0
jmp 0x4317e1
mov dword [esp + 0x4c], ecx
jmp 0x4317e1
mov eax, dword [edi + 0x5d100]
mov ecx, dword [edi + 0x5d104]
cmp eax, 0xffffffff
jne 0x4317b5
cmp ecx, eax
je 0x4317e7
sub eax, dword [edi + 0x5d110]
sbb ecx, dword [edi + 0x5d114]
test ecx, ecx
jb 0x4317dd
ja 0x4317ce
cmp eax, 0x8000
jbe 0x4317dd
mov eax, 0x8000
mov dword [esp + 0x4c], 0
jmp 0x4317e1
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 0x431815
push esi
push 1
lea eax, [esi + 0x8044]
push eax
push ecx
call dword [esp + 0x40]
jmp 0x431558
lea eax, [esi + 0x805c]
push eax
push dword [eax]
push dword [esi + 0x8058]
push ecx
call dword [esp + 0x44]
jmp 0x431558
push ebx
mov ecx, edi
call fcn.004325e0
jmp 0x431840
push ebx
mov ecx, edi
call fcn.00432890
test eax, eax
je case.default.0x431513
jmp 0x431250
cmp dword [edi + 0x5d0f8], 7
je 0x43189f
mov dword [edi + 0x5d0f8], 9
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004bdaf8
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x26f0], 0
je 0x43189f
mov eax, dword [edi + 0x5d114]
cmp eax, dword [edi + 0x5d104]
ja 0x43189f
jb case.default.0x431513
mov eax, dword [edi + 0x5d110]
cmp eax, dword [edi + 0x5d100]
jae 0x43189f
mov dword [edi + 0x5d0f8], 8
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bdaf8
mov esp, ebp
pop ebp
ret
push 0
push 1
call edx
jmp 0x43118a