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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x74]
mov edx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x70]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x78]
mov dword [esp + 0x38], edi
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x80]
mov dword [esp + 0x1c], edx
test eax, eax
je 0x437ad1
test ebp, ebp
je 0x437ad1
mov dword [esp], ecx
call sym._strlen
lea ecx, [eax + 1]
mov dword [esp + 0x28], ecx
cmp edi, 3
ja 0x437af7
mov edx, dword [esp + 0x20]
xor ebx, ebx
test edx, edx
jle 0x437942
mov dword [esp + 0x3c], ebp
mov edi, dword [esp + 0x20]
lea esi, [esi]
mov ebp, dword [esi + ebx*4]
mov dword [esp], ebp
call sym._strlen
mov dword [esp], ebp
mov dword [esp + 4], eax
call sym._png_check_fp_string
test eax, eax
je 0x437ad9
add ebx, 1
cmp edi, ebx
jne 0x437918
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._png_malloc_warn
mov dword [ebp + 0xa4], eax
test eax, eax
je 0x437b15
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
call sym._memcpy
mov eax, dword [esp + 0x30]
mov dword [ebp + 0xa8], eax
mov eax, dword [esp + 0x34]
mov dword [ebp + 0xac], eax
movzx eax, byte [esp + 0x38]
mov byte [ebp + 0xb8], al
movzx eax, byte [esp + 0x20]
mov byte [ebp + 0xb9], al
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sym._strlen
lea ebx, [eax + 1]
mov eax, dword [esp + 0x24]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._png_malloc_warn
mov dword [ebp + 0xb0], eax
test eax, eax
je 0x437b0b
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym._memcpy
mov eax, dword [esp + 0x20]
lea ebx, [eax*4 + 4]
mov eax, dword [esp + 0x24]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._png_malloc_warn
mov dword [ebp + 0xb4], eax
test eax, eax
je 0x437aed
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._memset
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x437ac0
xor ebx, ebx
jmp 0x437a54
mov edx, dword [esi + ebx*4]
mov dword [esp + 8], edi
add ebx, 1
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._memcpy
cmp dword [esp + 0x20], ebx
je 0x437ac0
mov eax, dword [esi + ebx*4]
lea edx, [ebx*4]
mov dword [esp + 0x1c], edx
mov dword [esp], eax
call sym._strlen
mov edx, dword [esp + 0x1c]
add edx, dword [ebp + 0xb4]
lea edi, [eax + 1]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._png_malloc_warn
mov edx, dword [esp + 0x1c]
mov dword [edx], eax
mov eax, dword [ebp + 0xb4]
mov eax, dword [eax + ebx*4]
test eax, eax
jne 0x437a38
mov dword [esp + 0x64], str.Insufficient_memory_for_pCAL_parameter
mov eax, dword [esp + 0x24]
mov dword [esp + 0x60], eax
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
jmp sym._png_warning
or dword [ebp + 8], 0x400
or dword [ebp + 0xbc], 0x80
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x24]
mov dword [esp + 4], str.Invalid_format_for_pCAL_parameter
mov dword [esp], eax
call sym._png_error
mov dword [esp + 0x64], str.Insufficient_memory_for_pCAL_params
jmp 0x437aa6
mov eax, dword [esp + 0x24]
mov dword [esp + 4], str.Invalid_pCAL_equation_type
mov dword [esp], eax
call sym._png_error
mov dword [esp + 0x64], str.Insufficient_memory_for_pCAL_units
jmp 0x437aa6
mov dword [esp + 0x64], str.Insufficient_memory_for_pCAL_purpose
jmp 0x437aa6