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

Disassembly:
sub esp, 0x44
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, eax
lea ecx, [ecx]
cmp dword [edi + 0x58], 3
jne 0x56ee05
mov esi, edi
call fcn.0056da70
test eax, eax
jl 0x56f1a7
mov esi, 4
cmp dword [edi + 0x58], esi
jne 0x56ee7d
mov eax, dword [edi + 0x48]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx + 0xe48]
mov dword [esp + 0x10], edx
nop
lea eax, [edi + 0x78]
test eax, eax
je 0x56ee2c
cmp dword [eax], 0
jne 0x56ee30
xor eax, eax
jmp 0x56ee3e
push 1
lea esi, [esp + 0x34]
call fcn.00439920
add esp, 4
cmp eax, 0xffffffff
je 0x56f000
test eax, eax
jle 0x56ee78
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
lea eax, [esp + 0x30]
push eax
lea eax, [edi + 0x250]
mov dword [esp + 0x1c], esi
call fcn.0056b280
add esp, 4
test eax, eax
je 0x56f00d
mov ebp, dword [esp + 0x20]
jmp 0x56ee20
mov esi, 4
mov ebx, 2
cmp dword [edi + 0x58], ebx
jl 0x56ef39
jmp 0x56ee90
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
push 0xffffffffffffffff
push ecx
call fcn.0056d640
add esp, 0xc
test edx, edx
jl 0x56f1a2
jg 0x56eeb3
test eax, eax
jb 0x56f1a2
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
lea eax, [edx*8]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fadd qword [edi + 0x68]
fstp qword [edi + 0x68]
cmp dword [edi + 0x58], esi
jne 0x56ef43
movzx ecx, byte [ebp + 0x11]
movzx edx, byte [ebp + 0x10]
movzx eax, byte [ebp + 0xf]
shl ecx, 8
or ecx, edx
movzx edx, byte [ebp + 0xe]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, edx
cmp dword [edi + 0x5c], ecx
je 0x56ef39
test byte [ebp + 5], bl
je 0x56ee90
lea eax, [edi + 0x1e0]
push eax
call fcn.0056bf20
lea ecx, [edi + 0x250]
add esp, 4
push ecx
call fcn.0056c360
add esp, 4
cmp dword [edi + 4], 0
mov dword [edi + 0x58], ebx
jne 0x56ef53
mov edx, dword [edi + 0x48]
push edx
call fcn.0056c770
mov esi, dword [edi + 0x4c]
add esp, 4
call fcn.0056c9f0
cmp dword [edi + 0x58], 4
je 0x56efef
cmp dword [edi + 0x58], 3
jge 0x56efef
cmp dword [edi + 4], 0
je 0x56efbe
movzx eax, byte [ebp + 0x11]
movzx ecx, byte [ebp + 0x10]
movzx edx, byte [ebp + 0xf]
mov esi, dword [edi + 0x34]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp + 0xe]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
xor ecx, ecx
test esi, esi
jle 0x56ef8c
mov edx, dword [edi + 0x40]
mov edi, edi
cmp dword [edx], eax
je 0x56ef8c
inc ecx
add edx, 4
cmp ecx, esi
jl 0x56ef80
cmp ecx, esi
je 0x56edf0
push eax
lea edx, [edi + 0x78]
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], ecx
call fcn.004398f0
add esp, 4
lea esi, [edi + 0x78]
lea eax, [esp + 0x20]
mov dword [edi + 0x58], 3
call fcn.00439580
jmp 0x56edf0
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x48]
push 0
push 0
push edx
push eax
push edi
lea eax, [esp + 0x34]
call fcn.0056dc30
add esp, 0x14
test eax, eax
jne 0x56f1a7
mov ecx, dword [edi + 0x1c8]
inc dword [edi + 0x60]
mov ebp, dword [esp + 0x20]
mov dword [edi + 0x5c], ecx
lea esi, [edi + 0x78]
lea eax, [esp + 0x20]
call fcn.00439580
jmp 0x56edf0
mov eax, 0xfffffffd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov ecx, dword [edi + 0x1f8]
cmp ecx, 0xffffffff
lea ebx, [edi + 0x1e0]
jle 0x56f038
mov eax, dword [ebx + 0x14]
cmp ecx, eax
jge 0x56f038
sub eax, ecx
test eax, eax
je 0x56f038
mov eax, 0xffffff7f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
lea edx, [edi + 0x250]
push edx
call fcn.0056b4a0
mov ecx, dword [edi + 0x1f8]
add esp, 4
cmp ecx, 0xffffffff
jle 0x56f062
mov eax, dword [edi + 0x1f4]
cmp ecx, eax
jge 0x56f062
sub eax, ecx
xor ebx, ebx
jmp 0x56f066
xor ebx, ebx
xor eax, eax
mov ecx, dword [esp + 0x10]
shl eax, cl
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov eax, dword [esp + 0x34]
lea edx, [eax*8]
mov dword [esp + 0x10], edx
fadd qword [edi + 0x70]
mov eax, esi
and eax, ebp
fstp qword [edi + 0x70]
fild dword [esp + 0x10]
fadd qword [edi + 0x68]
fstp qword [edi + 0x68]
cmp eax, 0xffffffff
je 0x56f195
cmp dword [esp + 0x3c], ebx
jne 0x56f195
mov edx, dword [edi + 4]
cmp edx, ebx
je 0x56f0ba
mov eax, dword [edi + 0x60]
mov dword [esp + 0x10], eax
jmp 0x56f0c0
mov dword [esp + 0x10], ebx
mov eax, ebx
cmp edx, ebx
je 0x56f0d9
cmp eax, ebx
jle 0x56f0d9
mov edx, dword [edi + 0x44]
shl eax, 4
sub esi, dword [eax + edx]
sbb ebp, dword [eax + edx + 4]
mov dword [esp + 0x18], esi
cmp ebp, ebx
jg 0x56f0eb
jl 0x56f0e5
cmp dword [esp + 0x18], ebx
jae 0x56f0eb
mov dword [esp + 0x18], ebx
xor ebp, ebp
mov edx, dword [edi + 0x1f8]
cmp edx, 0xffffffff
jle 0x56f104
mov eax, dword [edi + 0x1f4]
cmp edx, eax
jge 0x56f104
sub eax, edx
jmp 0x56f106
xor eax, eax
shl eax, cl
mov ecx, dword [esp + 0x10]
xor esi, esi
mov dword [esp + 0x20], ebx
cdq
sub dword [esp + 0x18], eax
mov dword [esp + 0x24], ebx
sbb ebp, edx
xor eax, eax
cmp ecx, 2
mov dword [esp + 0x1c], ebp
jl 0x56f166
mov eax, dword [edi + 0x44]
add ecx, 0xfffffffe
shr ecx, 1
add eax, 0x18
inc ecx
lea edx, [ecx + ecx]
mov dword [esp + 0x14], edx
mov edx, dword [eax - 0x10]
add dword [esp + 0x20], edx
mov edx, dword [eax - 0xc]
adc dword [esp + 0x24], edx
mov edx, dword [eax]
add esi, edx
mov edx, dword [eax + 4]
adc ebx, edx
add eax, 0x20
sub ecx, 1
jne 0x56f13b
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jge 0x56f181
mov ecx, dword [edi + 0x44]
shl eax, 4
mov ecx, dword [eax + ecx + 8]
add dword [esp + 0x18], ecx
mov ecx, dword [edi + 0x44]
mov edx, dword [eax + ecx + 0xc]
adc ebp, edx
add esi, dword [esp + 0x20]
adc ebx, dword [esp + 0x24]
add esi, dword [esp + 0x18]
adc ebx, ebp
mov dword [edi + 0x50], esi
mov dword [edi + 0x54], ebx
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret