Function at 0x10020850
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100507a6
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x10067068]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10020884
mov edi, dword [ebp + 8]
sub eax, edx
sar eax, 1
lea esi, [edi + 0x4c]
push eax
mov eax, ebx
mov dword [esp + 0x24], esi
call fcn.1000cf60
mov ebx, dword [edi + 0x110]
cmp ebx, dword [edi + 0x114]
je 0x100208eb
lea esi, [edi + 0x30]
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax]
push esi
call edx
test eax, eax
je 0x100208df
cmp eax, 1
jne 0x100208d2
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add ebx, 4
cmp ebx, dword [edi + 0x114]
jne 0x100208b6
jmp 0x100208eb
mov ebx, dword [ebx]
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push esi
mov ecx, ebx
call edx
mov esi, dword [ebp + 0x10]
cmp dword [edi + 0xfc], esi
je 0x1002091a
test esi, esi
je 0x10020902
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x10020914
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [edi + 0xfc], esi
mov esi, dword [ebp + 0x14]
cmp dword [edi + 0x100], esi
je 0x10020949
test esi, esi
je 0x10020931
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [edi + 0x100]
test eax, eax
je 0x10020943
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x100], esi
mov ebx, dword [ebp + 0x20]
cmp dword [edi + 0x104], ebx
je 0x10020978
test ebx, ebx
je 0x10020960
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push ebx
call ecx
mov eax, dword [edi + 0x104]
test eax, eax
je 0x10020972
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [edi + 0x104], ebx
push edi
call fcn.100205e0
xor esi, esi
cmp eax, esi
jne 0x10020a91
mov eax, 1
test byte [0x1006a340], al
jne 0x100209b9
or dword [0x1006a340], eax
mov dword [esp + 0x40], esi
call fcn.1001dc90
push 0x100511d0
call fcn.10048359
add esp, 4
mov dword [esp + 0x40], 0xffffffff
mov ecx, dword [edi + 0xe8]
push 0x1006a2a8
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [esp + 0x18]
lea eax, [esp + 0x14]
mov ecx, 0x1006a298
call fcn.1001e520
mov eax, dword [esp + 0x14]
cmp eax, dword [0x1006a29c]
je 0x100209ef
mov esi, dword [eax + 0x10]
push 0x1006a2a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x10020a03
add esi, 0x6c
jmp 0x10020a05
xor esi, esi
mov dword [esp + 0x1c], esi
test esi, esi
je 0x10020a15
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
push 0
push 0x10067758
push 0x10068324
push 0
push esi
mov dword [esp + 0x54], 1
call sub.MSVCR100.dll___RTDynamicCast
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x10020a78
mov edi, dword [ebp + 0xc]
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ebx + 0x4ac4]
mov dword [esp + 0x18], edx
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x10020a50
sub eax, dword [esp + 0x18]
push edi
sar eax, 1
mov edi, eax
mov eax, dword [ecx + 0x10]
call fcn.1000f850
test eax, eax
jne 0x10020a75
call fcn.1001b120
mov edi, dword [ebp + 8]
mov dword [esp + 0x40], 0xffffffff
test esi, esi
je 0x10020a8c
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov ebx, dword [ebp + 0x20]
xor esi, esi
mov eax, dword [edi + 0xfc]
cmp eax, esi
je 0x10020aa9
mov dword [edi + 0xfc], esi
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [edi + 0x104]
cmp eax, esi
je 0x10020ac1
mov dword [edi + 0x104], esi
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [edi + 0x100]
cmp eax, esi
je 0x10020ad9
mov dword [edi + 0x100], esi
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [edi + 0xa4], 0xffffffff
jne 0x10020c65
cmp byte [edi + 0xa0], 0
je 0x10020b0e
cmp byte [edi + 0xa8], 0
jne 0x10020b0e
cmp byte [edi + 0xa9], 0
jne 0x10020b17
cmp byte [edi + 0xe4], 0
je 0x10020c65
cmp byte [edi + 0xa9], 0
je 0x10020b5d
lea eax, [edi + 0xf0]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
cmp dword [edi + 0x44], 8
lea eax, [edi + 0x30]
jb 0x10020b32
mov eax, dword [eax]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push ebx
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0x14]
push ecx
push eax
call fcn.10023220
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
cmp byte [edi + 0xa8], 0
jne 0x10020b73
cmp byte [edi + 0xe4], 0
je 0x10020d1f
cmp dword [ebp + 0x10], esi
je 0x10020b86
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push ebx
push edx
push edi
call fcn.1001f3f0
mov dword [esp + 0x18], esi
mov dword [esp + 0x40], 2
mov dword [esp + 0x14], esi
mov esi, 8
mov byte [esp + 0x40], 3
cmp dword [edi + 0x44], esi
jb 0x10020baa
mov eax, dword [edi + 0x30]
jmp 0x10020bad
lea eax, [edi + 0x30]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push eax
call dword [sym.imp.urlmon.dll_CreateUri]
test eax, eax
jne 0x10020bd2
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x3c]
lea ecx, [esp + 0x18]
push ecx
push eax
call edx
mov edx, dword [esp + 0x18]
lea eax, [edi - 0x98]
lea ecx, [edi + 0xf4]
call fcn.10022d60
cmp dword [edi + 0x44], esi
jb 0x10020bf1
mov eax, dword [edi + 0x30]
jmp 0x10020bf4
lea eax, [edi + 0x30]
mov ecx, dword [edi + 0x2c]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
lea ebx, [edi + 0x2c]
push eax
mov eax, dword [ecx + 0xc]
push ebx
call eax
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x10]
lea edx, [esp + 0x1c]
push edx
push 0x10057990
push 0x10057990
push 0xc8
push ebx
call eax
mov esi, dword [ebp + 0x10]
call fcn.10020de0
mov byte [esp + 0x40], 2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10020c43
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp + 0x10]
cmp dword [edi + 0xfc], eax
je 0x10020c97
cmp eax, esi
je 0x10020c7c
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [edi + 0xfc]
cmp eax, esi
je 0x10020c8e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0x10]
mov dword [edi + 0xfc], eax
mov eax, dword [ebp + 0x14]
cmp dword [edi + 0x100], eax
je 0x10020cc9
cmp eax, esi
je 0x10020cae
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [edi + 0x100]
cmp eax, esi
je 0x10020cc0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x100], eax
cmp dword [edi + 0x104], ebx
je 0x10020cf5
cmp ebx, esi
je 0x10020cdd
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
push ebx
call edx
mov eax, dword [edi + 0x104]
cmp eax, esi
je 0x10020cef
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x104], ebx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push edi
mov dword [edi + 0x108], eax
mov dword [edi + 0x10c], ecx
call fcn.100205e0
sub eax, esi
je 0x10020db5
dec eax
je 0x10020d9b
dec eax
je 0x10020d4d
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
push ebx
push edx
mov edx, dword [ebp + 0xc]
push eax
push ecx
push edx
mov edx, dword [ebp + 0x14]
call fcn.10023220
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x14], 8
mov dword [esp + 0x24], 0x10000
mov dword [esp + 0x28], 0x1388
jb 0x10020d69
mov eax, dword [eax]
mov ecx, dword [edi + 0x5c]
add ecx, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x24]
push ecx
push eax
call edx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, 0x80004005
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, edi
call fcn.10020f00
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c