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

Disassembly:
push 0xffffffffffffffff
push 0x61a64a
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x69e3d4]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x5c]
movzx ecx, word [ebp + 0x2e]
mov esi, dword [ebp + 0x24]
mov eax, dword [ebp + 0x28]
lea ebx, [ebp + 0x20]
xor edi, edi
cmp ecx, 0x20
mov dword [esp + 0x20], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], eax
ja case.0x4c8c6e.58
movzx edx, byte [ecx + 0x4c91c0]
jmp dword [edx*4 + 0x4c91b0]
mov eax, dword [ebx + 0x20]
cmp eax, edi
mov dword [esp + 0x34], 1
mov dword [esp + 0x20], eax
jne 0x4c8c93
mov eax, 1
shl eax, cl
mov dword [esp + 0x20], eax
mov eax, dword [ebx]
mov edi, dword [esp + 0x20]
lea ecx, [eax + ebp + 0x20]
mov dword [esp + 0x30], ecx
jmp case.0x4c8c6e.56
push 0x480
call fcn.005655ab
add esp, 4
mov dword [esp + 0x5c], eax
xor esi, esi
cmp eax, esi
mov dword [esp + 0x54], esi
je 0x4c8cc6
push eax
call fcn.004e6580
mov esi, eax
push ebp
mov eax, esi
mov dword [esp + 0x58], 0xffffffff
call fcn.004e6da0
movzx edx, word [ebp + 0x2c]
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x24]
push 0
push 0x2ffffff
push 0x18
push edx
push eax
push ecx
xor ecx, ecx
mov edx, esi
call fcn.004e72a0
mov dword [esp + 0x5c], esi
mov ebp, dword [esp + 0x5c]
add esi, 0x20
mov dword [esp + 0x24], esi
mov ebx, esi
mov esi, dword [esp + 0x28]
push 0
push 0x400000
push 1
call dword [sym.imp.kernel32.dll_HeapCreate]
cmp dword [esp + 0x34], 0
mov edx, dword [ebp + 0x448]
mov ecx, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], edx
jne 0x4c8dd5
lea ebx, [esi + esi*2]
lea eax, [ebx + 3]
cdq
and edx, 3
add eax, edx
mov esi, eax
mov eax, dword [esp + 0x1c]
lea edx, [eax*4]
push edx
sar esi, 2
push 1
add esi, esi
push ecx
add esi, esi
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
xor ebp, ebp
test eax, eax
jle 0x4c8ee3
lea edi, [eax - 1]
imul edi, esi
mov ecx, esi
neg ecx
add edi, dword [esp + 0x3c]
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x2c]
push ebx
push 1
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
test esi, esi
mov dword [ecx + ebp*4], eax
mov ecx, edi
jle 0x4c8dc3
movzx edx, byte [ecx + 2]
mov byte [eax], dl
movzx edx, byte [ecx + 1]
add eax, 1
mov byte [eax], dl
movzx edx, byte [ecx]
add eax, 1
mov byte [eax], dl
add eax, 1
add ecx, 3
sub esi, 1
jne 0x4c8da1
add edi, dword [esp + 0x38]
add ebp, 1
cmp ebp, dword [esp + 0x1c]
jl 0x4c8d82
jmp 0x4c8edf
mov ebp, dword [sym.imp.kernel32.dll_HeapAlloc]
lea eax, [edi + edi*2]
push eax
push 1
push ecx
call ebp
test edi, edi
mov dword [esp + 0x38], eax
jle 0x4c8e22
mov ecx, dword [esp + 0x30]
add eax, 2
add ecx, 1
mov esi, edi
jmp 0x4c8e00
movzx edx, byte [ecx + 1]
mov byte [eax - 2], dl
movzx edx, byte [ecx]
mov byte [eax - 1], dl
movzx edx, byte [ecx - 1]
mov byte [eax], dl
add eax, 3
add ecx, 4
sub esi, 1
jne 0x4c8e00
mov esi, dword [esp + 0x28]
movzx eax, word [ebx + 0xe]
sub eax, 1
je 0x4c8e65
sub eax, 3
je 0x4c8e49
sub eax, 4
jne 0x4c8e73
lea eax, [esi + 3]
cdq
and edx, 3
add eax, edx
mov esi, eax
sar esi, 2
add esi, esi
add esi, esi
jmp 0x4c8e77
lea eax, [esi + 1]
cdq
sub eax, edx
sar eax, 1
add eax, 3
cdq
and edx, 3
add eax, edx
mov esi, eax
sar esi, 2
add esi, esi
add esi, esi
jmp 0x4c8e77
lea eax, [esi + 3]
cdq
and edx, 7
add eax, edx
sar eax, 3
jmp 0x4c8e51
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
lea ecx, [eax*4]
push ecx
push 1
push edx
call ebp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
xor ebp, ebp
test eax, eax
jle 0x4c8ee7
lea edi, [eax - 1]
imul edi, esi
mov ebx, esi
neg ebx
add edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
push esi
push 1
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [esp + 0x30]
mov dword [ecx + ebp*4], eax
mov ecx, eax
xor eax, eax
test esi, esi
jle 0x4c8ed4
mov dl, byte [edi + eax]
mov byte [ecx], dl
add eax, 1
add ecx, 1
cmp eax, esi
jl 0x4c8ec5
add ebp, 1
add edi, ebx
cmp ebp, dword [esp + 0x1c]
jl 0x4c8ea8
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
push 0
push 0
push 0
push str.1.2.1
call fcn.005f97dc
add esp, 0x10
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4c8f13
push str.png_create_write_struct_error__n
call fcn.005af9ad
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
call fcn.005f3fac
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4c8f31
push str.png_create_info_struct_error__n
call fcn.005af9ad
add esp, 4
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.005f43ea
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
add esp, 8
test ebp, ebp
push 0
push 0
jne 0x4c8f7b
mov ecx, dword [esp + 0x30]
xor edx, edx
cmp dword [esp + 0x74], edx
setne dl
push edx
mov edx, dword [esp + 0x20]
push 2
push 8
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
call fcn.005fa2fc
add esp, 0x24
jmp 0x4c8fc9
movzx edx, word [ebx + 0xe]
xor ecx, ecx
cmp dword [esp + 0x74], ecx
setne cl
push ecx
mov ecx, dword [esp + 0x34]
push 3
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
call fcn.005fa2fc
mov ecx, dword [esp + 0x3c]
add esp, 0x24
push ecx
call fcn.005fac9d
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add esp, 4
push edi
push edx
push eax
push ecx
call fcn.005fa665
add esp, 0x10
mov eax, dword [esp + 0x14]
or dword [eax + 8], 0x80
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x5c]
mov byte [edx + 0x78], 1
mov ecx, dword [eax + 0x38]
mov edx, dword [esp + 0x14]
mov dword [edx + 0x70], ecx
mov eax, dword [eax + 0x3c]
mov ecx, dword [esp + 0x14]
xor esi, esi
cmp dword [esp + 0x64], esi
mov dword [ecx + 0x74], eax
je 0x4c90ee
mov eax, dword [esp + 0x14]
or dword [eax + 8], 0x10
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x14]
movzx dx, al
mov word [ecx + 0x52], dx
mov ecx, dword [esp + 0x14]
mov bx, ax
shr bx, 8
movzx dx, bl
mov word [ecx + 0x54], dx
shr eax, 0x10
test ebp, ebp
movzx dx, al
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x14]
mov word [eax + 0x56], dx
mov ecx, dword [esp + 0x14]
mov byte [ecx + 0x50], 0
mov edx, dword [esp + 0x14]
mov word [edx + 0x58], si
je 0x4c90ee
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x50]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 0x54]
push edi
mov dword [esp + 0x48], edx
mov ax, word [eax + 0x58]
push 1
push ebp
mov word [esp + 0x54], ax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test edi, edi
mov esi, eax
jle 0x4c9094
push edi
push 0xff
push esi
call fcn.005ab440
add esp, 0xc
xor eax, eax
test edi, edi
jle 0x4c90d3
mov ecx, dword [esp + 0x38]
add ecx, 2
mov dl, byte [esp + 0x68]
cmp byte [ecx - 2], dl
jne 0x4c90b7
cmp byte [ecx - 1], bl
jne 0x4c90b7
mov dl, byte [esp + 0x5c]
cmp byte [ecx], dl
je 0x4c90c3
add eax, 1
add ecx, 3
cmp eax, edi
jl 0x4c90a1
jmp 0x4c90d3
cmp eax, edi
jge 0x4c90d3
test esi, esi
mov byte [esp + 0x40], al
je 0x4c90d3
mov byte [esi + eax], 0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x40]
push eax
push edi
push esi
push ecx
push edx
call fcn.005faa39
add esp, 0x14
jmp 0x4c90f2
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.005f9418
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
push ebx
push edx
call fcn.005f9958
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call fcn.005f96a4
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.005f9c2f
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
add esp, 0x20
cmp dword [esp + 0x34], 0
je 0x4c9148
mov ecx, dword [esp + 0x38]
push ecx
push 1
push ebp
call edi
test esi, esi
je 0x4c9152
push esi
push 1
push ebp
call edi
xor esi, esi
cmp dword [esp + 0x1c], esi
jle 0x4c9172
lea ebx, [ebx]
mov edx, dword [ebx + esi*4]
push edx
push 1
push ebp
call edi
add esi, 1
cmp esi, dword [esp + 0x1c]
jl 0x4c9160
push ebx
push 1
push ebp
call edi
push ebp
call dword [sym.imp.kernel32.dll_HeapDestroy]
mov eax, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
xor eax, eax
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret