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

Disassembly:
push 0xffffffffffffffff
push 0x6f9bf2
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0xbc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xf8]
mov ebx, dword [esp + 0xf0]
mov ebp, dword [esp + 0xf4]
push 0x100
mov dword [esp + 0x48], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
call fcn.005f08d0
push 4
push eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
call dword [sym.imp.MSVCR120.dll_calloc]
add esp, 0xc
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0xdc], 0
xor edi, edi
mov dword [esp + 0x1c], eax
cmp dword [esp + 0xec], eax
jbe 0x55b7cf
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xe4]
mov ebx, dword [edx + eax*4]
test ecx, ecx
je 0x55b7b5
mov dword [esp + 0x34], 0
mov ebp, ecx
mov dword [esp + 0x38], 0
lea ecx, [ecx]
mov al, byte [ebx]
lea ebx, [ebx + 4]
mov cl, byte [ebx - 3]
mov dl, byte [ebx - 2]
movzx esi, al
shl esi, 8
movzx eax, cl
or esi, eax
movzx eax, dl
shl esi, 8
xor edx, edx
or esi, eax
mov eax, esi
mov dword [esp + 0x30], esi
div dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x55b780
cmp dword [eax + 4], esi
je 0x55b78f
mov eax, dword [eax]
test eax, eax
jne 0x55b775
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
call fcn.004bd640
mov edx, dword [eax + 0xc]
lea ecx, [edx + 1]
mov dword [eax + 0xc], ecx
test edx, edx
jne 0x55b7a0
mov dword [eax + 8], edi
inc edi
dec ebp
jne 0x55b740
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xe4]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0xec]
jb 0x55b720
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x14]
push 0
push 0
push 1
push dword [esp + 0x24]
lea ecx, [esp + 0x30]
push ebp
push ebx
call fcn.004bde60
mov edi, dword [sym.imp.MSVCR120.dll_free]
test al, al
jne 0x55ba93
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 2
call fcn.00439d10
add esp, 0x24
test al, al
je 0x55ba85
push str.Too_many_colours_in_PNG__the_image_may_be_slightly_blurred.
lea ecx, [esp + 0xb4]
call fcn.00418040
xor eax, eax
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
mov dword [esp + 0x60], eax
mov byte [esp + 0xdc], 2
call fcn.005eae80
test eax, eax
je 0x55b86a
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0xb4]
push ecx
mov ecx, eax
call fcn.005ecae0
mov esi, eax
test esi, esi
jne 0x55b87c
lea eax, [esp + 0xb0]
push eax
call fcn.005ed1e0
add esp, 4
mov esi, eax
call fcn.005c92f0
mov dword [esp + 0x30], eax
mov byte [esp + 0xdc], 3
call fcn.005c92f0
mov dword [esp + 0x34], eax
mov byte [esp + 0xdc], 4
call fcn.005c92f0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], 0
push 0
mov byte [esp + 0xe0], 5
mov dword [esp + 0x6c], 2
mov dword [esp + 0x74], str....._srccommonimagpng.cpp
mov dword [esp + 0x7c], str.FindMaskColour
mov dword [esp + 0x78], 0x11e
mov dword [esp + 0x80], 0x721844
call dword [sym.imp.MSVCR120.dll__time64]
add esp, 4
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edx
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 0x88], eax
xor eax, eax
mov dword [esp + 0x8c], 0
mov dword [esp + 0xa4], 7
mov dword [esp + 0xa0], 0
mov word [esp + 0x90], ax
mov dword [esp + 0xa8], eax
lea ecx, [esp + 0x30]
mov byte [esp + 0xdc], 6
call fcn.005e6500
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.00439e70
push dword [esp + 0xb0]
call edi
add esp, 0xc
cmp dword [esp + 0xa4], 8
jb 0x55b97e
push dword [esp + 0x90]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [esp + 0x8c]
xor eax, eax
mov dword [esp + 0xa4], 7
mov dword [esp + 0xa0], 0
mov word [esp + 0x90], ax
mov dword [esp + 0x14], esi
test esi, esi
je 0x55b9fc
push 0x4294d0
push dword [esi + 0x10]
mov byte [esp + 0xe4], 7
push dword [esi + 0x14]
call fcn.005f0870
push dword [esi + 0x10]
mov dword [esi + 0x18], 0
call edi
push 0x439bf0
push dword [esi]
mov byte [esp + 0xf4], 5
push dword [esi + 4]
call fcn.005f0870
push dword [esi]
mov dword [esi + 8], 0
call edi
push esi
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 0x24
lea ecx, [esp + 0x30]
mov byte [esp + 0xdc], 2
call fcn.00420020
push dword [esp + 0x60]
call edi
add esp, 4
cmp dword [esp + 0x5c], 8
jb 0x55ba29
push dword [esp + 0x48]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push dword [esp + 0xc8]
xor eax, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
call edi
add esp, 4
cmp dword [esp + 0xc4], 8
jb 0x55ba65
push dword [esp + 0xb0]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0xc4], 7
mov dword [esp + 0xc0], 0
mov word [esp + 0xb0], ax
mov eax, dword [esp + 0x18]
mov byte [ebx], 0xfe
mov byte [ebp], 0
mov byte [eax], 0xff
push 0x495690
push dword [esp + 0x24]
mov dword [esp + 0xe4], 0xffffffff
push dword [esp + 0x2c]
call fcn.005f0870
push dword [esp + 0x2c]
mov dword [esp + 0x38], 0
call edi
add esp, 0x10
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.006d1ba7
add esp, 0xcc
ret