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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4706ba
mov eax, dword fs:[0]
push eax
sub esp, 0x110
push ebx
push esi
push edi
mov eax, dword [0x498fa4]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push edi
lea eax, [ebx + 0x28]
call fcn.0041e6b8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x421028
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esp + 0x24]
push eax
call esi
and dword [esp + 0x128], 0
lea eax, [edi - 0x7d0]
cmp eax, 0xa
ja case.default.0x4208d6
movzx eax, byte [eax + 0x421050]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp dword [eax*4 + 0x421040]
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x4208f7
mov esi, 0x8002000f
lea eax, [esp + 0x24]
push eax
call edi
mov eax, esi
jmp 0x421028
mov eax, dword [eax + 8]
cmp eax, 4
jae 0x420906
mov esi, 0x8002000e
jmp 0x4208e9
cmp eax, 5
ja 0x4208ff
lea eax, [esp + 0x74]
push eax
call esi
lea eax, [esp + 0x54]
push eax
call esi
lea eax, [esp + 0x84]
push eax
call esi
lea eax, [esp + 0x64]
push eax
call esi
lea eax, [esp + 0x3c]
push eax
call esi
mov eax, dword [ebp + 0x1c]
mov byte [esp + 0x128], 5
cmp dword [eax + 8], 4
mov esi, eax
mov eax, dword [esi]
jne 0x42097d
add eax, 0x30
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004212f0
mov eax, dword [esi]
add eax, 0x20
push eax
lea eax, [esp + 0x58]
push eax
call fcn.004212f0
mov eax, dword [esi]
add eax, 0x10
push eax
lea eax, [esp + 0x88]
push eax
call fcn.004212f0
lea eax, [esp + 0x64]
jmp 0x4209c2
add eax, 0x40
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004212f0
mov eax, dword [esi]
add eax, 0x30
push eax
lea eax, [esp + 0x58]
push eax
call fcn.004212f0
mov eax, dword [esi]
add eax, 0x20
push eax
lea eax, [esp + 0x88]
push eax
call fcn.004212f0
mov eax, dword [esi]
add eax, 0x10
push eax
lea eax, [esp + 0x68]
push eax
call fcn.004212f0
lea eax, [esp + 0x3c]
push dword [esi]
push eax
call fcn.004212f0
push 8
pop eax
mov ecx, eax
cmp cx, word [esp + 0x74]
je 0x420a06
lea eax, [esp + 0x3c]
push eax
call edi
lea eax, [esp + 0x64]
push eax
call edi
lea eax, [esp + 0x84]
push eax
call edi
lea eax, [esp + 0x54]
push eax
call edi
lea eax, [esp + 0x74]
push eax
call edi
mov esi, 0x80020008
jmp 0x4208e9
mov ecx, eax
cmp cx, word [esp + 0x54]
jne 0x4209d6
cmp cx, word [esp + 0x84]
jne 0x4209d6
cmp ax, word [esp + 0x64]
jne 0x4209d6
cmp dword [esi + 8], 4
jbe 0x420a67
push 3
pop eax
cmp ax, word [esp + 0x3c]
jne 0x4209d6
cmp dword [esp + 0x44], 1
jge 0x420a67
lea eax, [esp + 0x3c]
push eax
call edi
lea eax, [esp + 0x64]
push eax
call edi
lea eax, [esp + 0x84]
push eax
call edi
lea eax, [esp + 0x54]
push eax
call edi
lea eax, [esp + 0x74]
push eax
call edi
mov esi, 0x80070057
jmp 0x4208e9
push dword [esp + 0x7c]
lea ecx, [esp + 0x1c]
call fcn.00401b81
mov byte [esp + 0x128], 6
mov eax, dword [esp + 0x18]
xor esi, esi
cmp dword [eax - 0xc], esi
jne 0x420a91
lea ecx, [eax - 0x10]
call fcn.00402595
jmp 0x420a37
push dword [esp + 0x5c]
lea ecx, [esp + 0x20]
call fcn.00401b81
mov byte [esp + 0x128], 7
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], esi
jne 0x420ac0
lea ecx, [eax - 0x10]
call fcn.00402595
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
jmp 0x420a8a
push dword [esp + 0x8c]
lea ecx, [esp + 0x24]
call fcn.00401b81
mov byte [esp + 0x128], 8
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], esi
jne 0x420af2
lea ecx, [eax - 0x10]
call fcn.00402595
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
jmp 0x420ab2
push dword [esp + 0x6c]
lea ecx, [esp + 0x54]
call fcn.00401b81
mov byte [esp + 0x128], 9
mov eax, dword [esp + 0x50]
cmp dword [eax - 0xc], esi
jne 0x420b21
lea ecx, [eax - 0x10]
call fcn.00402595
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
jmp 0x420ae4
cmp dword [ebx + 0x1a8], esi
jne 0x420b3c
lea esi, [ebx + 0x90]
call fcn.0042fcd0
mov dword [esp + 0x14], eax
test eax, eax
jne 0x420ba7
mov eax, dword [ebp + 0x1c]
cmp dword [eax + 8], 4
jbe 0x420b87
mov esi, dword [ebx + 0x144]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
cmp esi, ecx
jae 0x420b7c
lea eax, [ebx + 0x188]
mov edi, ecx
call fcn.0040b447
test eax, eax
lea eax, [ebx + 0x138]
jne 0x420b78
mov ecx, dword [esp + 0x14]
jmp 0x420b82
mov ecx, esi
jmp 0x420b82
lea eax, [ebx + 0x138]
call fcn.00431012
push dword [esp + 0x50]
lea eax, [ebx + 0x90]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push eax
call fcn.0042f79c
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x50]
add ecx, 0xfffffff0
call fcn.00402595
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.00402595
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.00402595
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00402595
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x3c]
push eax
call esi
lea eax, [esp + 0x64]
push eax
call esi
lea eax, [esp + 0x84]
push eax
call esi
lea eax, [esp + 0x54]
push eax
call esi
mov byte [esp + 0x128], 0
lea eax, [esp + 0x74]
jmp 0x421010
cmp dword [ebp + 0x20], 0
jne 0x420c30
mov eax, dword [ebp + 0x24]
lea esi, [esp + 0xa0]
mov dword [esp + 0xa0], eax
call fcn.0041ef52
mov esi, eax
jmp 0x4208e9
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4208e4
cmp dword [eax + 8], 1
jne 0x4208ff
push dword [eax]
lea ecx, [esp + 0xb8]
call fcn.0041b6e3
push 8
pop eax
mov byte [esp + 0x128], 0xa
cmp ax, word [esp + 0xb4]
je 0x420c74
lea eax, [esp + 0xb4]
jmp 0x4209f9
push dword [esp + 0xbc]
lea ecx, [esp + 0x3c]
call fcn.00401b81
mov byte [esp + 0x128], 0xb
mov eax, dword [esp + 0x38]
cmp dword [eax - 0xc], 0
jne 0x420caa
lea ecx, [eax - 0x10]
call fcn.00402595
lea eax, [esp + 0xb4]
jmp 0x420a5a
lea ecx, [ebx + 0x90]
push eax
push ecx
call fcn.0042fd27
cmp dword [ebp + 0xc], 0x7d1
mov esi, eax
jne 0x420d40
push 3
pop eax
mov word [esp + 0x24], ax
cmp byte [esi], 0
jne 0x420d3b
and dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x38]
add ecx, 0xfffffff0
call fcn.00402595
lea eax, [esp + 0xb4]
mov byte [esp + 0x128], 0
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push eax
call esi
xor eax, eax
cmp ax, word [esp + 0x24]
je 0x420d2b
lea eax, [esp + 0x24]
push eax
push dword [ebp + 0x20]
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
cmp dword [esp + 0x14], 0
je 0x420d2b
push dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
push dword [esp + 0x18]
push ebx
call fcn.0041eda2
and dword [esp + 0x14], 0
lea eax, [esp + 0x24]
push eax
call esi
mov eax, dword [esp + 0x14]
jmp 0x421028
mov eax, dword [esi + 0x18]
jmp 0x420d61
mov eax, dword [ebp + 0xc]
cmp eax, 0x7d2
jne 0x420d6c
push 3
pop eax
mov word [esp + 0x24], ax
cmp byte [esi], 0
je 0x420ccf
push esi
call fcn.0042f507
xor edx, edx
mov ecx, 0x3e8
div ecx
jmp 0x420d87
cmp eax, 0x7d9
jne 0x420d90
push 3
pop eax
mov word [esp + 0x24], ax
cmp byte [esi], 0
je 0x420ccf
mov eax, dword [esi + 0x44]
mov dword [esp + 0x2c], eax
jmp 0x420cd4
cmp eax, 0x7d3
jne 0x420e03
call fcn.0042f3c2
push eax
lea ecx, [esp + 0xa0]
call fcn.004212ca
mov edi, dword [esi + 4]
mov eax, dword [esp + 0x9c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec edi
je 0x420ddf
dec edi
lea esi, [esp + 0x24]
je 0x420dd8
dec edi
je 0x420dd1
push str.suspended
jmp 0x420df9
push 0x483ee4
jmp 0x420df9
push str.failed
jmp 0x420df9
push esi
call fcn.0042f507
lea esi, [esp + 0x24]
test eax, eax
jne 0x420df4
push str.starting
jmp 0x420df9
push str.downloading
call fcn.00408898
jmp 0x420cd4
cmp eax, 0x7da
jne 0x420cd4
push dword [esp + 0x38]
lea eax, [esp + 0xd8]
push eax
lea eax, [ebx + 0x90]
push eax
call fcn.0042fc31
mov byte [esp + 0x128], 0xc
push dword [ebx + 0x88]
and dword [esp + 0x9c], 0
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0xa0]
call fcn.00420661
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x420e75
mov esi, dword [esp + 0x98]
test esi, esi
je 0x420e69
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [ebp + 0x20]
push 9
pop ecx
mov word [eax], cx
mov dword [eax + 8], esi
lea esi, [esp + 0xd4]
call fcn.0042f46b
mov ecx, dword [esp + 0x38]
add ecx, 0xfffffff0
call fcn.00402595
lea eax, [esp + 0xb4]
push eax
call edi
mov esi, ebx
jmp 0x4208e9
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4208e4
cmp dword [eax + 8], 1
jne 0x4208ff
push dword [eax]
lea ecx, [esp + 0xc8]
call fcn.0041b6e3
push 8
pop eax
mov byte [esp + 0x128], 0xd
cmp ax, word [esp + 0xc4]
je 0x420ee2
lea eax, [esp + 0xc4]
jmp 0x4209f9
cmp dword [ebp + 0xc], 0x7d4
jne 0x420ef5
mov dword [esp + 0x14], 0x80004001
jmp 0x420f56
cmp dword [ebp + 0xc], 0x7d5
jne 0x420f56
push dword [esp + 0xcc]
lea ecx, [esp + 0x50]
call fcn.00401b81
push str.normal
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x130], 0xe
xor esi, esi
call fcn.00401be6
test eax, eax
jne 0x420f2e
inc esi
jmp 0x420f44
push str.aggressive
lea eax, [esp + 0x50]
push eax
call fcn.00401be6
test eax, eax
jne 0x420f44
push 2
pop esi
mov ecx, dword [esp + 0x4c]
add ecx, 0xfffffff0
mov dword [ebx + 0x138], esi
call fcn.00402595
mov byte [esp + 0x128], 0
lea eax, [esp + 0xc4]
jmp 0x42100a
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4208e4
cmp dword [eax + 8], 1
jne 0x4208ff
push dword [eax]
lea ecx, [esp + 0xa8]
call fcn.0041b6e3
push 9
pop eax
cmp ax, word [esp + 0xa4]
je 0x420fae
lea eax, [esp + 0xa4]
push eax
call edi
mov esi, 0x80020005
jmp 0x4208e9
cmp dword [ebp + 0xc], 0x7d6
jne 0x420fc7
lea eax, [esp + 0xa4]
push eax
lea eax, [ebx + 0x1d0]
jmp 0x420ff7
cmp dword [ebp + 0xc], 0x7d7
jne 0x420fe0
lea eax, [esp + 0xa4]
push eax
lea eax, [ebx + 0x1d4]
jmp 0x420ff7
cmp dword [ebp + 0xc], 0x7d8
jne 0x421003
lea eax, [esp + 0xa4]
push eax
lea eax, [ebx + 0x1d8]
push eax
call fcn.004206e8
pop ecx
pop ecx
mov dword [esp + 0x14], eax
lea eax, [esp + 0xa4]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push eax
call esi
jmp 0x420d0f
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, 0x80020003
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24