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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x625dc8
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 0x4c5bc7
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x4c5bc7
mov esi, dword [eax + 0xc]
push str.BitsPerCoordinate
mov ecx, esi
call fcn.0048c910
mov edi, eax
push str.BitsPerComponent
mov ecx, esi
mov dword [esp + 0x4c], edi
call fcn.0048c910
mov ebx, eax
push str.BitsPerFlag
mov ecx, esi
mov dword [esp + 0x3c], ebx
call fcn.0048c910
test edi, edi
mov dword [esp + 0x2c], eax
je 0x4c5bc7
test ebx, ebx
je 0x4c5bc7
test eax, eax
je 0x4c5bc7
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4c568d
mov edi, 1
mov dword [esp + 0x20], edi
jmp 0x4c5699
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.0048ca50
mov esi, eax
test esi, esi
je 0x4c5bc7
mov eax, dword [esi + 0x10]
lea edx, [edi + edi + 4]
cmp eax, edx
jne 0x4c5bc7
push 0
mov ecx, esi
call fcn.0048c320
fstp dword [esp + 0x40]
push 1
mov ecx, esi
call fcn.0048c320
fstp dword [esp + 0x30]
push 2
mov ecx, esi
call fcn.0048c320
fstp dword [esp + 0x4c]
push 3
mov ecx, esi
call fcn.0048c320
fstp dword [esp + 0x34]
xor ebx, ebx
test edi, edi
jbe 0x4c5737
mov dword [esp + 0x14], 5
mov eax, dword [esp + 0x14]
mov ecx, esi
dec eax
push eax
call fcn.0048c320
mov ecx, dword [esp + 0x14]
fstp dword [esp + ebx*4 + 0xf0]
push ecx
mov ecx, esi
call fcn.0048c320
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 0x4c5700
mov edx, dword [ebp + 0x10]
lea ecx, [esp + 0xc8]
push edx
call fcn.0048dad0
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.004b1d50
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
cmp edx, eax
jae 0x4c5bb0
jmp 0x4c5781
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.004c4670
add esp, 0x3c
test eax, eax
jne 0x4c5858
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.004c4670
add esp, 0x3c
add esi, 0x14
dec edi
jne 0x4c57fe
jmp 0x4c589c
cmp eax, 1
mov ecx, 5
jne 0x4c5877
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.0049ba20
add esi, 0x14
dec edi
jne 0x4c58a8
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 0x4c58e6
fstp st(0)
fld dword [ecx]
fld dword [esp + 0x18]
fcomp dword [ecx]
fnstsw ax
test ah, 1
je 0x4c58f9
mov eax, dword [ecx]
mov dword [esp + 0x18], eax
add ecx, 0x14
dec edx
jne 0x4c58d9
fcom dword [esp + 0x18]
fnstsw ax
test ah, 0x40
jne 0x4c5bae
sub esp, 8
fstp qword [esp]
call fcn.004626ea
call fcn.00460b50
fld dword [esp + 0x20]
mov esi, eax
fstp qword [esp]
call fcn.00465c0f
add esp, 8
call fcn.00460b50
test esi, esi
mov dword [esp + 0x24], eax
jge 0x4c593e
xor esi, esi
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
cmp eax, ecx
jl 0x4c594f
dec ecx
mov dword [esp + 0x24], ecx
mov eax, ecx
cmp esi, eax
mov dword [esp + 0x14], esi
jg 0x4c5b9c
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.004c4820
add esp, 0x18
test eax, eax
je 0x4c59f9
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 0x4c5968
cmp dword [esp + 0x10], 2
jne 0x4c5b87
fld dword [esp + 0x50]
fcomp dword [esp + 0x54]
fnstsw ax
test ah, 1
je 0x4c5a51
fld dword [esp + 0x50]
sub esp, 8
fstp qword [esp]
call fcn.004626ea
call fcn.00460b50
fld dword [esp + 0x5c]
mov ebx, eax
fstp qword [esp]
mov dword [esp + 0x18], ebx
call fcn.00465c0f
add esp, 8
call fcn.00460b50
mov esi, eax
jmp 0x4c5a83
fld dword [esp + 0x54]
sub esp, 8
fstp qword [esp]
call fcn.004626ea
call fcn.00460b50
fld dword [esp + 0x58]
mov dword [esp + 0x18], eax
fstp qword [esp]
call fcn.00465c0f
add esp, 8
call fcn.00460b50
mov ebx, dword [esp + 0x10]
mov esi, eax
test ebx, ebx
mov dword [esp + 0x28], esi
jge 0x4c5a8d
xor ebx, ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
cmp esi, eax
jle 0x4c5a9b
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 0x4c5b81
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 [0x646724]
call fcn.00460b50
fld st(1)
fmul dword [0x646724]
mov ebx, eax
or ebx, 0xffffff00
shl ebx, 8
call fcn.00460b50
fld st(0)
fmul dword [0x646724]
or ebx, eax
shl ebx, 8
call fcn.00460b50
or ebx, eax
mov dword [edi], ebx
add edi, 4
dec esi
jne 0x4c5b2c
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 0x4c595b
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
cmp edx, eax
jb 0x4c577d
jmp 0x4c5bb0
fstp st(0)
lea ecx, [esp + 0xc8]
mov dword [esp + 0x138], 0xffffffff
call fcn.0048db40
mov ecx, dword [esp + 0x130]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret