Function at 0x5b6c40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x65a9ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
mov ebx, dword [esp + 0x48]
xor edx, edx
push esi
cmp ebx, edx
push edi
mov esi, ecx
mov dword [esp + 0x2c], edx
jne 0x5b6c85
mov eax, dword [esp + 0x4c]
mov dword [eax], edx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 4]
cmp ecx, edx
jl 0x5b6ece
cmp ecx, dword [ebx + 0x34]
jge 0x5b6ece
mov edi, dword [ebx + 0x30]
push ebp
mov edi, dword [edi + ecx*4]
mov dword [esp + 0x10], edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x48], 1
mov dword [esp + 0x58], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 2
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
call fcn.00491310
lea ecx, [esp + 0x58]
call fcn.00491310
mov ebp, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
cmp ebp, eax
jg 0x5b6e46
jmp 0x5b6cf7
mov ebx, dword [esp + 0x54]
test ebp, ebp
jl 0x5b6e3a
cmp ebp, dword [ebx + 0x4c]
jge 0x5b6e3a
mov ecx, dword [ebx + 0x48]
mov ebx, dword [ecx + ebp*4]
test ebx, ebx
je 0x5b6e3a
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x34]
mov eax, dword [ecx]
cmp edx, eax
jg 0x5b6d46
jl 0x5b6e3a
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x38]
cmp edx, eax
jg 0x5b6d46
jl 0x5b6e3a
mov eax, dword [ecx + 8]
cmp ebp, eax
jle 0x5b6e3a
mov eax, dword [esi + 0xac]
mov ecx, dword [ebx + 0x10]
lea edi, [ebx + 0x10]
cmp ecx, eax
je 0x5b6df3
lea edx, [esp + 0x58]
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, esi
call fcn.004ddfb0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 3
call fcn.00491250
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 2
call fcn.00490f90
lea ecx, [esp + 0x58]
call fcn.00491310
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x5c]
fstp dword [esp + 0x18]
lea eax, [esp + 0x20]
push edi
push eax
mov ecx, esi
call fcn.004dcc50
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov ecx, esi
mov byte [esp + 0x54], 4
call fcn.004de0b0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 5
call fcn.00491250
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 4
call fcn.00490f90
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 2
call fcn.00490f90
mov eax, dword [edi]
mov dword [esi + 0xac], eax
mov ax, word [esi + 0xa4]
lea ecx, [esp + 0x24]
push ecx
push ebx
push edi
mov ecx, esi
mov dword [esp + 0x30], eax
call fcn.004dcc20
lea edx, [esp + 0x30]
push eax
push edx
mov ecx, esi
call fcn.004ddef0
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4c], 6
call fcn.00491250
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 2
call fcn.00490f90
mov edi, dword [esp + 0x2c]
mov eax, dword [edi + 0x14]
inc ebp
cmp ebp, eax
jle 0x5b6cf3
mov eax, dword [esp + 0x58]
pop ebp
test eax, eax
je 0x5b6e84
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x5b6e84
lea eax, [esp + 0x54]
lea ecx, [esp + 0x50]
push eax
push ecx
mov ecx, esi
call fcn.004ddfb0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 7
call fcn.00491250
lea ecx, [esp + 0x50]
mov byte [esp + 0x44], 2
call fcn.00490f90
mov esi, dword [esp + 0x4c]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00491060
lea ecx, [esp + 0x54]
mov dword [esp + 0x2c], 1
mov byte [esp + 0x44], 1
call fcn.00490f90
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 0
call fcn.00490f90
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov dword [eax], edx
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10