Function at 0x10087050
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1016a720
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10438fc0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov al, byte [ebp + 0xc]
mov esi, dword [ebp + 8]
mov byte [esi + 0xc], al
test al, al
je 0x100872c7
mov eax, dword [esi + 0x20]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x1008728b
mov ecx, dword [esi + 0x4c]
cmp dword [ecx + eax*4], ebx
jg 0x1008728b
mov dword [esp + 0x38], ebx
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x2c]
cmp eax, ebx
jne 0x100870bd
xor eax, eax
mov dword [esp + 0x24], eax
jmp 0x100870cd
mov edx, dword [eax]
mov dword [esp + 0x24], eax
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov byte [esp + 0x38], 1
lea edx, [esp + 0x20]
push edx
mov edx, dword [esi + 0x20]
mov dword [esp + 0x24], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
lea edi, [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.1000a180
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov dword [esp + 0x14], ebx
mov ebx, 0x101e9504
lea edi, [esp + 0x14]
call fcn.100368d0
mov byte [esp + 0x38], 3
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
xor edi, edi
mov dword [esp + 0x1c], edi
test eax, eax
je 0x1008715c
push ecx
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], esp
test eax, eax
je 0x1008714c
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea esi, [esp + 0x20]
call fcn.10063af0
mov edi, dword [esp + 0x1c]
mov esi, dword [ebp + 8]
mov byte [esp + 0x38], 4
mov eax, dword [ebx]
mov ecx, dword [eax + 0x28]
push edi
push ebx
call ecx
xor ebx, ebx
mov byte [esp + 0x38], 3
cmp edi, ebx
je 0x1008717d
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
mov eax, dword [esi + 0x70]
xor edi, edi
mov dword [esp + 0x1c], edi
cmp eax, ebx
je 0x100871ab
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [esp + 0x2c], esp
push eax
call edx
lea esi, [esp + 0x20]
call fcn.1008adc0
mov edi, dword [esp + 0x1c]
mov esi, dword [ebp + 8]
mov byte [esp + 0x38], 5
mov ecx, dword [esp + 0x14]
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
push ecx
push edi
call edx
mov byte [esp + 0x38], 3
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov eax, dword [esp + 0x14]
xor edi, edi
mov dword [esp + 0x1c], edi
cmp eax, ebx
je 0x10087201
push ecx
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], esp
cmp eax, ebx
je 0x100871f1
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x20]
call fcn.10063ba0
mov edi, dword [esp + 0x1c]
mov esi, dword [ebp + 8]
push edi
push 0x1010
push esi
mov byte [esp + 0x44], 6
call fcn.100891b0
mov byte [esp + 0x38], 3
cmp edi, ebx
je 0x10087223
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
push ebx
push esi
call fcn.10088ad0
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x10087243
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x1008725c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x10087275
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor ebx, ebx
xor edi, edi
cmp dword [esi + 0xa0], ebx
jle 0x100873e3
lea esp, [esp]
mov eax, dword [esi + 0x9c]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push ebx
call eax
cmp eax, ebx
jl 0x100873e5
inc edi
cmp edi, dword [esi + 0xa0]
jl 0x100872a0
jmp 0x100873e3
xor edi, edi
xor bl, bl
cmp dword [esi + 0xa0], edi
jle 0x100873db
jmp 0x100872e0
mov ecx, dword [esi + 0x9c]
mov ecx, dword [ecx + edi*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
test eax, eax
jns 0x1008730d
cmp eax, 0x80041202
jne 0x1008730d
mov ecx, dword [esi + 0x9c]
mov ecx, dword [ecx + edi*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x4c]
mov bl, 1
call eax
inc edi
cmp edi, dword [esi + 0xa0]
jl 0x100872e0
test bl, bl
je 0x100873db
mov dword [esp + 0x1c], 0
mov dword [esp + 0x38], 7
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax - 4]
mov ebx, dword [esi + 0x70]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
mov dword [esp + 0x28], edi
mov byte [esp + 0x38], 8
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1008735a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], 0
mov eax, dword [ebx]
mov edx, dword [eax + 0x18]
push edi
push ebx
call edx
xor ebx, ebx
cmp edi, ebx
je 0x1008737d
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x38], 9
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov ecx, dword [esp + 0x24]
push ecx
push esi
call fcn.10085ba0
mov byte [esp + 0x38], 7
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x100873bb
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x100873db
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], 0
push 0
push esi
call fcn.10088ad0
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8