Function at 0x859f60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x9481a7
mov eax, dword fs:[0]
push eax
sub esp, 0x858
mov eax, dword [0x99986c]
xor eax, esp
mov dword [esp + 0x854], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x99986c]
xor eax, esp
push eax
lea eax, [esp + 0x86c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x87c]
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], eax
call fcn.008f06a0
xor esi, esi
mov dword [esp + 0x874], esi
mov ecx, dword [0x99b0a4]
mov ebp, ecx
mov dword [esp + 0x30], ebp
call fcn.008efb60
mov byte [esp + 0x874], 1
mov ecx, dword [0x99b088]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
sar eax, 2
cmp eax, esi
jbe 0x85a047
mov edi, ecx
cmp esi, eax
jb 0x859ff5
call fcn.0091bc53
mov ecx, dword [0x99b088]
mov edx, dword [edi + 0xc]
mov eax, dword [edx + esi*4]
mov edx, dword [eax + 0x36c]
test dl, 4
jne 0x85a039
mov ebx, dword [eax + 0x374]
shr ebx, 1
test bl, 1
jne 0x85a039
test edx, 0x100000
jne 0x85a039
mov eax, dword [eax + 0x1f4]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
call fcn.008bcf80
mov ecx, dword [0x99b088]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
inc esi
sar eax, 2
cmp esi, eax
jb 0x859fe4
xor esi, esi
cmp ebp, esi
je 0x85a05a
mov ecx, ebp
call fcn.008efb70
mov dword [esp + 0x30], esi
mov ebp, esi
mov edx, dword [esp + 0x28]
sub edx, dword [esp + 0x24]
sar edx, 2
test edx, edx
jbe 0x85a239
mov ebx, dword [0x982298]
mov ebp, 0xffff
jmp 0x85a080
mov dword [esp + 0x14], 0
mov byte [esp + 0x874], 2
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x24]
sar eax, 2
cmp esi, eax
jb 0x85a0a4
call fcn.0091bc53
mov edx, dword [esp + 0x24]
mov eax, dword [edx + esi*4]
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.00851c80
mov edi, dword [esp + 0x20]
add esp, 0xc
test al, al
je 0x85a206
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x24]
sar ecx, 2
cmp esi, ecx
jb 0x85a0db
call fcn.0091bc53
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + esi*4]
push 0x204
lea edx, [esp + 0x464]
push edx
push ecx
call fcn.00852150
add esp, 0xc
test eax, eax
je 0x85a206
mov edx, dword [esp + 0x28]
sub edx, dword [esp + 0x24]
sar edx, 2
cmp esi, edx
jb 0x85a114
call fcn.0091bc53
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + esi*4]
push 0x204
lea eax, [esp + 0x464]
push eax
push edx
call dword [0x98222c]
test eax, eax
jne 0x85a206
push 0xffffffffffffffff
lea eax, [esp + 0x464]
push eax
lea ecx, [esp + 0x260]
push 0x104
push ecx
call fcn.0091c363
add esp, 0x10
lea edx, [esp + 0x460]
push edx
call fcn.009117d0
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x60]
push 0x100
push eax
call fcn.0091c363
add esp, 0x10
mov dword [esp + 0x38], 0x428
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x3c], 1
call ebx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x28]
mov edx, eax
sub edx, ecx
sar edx, 2
cmp esi, edx
jb 0x85a1b6
call fcn.0091bc53
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + esi*4]
mov dword [esp + 0x4c], edx
mov edx, eax
sub edx, ecx
sar edx, 2
cmp esi, edx
jb 0x85a1d5
call fcn.0091bc53
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [edi + 0x2c4]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x50], edx
cmp esi, eax
jb 0x85a1f1
call fcn.0091bc53
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + esi*4]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x58], eax
call fcn.00859db0
mov byte [esp + 0x874], 1
test edi, edi
je 0x85a221
mov ecx, edi
call fcn.008563b0
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x28]
sub edx, dword [esp + 0x24]
inc esi
sar edx, 2
cmp esi, edx
jb 0x85a080
mov ebp, dword [esp + 0x30]
mov byte [esp + 0x874], 0
xor esi, esi
cmp ebp, esi
je 0x85a24e
mov ecx, ebp
call fcn.008efb70
mov dword [esp + 0x874], 3
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x85a26a
push eax
call fcn.0084dd20
add esp, 4
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x874], 0xffffffff
mov eax, dword [esp + 0x18]
push eax
call fcn.0084dd20
add esp, 4
mov ecx, dword [esp + 0x86c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x854]
xor ecx, esp
call fcn.0091b0aa
add esp, 0x864
ret