Function at 0x56d6f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x58]
cmp eax, 2
jl 0x56da58
cmp dword [edi + 4], 0
jne 0x56d720
mov eax, 0xffffff76
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
test esi, esi
jl 0x56da58
mov ebx, dword [ebp + 0xc]
jg 0x56d738
test ebx, ebx
jb 0x56da58
cmp esi, dword [edi + 0x14]
jg 0x56da58
jl 0x56d74c
cmp ebx, dword [edi + 0x10]
ja 0x56da58
cmp eax, 3
jl 0x56d77c
mov eax, dword [edi + 0x60]
mov ecx, dword [edi + 0x38]
cmp esi, dword [ecx + eax*8 + 4]
lea eax, [ecx + eax*8]
jl 0x56d772
jg 0x56d766
cmp ebx, dword [eax]
jb 0x56d772
cmp esi, dword [eax + 0xc]
jl 0x56d77c
jg 0x56d772
cmp ebx, dword [eax + 8]
jb 0x56d77c
mov esi, edi
call fcn.0056d4e0
mov esi, dword [ebp + 0x10]
or eax, 0xffffffff
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov eax, dword [edi + 0x5c]
lea edx, [edi + 0x78]
push eax
call fcn.004398f0
add esp, 4
lea eax, [edi + 0x1e0]
call fcn.0056bec0
push esi
push ebx
mov esi, edi
call fcn.0056d560
add esp, 8
test eax, eax
je 0x56d7d4
or eax, 0xffffffff
lea esi, [esp + 0x58]
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
call fcn.00439220
mov esi, edi
call fcn.0056d4e0
mov eax, 0xffffff77
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x5c]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
push ecx
lea eax, [esp + 0x5c]
call fcn.004391a0
add esp, 4
lea eax, [esp + 0x58]
call fcn.00439890
mov ebx, 3
cmp dword [edi + 0x58], ebx
jl 0x56d8b2
cmp dword [esp + 0x58], 0
je 0x56d8b2
push 1
lea esi, [esp + 0x3c]
lea eax, [esp + 0x5c]
call fcn.00439920
add esp, 4
test eax, eax
jle 0x56d8b2
mov edx, dword [edi + 0x60]
mov eax, dword [edi + 0x48]
shl edx, 5
add eax, edx
cmp dword [eax + 0x1c], 0
je 0x56d8a8
mov edx, esi
call fcn.0056b110
mov ebx, eax
test ebx, ebx
jge 0x56d85e
xor esi, esi
lea eax, [edi + 0x78]
call fcn.00439a30
xor ebx, ebx
jmp 0x56d88a
cmp dword [esp + 0x1c], 0
je 0x56d878
cmp dword [esp + 0x10], 0
jne 0x56d878
xor esi, esi
lea eax, [edi + 0x78]
call fcn.00439a30
jmp 0x56d88a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x56d88a
lea ecx, [ebx + eax]
sar ecx, 2
add dword [esp + 0x18], ecx
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, esi
and edx, ecx
cmp edx, 0xffffffff
jne 0x56d9d0
mov dword [esp + 0x14], ebx
jmp 0x56d7ff
xor esi, esi
lea eax, [edi + 0x78]
call fcn.00439a30
cmp dword [esp + 0x14], 0
jne 0x56da35
push 0xffffffffffffffff
lea eax, [esp + 0x2c]
push 0xffffffffffffffff
push eax
call fcn.0056d640
add esp, 0xc
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
test edx, edx
jl 0x56da25
jg 0x56d8e8
test eax, eax
jb 0x56da25
cmp dword [edi + 0x58], ebx
jl 0x56d91e
lea eax, [esp + 0x28]
call fcn.00439170
cmp dword [edi + 0x5c], eax
je 0x56d915
mov ecx, dword [esp + 0x28]
test byte [ecx + 5], 2
je 0x56d915
mov esi, edi
call fcn.0056d4e0
lea esi, [esp + 0x58]
call fcn.00439220
cmp dword [edi + 0x58], ebx
jge 0x56d9a3
lea eax, [esp + 0x28]
call fcn.00439170
mov ecx, dword [edi + 0x34]
xor esi, esi
mov ebx, eax
test ecx, ecx
jle 0x56d941
mov eax, dword [edi + 0x40]
cmp dword [eax], ebx
je 0x56d941
inc esi
add eax, 4
cmp esi, ecx
jl 0x56d935
cmp esi, ecx
je 0x56d7ff
push ebx
lea edx, [edi + 0x78]
mov dword [edi + 0x60], esi
mov dword [edi + 0x5c], ebx
call fcn.004398f0
add esp, 4
cmp dword [esp + 0x58], 0
je 0x56d972
lea eax, [esp + 0x58]
call fcn.00439890
mov dword [esp + 0x1a8], ebx
mov eax, dword [edi + 0x3c]
mov edx, dword [esp + 0x24]
mov dword [edi + 0x58], 3
cmp edx, dword [eax + esi*8 + 4]
jg 0x56d99b
jl 0x56d991
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + esi*8]
ja 0x56d99b
mov dword [esp + 0x10], 1
jmp 0x56d9a3
mov dword [esp + 0x10], 0
lea eax, [esp + 0x28]
lea esi, [edi + 0x78]
call fcn.00439580
lea eax, [esp + 0x28]
lea esi, [esp + 0x58]
call fcn.00439580
mov edx, dword [esp + 0x28]
movzx eax, byte [edx + 5]
and eax, 4
mov dword [esp + 0x1c], eax
jmp 0x56d7ff
mov ebx, dword [edi + 0x60]
mov edx, dword [edi + 0x44]
mov eax, ebx
shl eax, 4
sub esi, dword [eax + edx]
sbb ecx, dword [eax + edx + 4]
test ecx, ecx
jg 0x56d9f0
jl 0x56d9ec
test esi, esi
jae 0x56d9f0
xor esi, esi
xor ecx, ecx
test ebx, ebx
jle 0x56da08
lea eax, [edx + 8]
mov edx, dword [eax]
add esi, edx
mov edx, dword [eax + 4]
adc ecx, edx
add eax, 0x10
sub ebx, 1
jne 0x56d9f7
mov eax, dword [esp + 0x18]
cdq
sub esi, eax
sbb ecx, edx
xor eax, eax
cmp ecx, eax
mov dword [edi + 0x50], esi
mov dword [edi + 0x54], ecx
jg 0x56da3e
jl 0x56da38
cmp esi, eax
jae 0x56da3e
jmp 0x56da38
push 0xffffffffffffffff
push edi
call fcn.0056d230
add esp, 8
mov dword [edi + 0x54], edx
jmp 0x56da3b
or eax, 0xffffffff
mov dword [edi + 0x54], eax
mov dword [edi + 0x50], eax
lea esi, [esp + 0x58]
call fcn.00439220
fldz
fst qword [edi + 0x68]
xor eax, eax
fstp qword [edi + 0x70]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffffff7d
pop ebx
mov esp, ebp
pop ebp
ret