Function at 0x10054140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1007ee28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x10098a04]
push ebx
push ebp
push esi
push edi
mov ecx, 0x10098a04
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov edx, dword [0x10098a04]
xor ebp, ebp
mov ecx, 0x10098a04
mov dword [esp + 0x28], ebp
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push str.DownloadToolbar_
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 1
call fcn.10005e50
push ebp
mov bl, 2
push 0x208
mov byte [esp + 0x30], bl
call fcn.10001450
add esp, 8
cmp eax, ebp
je 0x100541c5
push 0x208
push eax
lea ecx, [esp + 0x1c]
call fcn.10004800
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.100090e0
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 3
call fcn.10004aa0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x28], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1005420d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x10]
push eax
push SysReAllocStringLen
call fcn.1004aeb0
mov esi, eax
add esp, 8
mov dword [esp + 0x1c], esi
mov eax, dword [esi + 0x10]
cmp eax, ebp
mov byte [esp + 0x28], 4
jle 0x1005427e
mov ebx, dword [esp + 0x30]
jbe 0x10054311
mov ecx, dword [esi + 0xc]
add ecx, ebp
mov eax, ecx
shr eax, 2
lea edi, [eax*4]
mov edx, esi
sub ecx, edi
mov edi, dword [edx + 8]
cmp edi, eax
ja 0x10054259
sub eax, edi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
lea eax, [eax + ecx*4]
mov eax, dword [eax]
push ebx
push eax
call fcn.10068d19
add esp, 8
test eax, eax
je 0x10054318
mov eax, dword [esi + 0x10]
inc ebp
cmp eax, ebp
jg 0x10054235
mov ecx, esi
call fcn.1000de20
push esi
call fcn.10069196
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100542b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100542d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100542fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
mov ecx, esi
call fcn.1002cf30
mov ecx, esi
call fcn.1000de20
push esi
call fcn.10069196
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1005434b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1005436e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10054394
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4