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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x625c78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
cmp dword [eax + 4], 7
jne 0x4c5c77
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x4c5c77
mov esi, dword [eax + 0xc]
push str.BitsPerCoordinate
mov ecx, esi
call fcn.0048c400
mov edi, eax
push str.BitsPerComponent
mov ecx, esi
mov dword [esp + 0x4c], edi
call fcn.0048c400
mov ebx, eax
push str.BitsPerFlag
mov ecx, esi
mov dword [esp + 0x3c], ebx
call fcn.0048c400
test edi, edi
mov dword [esp + 0x2c], eax
je 0x4c5c77
test ebx, ebx
je 0x4c5c77
test eax, eax
je 0x4c5c77
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4c573d
mov edi, 1
mov dword [esp + 0x20], edi
jmp 0x4c5749
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov edi, ecx
push str.Decode
mov ecx, esi
call fcn.0048c540
mov esi, eax
test esi, esi
je 0x4c5c77
mov eax, dword [esi + 0x10]
lea edx, [edi + edi + 4]
cmp eax, edx
jne 0x4c5c77
push 0
mov ecx, esi
call fcn.0048be10
fstp dword [esp + 0x40]
push 1
mov ecx, esi
call fcn.0048be10
fstp dword [esp + 0x30]
push 2
mov ecx, esi
call fcn.0048be10
fstp dword [esp + 0x4c]
push 3
mov ecx, esi
call fcn.0048be10
fstp dword [esp + 0x34]
xor ebx, ebx
test edi, edi
jbe 0x4c57e7
mov dword [esp + 0x14], 5
mov eax, dword [esp + 0x14]
mov ecx, esi
dec eax
push eax
call fcn.0048be10
mov ecx, dword [esp + 0x14]
fstp dword [esp + ebx*4 + 0xf0]
push ecx
mov ecx, esi
call fcn.0048be10
fstp dword [esp + ebx*4 + 0x110]
mov ecx, dword [esp + 0x14]
inc ebx
add ecx, 2
cmp ebx, edi
mov dword [esp + 0x14], ecx
jb 0x4c57b0
mov edx, dword [ebp + 0x10]
lea ecx, [esp + 0xc8]
push edx
call fcn.0048d5c0
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xc8]
push eax
push ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x140], 0
call fcn.004b1680
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
cmp edx, eax
jae 0x4c5c60
jmp 0x4c5831
mov edi, dword [esp + 0x20]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x118]
push ebx
lea eax, [esp + 0xfc]
push edx
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x44]
push edi
push ecx
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push eax
lea edx, [esp + 0x10c]
push ecx
lea eax, [esp + 0x90]
push edx
push eax
call fcn.004c4720
add esp, 0x3c
test eax, eax
jne 0x4c5908
mov ecx, 5
lea esi, [esp + 0xdc]
lea edi, [esp + 0x8c]
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0xa0]
mov edi, 2
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push ecx
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x118]
push ebx
lea ecx, [esp + 0xfc]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x54]
push ecx
push edx
push eax
lea ecx, [esp + 0x90]
push esi
push ecx
call fcn.004c4720
add esp, 0x3c
add esi, 0x14
dec edi
jne 0x4c58ae
jmp 0x4c594c
cmp eax, 1
mov ecx, 5
jne 0x4c5927
lea esi, [esp + 0xa0]
lea edi, [esp + 0x8c]
rep movsd dword es:[edi], dword [esi]
mov ecx, 5
lea esi, [esp + 0xb4]
lea edi, [esp + 0xa0]
rep movsd dword es:[edi], dword [esi]
mov ecx, 5
lea esi, [esp + 0xdc]
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x8c]
mov edi, 3
mov ecx, dword [ebp + 0xc]
lea edx, [esi + 4]
push edx
push esi
call fcn.0049b380
add esi, 0x14
dec edi
jne 0x4c5958
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0xa4]
fld dword [esp + 0x90]
mov dword [esp + 0x18], eax
mov edx, 2
fcom dword [ecx]
fnstsw ax
test ah, 0x41
jne 0x4c5996
fstp st(0)
fld dword [ecx]
fld dword [esp + 0x18]
fcomp dword [ecx]
fnstsw ax
test ah, 1
je 0x4c59a9
mov eax, dword [ecx]
mov dword [esp + 0x18], eax
add ecx, 0x14
dec edx
jne 0x4c5989
fcom dword [esp + 0x18]
fnstsw ax
test ah, 0x40
jne 0x4c5c5e
sub esp, 8
fstp qword [esp]
call fcn.0046217a
call fcn.004605e0
fld dword [esp + 0x20]
mov esi, eax
fstp qword [esp]
call fcn.004656b5
add esp, 8
call fcn.004605e0
test esi, esi
mov dword [esp + 0x24], eax
jge 0x4c59ee
xor esi, esi
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
cmp eax, ecx
jl 0x4c59ff
dec ecx
mov dword [esp + 0x24], ecx
mov eax, ecx
cmp esi, eax
mov dword [esp + 0x14], esi
jg 0x4c5c4c
xor ebx, ebx
lea esi, [esp + 0x90]
mov dword [esp + 0x10], ebx
inc ebx
mov ecx, 3
mov eax, ebx
cdq
idiv ecx
mov eax, dword [esp + 0x10]
lea ecx, [esp + eax*4 + 0x50]
push ecx
mov ecx, dword [esi]
lea edx, [edx + edx*4]
mov eax, dword [esp + edx*4 + 0x90]
lea edi, [esp + edx*4 + 0x90]
mov edx, dword [esp + edx*4 + 0x94]
push edx
mov edx, dword [esi - 4]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call fcn.004c48d0
add esp, 0x18
test eax, eax
je 0x4c5aa9
fild dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc eax
fsub dword [esi]
fld dword [edi + 4]
fsub dword [esi]
fld dword [edi + 8]
fsub dword [esi + 4]
mov dword [esp + 0x10], eax
fmul st(2)
fdiv st(1)
fadd dword [esi + 4]
fstp dword [esp + eax*4 + 0x7c]
fld dword [edi + 0xc]
fsub dword [esi + 8]
fmul st(2)
fdiv st(1)
fadd dword [esi + 8]
fstp dword [esp + eax*4 + 0x64]
fld dword [edi + 0x10]
fsub dword [esi + 0xc]
fmul st(2)
fdiv st(1)
fadd dword [esi + 0xc]
fstp dword [esp + eax*4 + 0x70]
fstp st(0)
fstp st(0)
add esi, 0x14
cmp ebx, 3
jl 0x4c5a18
cmp dword [esp + 0x10], 2
jne 0x4c5c37
fld dword [esp + 0x50]
fcomp dword [esp + 0x54]
fnstsw ax
test ah, 1
je 0x4c5b01
fld dword [esp + 0x50]
sub esp, 8
fstp qword [esp]
call fcn.0046217a
call fcn.004605e0
fld dword [esp + 0x5c]
mov ebx, eax
fstp qword [esp]
mov dword [esp + 0x18], ebx
call fcn.004656b5
add esp, 8
call fcn.004605e0
mov esi, eax
jmp 0x4c5b33
fld dword [esp + 0x54]
sub esp, 8
fstp qword [esp]
call fcn.0046217a
call fcn.004605e0
fld dword [esp + 0x58]
mov dword [esp + 0x18], eax
fstp qword [esp]
call fcn.004656b5
add esp, 8
call fcn.004605e0
mov ebx, dword [esp + 0x10]
mov esi, eax
test ebx, ebx
mov dword [esp + 0x28], esi
jge 0x4c5b3d
xor ebx, ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
cmp esi, eax
jle 0x4c5b4b
mov dword [esp + 0x28], eax
mov edx, dword [ecx]
mov edi, dword [ecx + 0x14]
call dword [edx + 4]
imul edi, dword [esp + 0x14]
add eax, edi
mov ecx, ebx
lea edi, [eax + ebx*4]
mov eax, dword [esp + 0x10]
sub esi, eax
sub ecx, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], ecx
fild dword [esp + 0x1c]
fld dword [esp + 0x84]
fsub dword [esp + 0x80]
mov eax, dword [esp + 0x28]
cmp ebx, eax
fdiv st(1)
fstp dword [esp + 0x3c]
fld dword [esp + 0x6c]
fsub dword [esp + 0x68]
fdiv st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x78]
fsub dword [esp + 0x74]
fdiv st(1)
fstp dword [esp + 0x1c]
fstp st(0)
fild dword [esp + 0x10]
fst dword [esp + 0x10]
fmul dword [esp + 0x3c]
fadd dword [esp + 0x80]
fld dword [esp + 0x10]
fmul dword [esp + 0x44]
fadd dword [esp + 0x68]
fld dword [esp + 0x10]
fmul dword [esp + 0x1c]
fadd dword [esp + 0x74]
jge 0x4c5c31
sub eax, ebx
mov esi, eax
fxch st(2)
fadd dword [esp + 0x3c]
fxch st(2)
fxch st(1)
fadd dword [esp + 0x44]
fxch st(1)
fadd dword [esp + 0x1c]
fld st(2)
fmul dword [0x64669c]
call fcn.004605e0
fld st(1)
fmul dword [0x64669c]
mov ebx, eax
or ebx, 0xffffff00
shl ebx, 8
call fcn.004605e0
fld st(0)
fmul dword [0x64669c]
or ebx, eax
shl ebx, 8
call fcn.004605e0
or ebx, eax
mov dword [edi], ebx
add edi, 4
dec esi
jne 0x4c5bdc
fstp st(0)
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jle 0x4c5a0b
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
cmp edx, eax
jb 0x4c582d
jmp 0x4c5c60
fstp st(0)
lea ecx, [esp + 0xc8]
mov dword [esp + 0x138], 0xffffffff
call fcn.0048d630
mov ecx, dword [esp + 0x130]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret