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

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0x58
push 0xffffffffffffffff
push 0x645e58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
mov ebx, dword [ebp + 0x60]
push esi
push edi
mov dword [ebp + 0x54], ecx
mov dword [ebx], 0
mov dword [ebx + 4], 0
cmp byte [ecx + 0x148], 0
je 0x5d4dcc
cmp byte [ecx + 0x14a], 0
jne 0x5d4dcc
cmp dword [ecx + 0x14c], 0
je 0x5d4d8d
xor edi, edi
cmp dword [ecx + 0x78], edi
jl 0x5d4d8d
mov ebx, dword [ebp + 0x64]
xor esi, esi
lea ecx, [ecx]
mov ecx, dword [ecx + 0x14c]
push ebx
add ecx, esi
call fcn.005d47a0
mov ecx, dword [ebp + 0x54]
inc edi
add esi, 0x328
cmp edi, dword [ecx + 0x78]
jle 0x5d4d70
mov ebx, dword [ecx + 0x114]
test ebx, ebx
je 0x5d4dc9
cmp dword [ebx + 0x78], 0
je 0x5d4dc2
xor edi, edi
cmp dword [ecx + 0x78], edi
jl 0x5d4dc2
xor esi, esi
mov ecx, dword [ebx + 0x78]
push dword [ebp + 0x64]
add ecx, esi
call fcn.005d47a0
mov ecx, dword [ebp + 0x54]
inc edi
add esi, 0x328
cmp edi, dword [ecx + 0x78]
jle 0x5d4da6
mov ebx, dword [ebx + 0x18]
test ebx, ebx
jne 0x5d4d97
mov ebx, dword [ebp + 0x60]
mov edx, dword [ebp + 0x64]
test edx, edx
jne 0x5d4eac
cmp byte [ecx + 0xe9], dl
je 0x5d4eac
cmp byte [ecx + 0x15f], dl
jne 0x5d4eac
mov ecx, dword [ecx + 0xc]
push edx
push 0xffffffffffffffff
push edx
call fcn.005bb6b0
add eax, 2
cdq
mov esi, eax
mov edi, edx
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov ebx, dword [ebp + 0x54]
cmp byte [ebx + 0x15e], 0
jne 0x5d4e23
mov ecx, ebx
call fcn.005ce550
mov edi, dword [ebp + 0x60]
mov esi, dword [edi]
mov edi, dword [edi + 4]
mov ecx, dword [ebx + 0x2c]
mov ebx, dword [ebp + 0x60]
test ecx, ecx
je 0x5d4e96
lea ecx, [ecx]
mov edx, dword [ecx + 8]
xor esi, esi
mov byte [ecx], 1
test edx, edx
jle 0x5d4e43
cmp byte [ecx + 1], 0
je 0x5d4e43
dec edx
cmp edx, 0xffff
jle 0x5d4e7b
cmp edx, 0xfff9
jle 0x5d4e74
cmp byte [ecx + 1], 0
mov edx, 0xfff9
mov dword [ecx + 8], 0xfff9
je 0x5d4e7b
mov eax, dword [ecx + 0xc]
mov byte [eax + 0xfff9], 0
inc dword [ecx + 8]
jmp 0x5d4e7b
mov esi, 0xfff9
sub esi, edx
lea eax, [esi + 6]
add eax, edx
cdq
mov esi, eax
mov edi, edx
add esi, dword [ebx]
mov dword [ebx], esi
adc edi, dword [ebx + 4]
mov dword [ebx + 4], edi
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x5d4e30
mov ecx, dword [ebp + 0x54]
mov eax, dword [ecx + 0x170]
cdq
add eax, esi
mov dword [ebx], eax
adc edx, edi
mov dword [ebx + 4], edx
mov edx, dword [ebp + 0x64]
mov eax, dword [ebx]
mov edi, dword [ebx + 4]
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x38], edi
test edx, edx
je 0x5d4ec5
cmp byte [ebp + 0x70], 0
je 0x5d4f62
mov esi, dword [ecx + 0x114]
test esi, esi
je 0x5d4f62
xor edi, edi
xor ebx, ebx
test edx, edx
jne 0x5d4ef8
push dword [esi + 0xf4]
mov ecx, dword [ecx + 0xc]
push dword [esi + 4]
push edx
call fcn.005bb6b0
add eax, 0xe
cdq
mov ebx, edx
mov edi, eax
mov edx, dword [ebp + 0x64]
cmp byte [ebp + 0x70], 0
je 0x5d4f39
mov eax, dword [esi + 0x84]
lea ecx, [edx + 1]
cmp eax, ecx
jle 0x5d4f39
push dword [esi + 0x94]
sub eax, edx
xor ecx, ecx
push dword [esi + 0x90]
dec eax
cmp byte [esi + 0xe1], cl
setne cl
lea ecx, [ecx*2 + 1]
imul ecx
push edx
push eax
call fcn.004b2d70
add edi, eax
adc ebx, edx
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x54]
mov edx, dword [ebp + 0x64]
add dword [eax], edi
adc dword [eax + 4], ebx
mov eax, dword [ebp + 0x4c]
mov esi, dword [esi + 0x18]
add eax, edi
mov edi, dword [ebp + 0x38]
adc edi, ebx
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x38], edi
test esi, esi
jne 0x5d4ed3
cmp edi, dword [ebp + 0x78]
jl 0x5d4f76
jg 0x5d54e8
cmp eax, dword [ebp + 0x74]
ja 0x5d54e8
mov ecx, dword [ecx + 0x78]
mov ebx, 0x20
mov edx, dword [ebp + 0x54]
fldz
fld1
imul esi, ecx, 0xa00
add esi, dword [edx + 0x11c]
mov dword [ebp + 0x3c], esi
mov dword [ebp], 0
test ecx, ecx
jle 0x5d54cd
mov eax, 0x328
mov dword [ebp + 0x14], eax
mov ecx, dword [esi + 0x30]
mov dword [ebp + 0x18], ecx
test ecx, ecx
je 0x5d54b0
mov edx, dword [ebp + 0x3c]
mov edi, dword [edx + 0x28]
mov eax, dword [edx + 0x38]
mov esi, dword [edx + 0x2c]
mov ecx, dword [edx + 0x3c]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
cmp edi, eax
jne 0x5d4fe0
cmp esi, ecx
jne 0x5d4fe0
mov cl, 1
jmp 0x5d4fe2
xor cl, cl
fld qword [edx + 0x40]
fcom st(2)
mov byte [ebp + 0x53], cl
fnstsw ax
fstp st(2)
test ah, 5
jp 0x5d508d
fstp st(1)
test cl, cl
je 0x5d5008
fst qword [edx + 0x48]
fst qword [edx + 0x40]
jmp 0x5d508f
mov ecx, dword [edx + 0x20]
mov eax, dword [edx + 0x24]
mov edx, dword [edx + 0x10]
sub edx, ecx
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 0x3c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
mov ecx, dword [ecx + 0x14]
sbb ecx, eax
mov dword [ebp - 0x24], ecx
js 0x5d5062
jg 0x5d502f
test edx, edx
je 0x5d5062
mov eax, dword [ebp + 0x3c]
sub edi, edx
mov dword [ebp - 0x38], edi
sbb esi, ecx
mov dword [ebp - 0x34], esi
fild qword [eax + 0x18]
fstp qword [ebp + 0x30]
fld qword [ebp + 0x30]
fild qword [ebp - 0x28]
fstp qword [ebp + 0x30]
fmul qword [ebp + 0x30]
fild qword [ebp - 0x30]
fstp qword [ebp + 0x30]
fdiv qword [ebp + 0x30]
fild qword [ebp - 0x38]
fstp qword [ebp + 0x30]
fadd qword [ebp + 0x30]
jmp 0x5d5065
fild qword [ebp - 0x40]
fild qword [ebp - 0x48]
mov edx, dword [ebp + 0x3c]
fstp qword [ebp + 0x30]
fdivr qword [ebp + 0x30]
fst qword [edx + 0x40]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x5d5084
fstp st(0)
fst qword [edx + 0x40]
fld st(0)
fdiv st(1), st(0)
fxch st(1)
fstp qword [edx + 0x48]
jmp 0x5d508f
fstp st(0)
mov esi, dword [ebp + 0x74]
sub esi, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x78]
sbb eax, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x7c]
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x20], eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], eax
test ecx, ecx
je 0x5d50b5
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
jmp 0x5d50b9
xor eax, eax
xor ecx, ecx
cmp byte [ebp + 0x53], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp + 0x48], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp + 0x40], eax
jne 0x5d5115
fild qword [ebp - 0x50]
fstp qword [ebp + 0x30]
fld qword [ebp + 0x30]
fmul st(1)
call fcn.004b25b0
fild qword [ebp - 0x1c]
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], edx
fstp qword [ebp + 0x30]
fmul qword [ebp + 0x30]
call fcn.004b25b0
mov edi, eax
mov eax, edx
sub edi, 1
mov dword [ebp + 0x40], edi
sbb eax, 0
mov dword [ebp + 0x48], eax
test eax, eax
jg 0x5d511d
jl 0x5d5109
test edi, edi
jae 0x5d511d
xor edi, edi
xor eax, eax
mov dword [ebp + 0x40], edi
mov dword [ebp + 0x48], eax
jmp 0x5d511d
mov edi, dword [ebp + 0x40]
fstp st(0)
mov eax, dword [ebp + 0x48]
mov esi, dword [ebp + 0x18]
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x20], edi
mov dword [ebp + 0x34], eax
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x28], edx
mov dword [ebp + 0x2c], ecx
cmp dword [esi + 0x10], 0
je 0x5d5172
push 0x25
push str.E_codestream.cpp_
lea ecx, [ebp - 0x6c]
call fcn.005b0a70
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x6c]
push 0x6b02f0
mov dword [ebp - 4], 0
call dword [eax + 8]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 0xffffffff
call fcn.005b0cb0
mov edx, dword [ebp + 0x28]
mov eax, dword [esi]
mov ecx, dword [ebp + 0x64]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
cmp ecx, dword [eax + 0x84]
jge 0x5d539c
cmp dword [ebp + 0x7c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 0
je 0x5d5208
mov eax, dword [ebp + 0x68]
push 0x100000
push 0
push 1
push 0
inc eax
push eax
push ecx
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.005fd650
mov ecx, dword [ebp + 0x20]
add edi, eax
mov eax, dword [ebp + 0x1c]
adc edx, dword [ebp + 0x48]
sub eax, dword [ebp + 0x28]
mov dword [ebp + 0x48], edx
sbb ecx, dword [ebp + 0x2c]
cmp edx, ecx
jl 0x5d51e0
jg 0x5d51d9
cmp edi, eax
jbe 0x5d51e0
mov edi, eax
mov dword [ebp + 0x48], ecx
mov edx, ecx
push 1
push edx
push edi
push 1
push 1
push dword [ebp + 0x68]
lea eax, [ebp - 0x14]
mov ecx, esi
push dword [ebp + 0x64]
push eax
call fcn.005fd650
sub edi, eax
mov ecx, edx
mov dword [ebp + 8], ecx
sbb dword [ebp + 0x48], ecx
mov dword [ebp + 0x40], edi
jmp 0x5d5231
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
sub ecx, edx
sbb eax, dword [ebp + 0x2c]
push eax
push ecx
push dword [ebp + 0x70]
lea eax, [ebp - 0x14]
mov ecx, esi
push dword [ebp + 0x6c]
push dword [ebp + 0x68]
push dword [ebp + 0x64]
push eax
call fcn.005fd650
mov ecx, edx
mov dword [ebp + 8], edx
mov edx, dword [ebp + 0x28]
add edx, eax
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0x2c]
adc eax, ecx
mov dword [ebp + 0x28], edx
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp + 0x10]
adc ecx, dword [ebp - 0x10]
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0x54]
mov dword [ebp + 0x2c], eax
cmp byte [ecx + 0x148], 0
je 0x5d5370
cmp byte [ecx + 0x14a], 0
jne 0x5d5370
xor eax, eax
mov dword [ebp + 0x44], eax
test eax, eax
je 0x5d5284
mov edi, dword [ecx + 0x14c]
jmp 0x5d5292
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x78]
mov eax, dword [ebp + 0x44]
test edi, edi
je 0x5d535a
cmp dword [edi + 8], 0
jl 0x5d52f7
cmp dword [edi + 4], 0
je 0x5d52f7
xor esi, esi
test ebx, ebx
js 0x5d52f7
lea eax, [edi + 0x118]
mov edx, dword [eax - 0x104]
mov ecx, dword [eax - 0x108]
test edx, edx
jl 0x5d52f4
jg 0x5d52c8
test ecx, ecx
je 0x5d52f4
mov ecx, dword [ebp + 0x24]
add dword [eax], ecx
mov ecx, dword [ebp + 8]
adc dword [eax + 4], ecx
mov ecx, dword [eax - 0x108]
cmp dword [eax + 4], edx
jg 0x5d5381
jl 0x5d52ec
cmp dword [eax], ecx
ja 0x5d5381
inc esi
add eax, 8
cmp esi, ebx
jle 0x5d52b2
mov ecx, dword [ebp + 0x54]
mov eax, dword [ebp + 0x14]
cmp dword [eax + edi + 8], 0
jl 0x5d5357
cmp dword [eax + edi + 4], 0
je 0x5d5357
xor esi, esi
test ebx, ebx
js 0x5d5357
add eax, 0x118
add eax, edi
mov edi, dword [ebp + 0x24]
jmp 0x5d5320
mov edx, dword [eax - 0x104]
mov ecx, dword [eax - 0x108]
test edx, edx
jl 0x5d5354
jg 0x5d5336
test ecx, ecx
je 0x5d5354
add dword [eax], edi
mov edi, dword [ebp + 8]
adc dword [eax + 4], edi
mov edi, dword [ebp + 0x24]
cmp dword [eax + 4], edx
jg 0x5d5390
jl 0x5d534c
cmp dword [eax], ecx
ja 0x5d5390
inc esi
add eax, 8
cmp esi, ebx
jle 0x5d5320
mov ecx, dword [ebp + 0x54]
mov eax, dword [ebp + 0x44]
mov esi, dword [ebp + 0x18]
inc eax
mov dword [ebp + 0x44], eax
cmp eax, 2
jl 0x5d5278
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x2c]
cmp eax, dword [ebp + 0x20]
jg 0x5d53b0
jl 0x5d537c
cmp edx, dword [ebp + 0x1c]
ja 0x5d53b0
mov edi, dword [ebp + 0x40]
jmp 0x5d539f
mov ecx, dword [ebp + 0x54]
mov byte [ecx + 0x149], 1
jmp 0x5d52f7
mov ecx, dword [ebp + 0x54]
mov byte [ecx + 0x149], 1
jmp 0x5d5357
mov eax, dword [ebp + 0x2c]
mov esi, dword [esi + 0x2c]
mov edx, dword [ebp + 0x28]
mov dword [ebp + 0x18], esi
test esi, esi
jne 0x5d5136
cmp byte [ebp + 0x53], 0
mov esi, dword [ebp + 0x3c]
je 0x5d53f1
mov edx, dword [ebp + 0x60]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x7c]
add dword [edx], ecx
mov ecx, dword [ebp + 0x10]
adc dword [edx + 4], ecx
mov ecx, dword [ebp + 0x4c]
add ecx, dword [ebp + 0x28]
mov dword [ebp + 0x4c], ecx
adc dword [ebp + 0x38], eax
test edi, edi
je 0x5d5495
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x48]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov ecx, dword [ebp + 0x4c]
jmp 0x5d5495
fild qword [ebp + 0xc]
fstp qword [ebp + 4]
fld qword [ebp + 4]
fmul qword [esi + 0x48]
call fcn.004b25b0
mov ecx, dword [ebp + 0x60]
add eax, 1
adc edx, 0
add dword [ecx], eax
adc dword [ecx + 4], edx
fld qword [esi + 0x48]
fild qword [ebp + 0x28]
fstp qword [ebp + 4]
fld qword [ebp + 4]
fmul st(1)
call fcn.004b25b0
mov ecx, dword [ebp + 0x4c]
add eax, 1
mov edi, dword [ebp + 0x7c]
adc edx, 0
add ecx, eax
mov dword [ebp + 0x4c], ecx
adc dword [ebp + 0x38], edx
test edi, edi
je 0x5d5493
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x34]
sbb eax, dword [ebp + 0x48]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], eax
fild qword [ebp - 0x58]
fstp qword [ebp + 0x30]
fmul qword [ebp + 0x30]
call fcn.004b25b0
or ecx, 0xffffffff
sub ecx, eax
mov eax, 0xffffffff
sbb eax, edx
add dword [edi], ecx
adc dword [edi + 4], eax
cmp dword [edi + 4], 0
jg 0x5d53e9
jl 0x5d5481
cmp dword [edi], 0
jae 0x5d53e9
mov ecx, dword [ebp + 0x4c]
mov dword [edi], 0
mov dword [edi + 4], 0
jmp 0x5d5495
fstp st(0)
mov edi, dword [ebp + 0x38]
cmp edi, dword [ebp + 0x78]
jg 0x5d54fe
jl 0x5d54a4
cmp ecx, dword [ebp + 0x74]
ja 0x5d54fe
fld1
fldz
fxch st(1)
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x54]
inc dword [ebp]
add eax, 0x328
mov ecx, dword [edx + 0x78]
add esi, 0x50
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x3c], esi
cmp dword [ebp], ecx
jl 0x5d4fab
imul eax, ecx, 0xffffff60
add esi, eax
sub ebx, 1
mov dword [ebp + 0x3c], esi
jns 0x5d4f94
mov eax, dword [ebp + 0x4c]
fstp st(1)
fstp st(0)
mov ecx, dword [ebp - 0xc]
mov edx, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x58]
pop ebp
ret 0x20
mov eax, ecx
jmp 0x5d54e8