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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov esi, dword [esp + 0xa0]
mov edi, dword [esp + 0xa4]
mov ebx, dword [esp + 0xa8]
mov eax, dword [esi + 0x68]
test al, 1
je 0x4cd757
test al, 4
jne 0x4cd7c0
test edi, edi
je 0x4cd510
test byte [edi + 9], 4
jne 0x4cd790
lea eax, [ebx + 1]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.004cb0f0
mov ebp, eax
test eax, eax
je 0x4cd7dd
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp], esi
call fcn.004cb280
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.004cb360
test eax, eax
jne 0x4cd73a
lea ecx, [ebp + ebx]
mov ebx, ebp
mov byte [ecx], 0
cmp byte [ebp], 0
je 0x4cd566
inc ebx
cmp byte [ebx], 0
jne 0x4cd560
lea eax, [ebx + 0xc]
cmp ecx, eax
jbe 0x4cd770
mov dl, byte [ebx + 1]
mov al, byte [ebx + 0xa]
mov byte [esp + 0x50], dl
mov dl, byte [ebx + 2]
mov byte [esp + 0x72], dl
mov dl, byte [ebx + 3]
mov byte [esp + 0x73], dl
mov dl, byte [ebx + 4]
mov byte [esp + 0x74], dl
mov dl, byte [ebx + 5]
mov byte [esp + 0x60], dl
mov dl, byte [ebx + 6]
mov byte [esp + 0x75], dl
mov dl, byte [ebx + 7]
mov byte [esp + 0x76], dl
mov dl, byte [ebx + 8]
mov byte [esp + 0x77], dl
mov dl, byte [ebx + 9]
mov byte [esp + 0x71], dl
cmp al, 2
jne 0x4cd7d0
mov dl, byte [esp + 0x71]
dec edx
cmp dl, 1
jbe 0x4cd722
cmp al, 4
jne 0x4cd7fe
cmp byte [esp + 0x71], 3
ja 0x4cd82c
lea edx, [ebx + 0xb]
mov dword [esp + 0x78], edx
cmp byte [ebx + 0xb], 0
je 0x4cd851
mov ebx, edx
nop
inc ebx
cmp byte [ebx], 0
jne 0x4cd5f0
and eax, 0xff
mov dword [esp], esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x40], ecx
shl eax, 2
mov dword [esp + 4], eax
call fcn.004cb0f0
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x48], eax
test eax, eax
je 0x4cd85a
xor eax, eax
lea edx, [ecx + 1]
cmp dword [esp + 0x4c], 0
je 0x4cd685
mov dword [esp + 0x7c], edi
mov dword [esp + 0x3c], edx
mov edi, ecx
mov edx, dword [esp + 0x48]
lea ecx, [ebx + 1]
mov dword [edx + eax*4], ecx
cmp byte [ebx + 1], 0
je 0x4cd825
cmp edi, ecx
jb 0x4cd810
mov ebx, ecx
mov edx, dword [esp + 0x3c]
jmp 0x4cd668
cmp ebx, edx
je 0x4cd810
inc ebx
cmp byte [ebx], 0
jne 0x4cd660
mov dword [esp + 0x3c], edx
cmp edi, ebx
jb 0x4cd810
inc eax
cmp eax, dword [esp + 0x4c]
jl 0x4cd638
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x20], eax
xor eax, eax
mov al, byte [esp + 0x71]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x4c]
xor eax, eax
mov dword [esp + 0x18], edx
mov al, byte [esp + 0x75]
mov dl, byte [esp + 0x60]
shl edx, 0x18
xor ecx, ecx
shl eax, 0x10
mov cl, byte [esp + 0x74]
add eax, edx
xor edx, edx
mov dl, byte [esp + 0x76]
mov dword [esp + 8], ebp
shl edx, 8
mov dword [esp + 4], edi
add eax, edx
xor edx, edx
mov dl, byte [esp + 0x77]
mov dword [esp], esi
add eax, edx
mov dl, byte [esp + 0x50]
shl edx, 0x18
mov dword [esp + 0x10], eax
xor eax, eax
mov al, byte [esp + 0x72]
shl eax, 0x10
add eax, edx
xor edx, edx
mov dl, byte [esp + 0x73]
shl edx, 8
add eax, edx
add eax, ecx
mov dword [esp + 0xc], eax
call fcn.004c9990
mov dword [esp + 4], ebp
mov dword [esp], esi
call fcn.004cb0c0
mov eax, dword [esp + 0x48]
mov dword [esp + 0xa4], eax
jmp 0x4cd741
cmp al, 3
je 0x4cd5c9
mov dword [esp + 4], str.Invalid_pCAL_parameters_for_equation_type
mov dword [esp], esi
call fcn.004cad50
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa0], esi
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004cb0c0
mov dword [esp + 4], str.Missing_IHDR_before_pCAL
mov dword [esp], esi
call fcn.004cacb0
jmp 0x4cd510
mov dword [esp + 4], str.Invalid_pCAL_data
mov dword [esp], esi
call fcn.004cad50
mov dword [esp + 0xa4], ebp
jmp 0x4cd741
mov dword [esp + 4], str.Duplicate_pCAL_chunk
mov dword [esp], esi
call fcn.004cad50
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa0], esi
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004cb360
mov dword [esp + 4], str.Invalid_pCAL_after_IDAT
jmp 0x4cd798
test dl, dl
jne 0x4cd5bb
jmp 0x4cd72a
mov dword [esp + 0xa4], str.No_memory_for_pCAL_purpose.
mov dword [esp + 0xa0], esi
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004cad50
cmp byte [esp + 0x71], 3
jne 0x4cd5d1
jmp 0x4cd72a
mov dword [esp + 4], str.Invalid_pCAL_data
mov dword [esp], esi
call fcn.004cad50
jmp 0x4cd709
mov ebx, ecx
jmp 0x4cd672
mov dword [esp + 4], 0x70ce58
mov dword [esp], esi
mov byte [esp + 0x44], al
mov dword [esp + 0x40], ecx
call fcn.004cad50
mov ecx, dword [esp + 0x40]
mov al, byte [esp + 0x44]
jmp 0x4cd5dc
mov ebx, dword [esp + 0x78]
jmp 0x4cd5f6
mov dword [esp + 4], ebp
mov dword [esp], esi
call fcn.004cb0c0
mov dword [esp + 0xa4], str.No_memory_for_pCAL_params.
jmp 0x4cd7e8