Function at 0x56be20
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f867b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [eax]
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov cx, word [eax + 8]
mov esi, dword [edi + 4]
mov edx, 1
cmp cx, 0x3ed
mov dword [esp + 0x10], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], edx
jne 0x56bfd8
mov ecx, dword [eax + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.005c3c94
push 0x7c
lea ecx, [esp + 0x14]
mov dword [esp + 0x94], ebx
call fcn.005c440d
cmp eax, 0xffffffff
lea edx, [esp + 0x24]
lea eax, [esp + 0x3c]
push edx
push eax
push ecx
mov ecx, esp
je 0x56bf08
lea edx, [esp + 0x1c]
mov dword [esp + 0x2c], esp
push edx
call fcn.005c3c94
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0xc]
push esi
push eax
push ecx
call fcn.0053f9a0
add esp, 0x18
cmp eax, ebx
mov dword [edi + 4], eax
jne 0x56bf1e
lea ecx, [esp + 0x10]
mov dword [edi + 4], esi
mov dword [esp + 0x90], 0xffffffff
call fcn.005c3f1f
fld qword [0x1ac1ac0]
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [esp + 0x1c]
mov dword [esp + 0x2c], esp
push edx
call fcn.005c3c94
call fcn.0053f880
add esp, 0xc
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
mov ebx, eax
jg 0x56bfa6
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
cmp esi, eax
jg 0x56bf99
mov ecx, dword [edi + 4]
lea eax, [esp + 0x2c]
push eax
push esi
push ebx
call fcn.004c6fc0
test eax, eax
je 0x56bf5d
mov eax, dword [esp + 0xc]
test eax, eax
je 0x56bf5d
mov dword [esp + 0xc], 0
jmp 0x56bf6c
fld qword [esp + 0x34]
fcomp qword [esp + 0x2c]
fnstsw ax
test ah, 1
jne 0x56bf7c
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x28]
inc esi
cmp esi, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
jle 0x56bf38
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
inc ebx
cmp ebx, ecx
jle 0x56bf34
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
mov dword [edi + 4], esi
mov dword [esp + 0x90], 0xffffffff
call fcn.005c3f1f
fld qword [esp + 0x34]
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp cx, 0x3ec
je 0x56c01d
push eax
lea eax, [esp + 0x40]
push eax
mov ecx, edi
call fcn.005680c0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x50], edx
call fcn.005c3f1f
fld qword [esp + 0x4c]
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [eax + 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 0x1c], ebx
mov eax, dword [eax + 8]
cmp eax, ebx
mov dword [esp + 0x20], eax
jle 0x56bfbd
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + 4]
mov esi, dword [ecx + ebx*4]
cmp word [esi + 8], 0x3ed
jne 0x56c177
mov edx, dword [esi + 0x18]
lea ecx, [esp + 0x14]
push edx
call fcn.005c3c94
push 0x7c
lea ecx, [esp + 0x18]
mov dword [esp + 0x94], 1
call fcn.005c440d
cmp eax, 0xffffffff
je 0x56c0b2
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x4c]
push eax
push ecx
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.005c3c94
mov esi, dword [esp + 0x24]
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0xc]
push esi
push eax
push ecx
call fcn.0053f9a0
add esp, 0x18
mov dword [edi + 4], eax
test eax, eax
je 0x56c234
jmp 0x56c0d5
lea edx, [esp + 0x3c]
lea eax, [esp + 0x4c]
push edx
push eax
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.005c3c94
call fcn.0053f880
add esp, 0xc
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
cmp ebx, eax
jg 0x56c153
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x40]
cmp esi, eax
jg 0x56c14a
mov ecx, dword [edi + 4]
lea eax, [esp + 0x2c]
push eax
push esi
push ebx
call fcn.004c6fc0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x56c10e
mov dword [esp + 0xc], 0
jmp 0x56c11d
fld qword [esp + 0x34]
fcomp qword [esp + 0x2c]
fnstsw ax
test ah, 1
jne 0x56c12d
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x40]
inc esi
cmp esi, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
jle 0x56c0ed
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x3c]
inc ebx
cmp ebx, ecx
jle 0x56c0e9
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
mov dword [edi + 4], eax
mov dword [esp + 0x90], 0xffffffff
call fcn.005c3f1f
mov ebx, dword [esp + 0x1c]
jmp 0x56c21e
mov eax, dword [esp + 0xc]
test eax, eax
je 0x56c1aa
lea ecx, [esp + 0x58]
push esi
push ecx
mov ecx, edi
call fcn.005680c0
mov edx, dword [eax]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x60]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
call fcn.005c3f1f
mov dword [esp + 0xc], 0
lea ecx, [esp + 0x78]
push esi
push ecx
mov ecx, edi
call fcn.005680c0
fld qword [eax]
fcomp qword [esp + 0x34]
mov dword [esp + 0x90], 2
fnstsw ax
test ah, 0x41
je 0x56c1ed
lea edx, [esp + 0x68]
push esi
push edx
mov ecx, edi
call fcn.005680c0
mov ecx, dword [esp + 0x10]
fld qword [eax]
or ecx, 1
fstp qword [esp + 0x34]
mov dword [esp + 0x10], ecx
test byte [esp + 0x10], 1
je 0x56c207
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x70]
and al, 0xfe
mov dword [esp + 0x10], eax
call fcn.005c3f1f
lea ecx, [esp + 0x80]
mov dword [esp + 0x90], 0xffffffff
call fcn.005c3f1f
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
mov dword [esp + 0x1c], ebx
jl 0x56c033
jmp 0x56bfbd
lea ecx, [esp + 0x14]
mov dword [edi + 4], esi
mov dword [esp + 0x90], 0xffffffff
call fcn.005c3f1f
mov ecx, dword [esp + 0x88]
pop edi
fld qword [0x1ac1ac0]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4