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

Disassembly:
sub esp, 0xdc
mov eax, dword [0x1011a204]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0xec]
push edi
mov edi, dword [esp + 0xf4]
mov ebx, dword [esi + 4]
mov ecx, ebx
mov dword [esp + 0x38], ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0x44]
call eax
test al, al
jne 0x1002530d
push 0
push 0x7c
lea eax, [esp + 0x74]
mov ecx, ebx
push eax
call dword [sym.imp.Qt5Core.dll_public:_long_long___int64____thiscall_QIODevice::read_char___long_long___int64__]
mov ecx, esi
call dword [sym.imp.Qt5Core.dll_public:_enum_QDataStream::Status___thiscall_QDataStream::status_void_]
test eax, eax
jne 0x1002530d
movzx eax, word [esp + 0x7a]
mov dword [esp + 0x14], eax
cmp eax, 0x20
jne 0x1002530d
cmp word [esp + 0x78], 1
jne 0x1002530d
cmp dword [esp + 0x7c], 3
jne 0x1002530d
mov eax, dword [esp + 0x94]
mov ecx, edi
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0xa0]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x74]
cdq
mov ebx, eax
mov dword [esp + 0x18], ebp
lea eax, [esp + 0x5c]
mov dword [esp + 0x48], esi
xor ebx, edx
push eax
sub ebx, edx
call dword [sym.imp.Qt5Gui.dll_public:_class_QSize___thiscall_QImage::size_void_]
cmp dword [eax], ebp
jne 0x1002509a
cmp dword [eax + 4], ebx
jne 0x1002509a
mov ecx, edi
call dword [sym.imp.Qt5Gui.dll_public:_enum_QImage::Format___thiscall_QImage::format_void_]
cmp eax, 5
je 0x100250cb
push 5
push ebx
push ebp
lea ecx, [esp + 0x68]
call dword [sym.imp.Qt5Gui.dll_public:_void___thiscall_QImage::constructor_int__int__enum_QImage::Format_]
push eax
mov ecx, edi
call dword [sym.imp.Qt5Gui.dll_public:_class_QImage____thiscall_QImage::operator_class_QImage__]
lea ecx, [esp + 0x5c]
call dword [sym.imp.Qt5Gui.dll_public_virtual:_void___thiscall_QImage::destructor_void_]
mov ecx, edi
call dword [sym.imp.Qt5Gui.dll_public:_bool___thiscall_QImage::isNull_void_const]
test al, al
jne 0x1002530d
push dword [esp + 0x84]
mov ecx, edi
call dword [sym.imp.Qt5Gui.dll_public:_void___thiscall_QImage::setDotsPerMeterX_int_]
push dword [esp + 0x88]
mov ecx, edi
call dword [sym.imp.Qt5Gui.dll_public:_void___thiscall_QImage::setDotsPerMeterY_int_]
push dword [esp + 0x20]
call fcn.100211a0
push dword [esp + 0x28]
mov dword [esp + 0x54], eax
call fcn.100211a0
push dword [esp + 0x30]
mov dword [esp + 0x5c], eax
call fcn.100211a0
add esp, 0xc
mov dword [esp + 0x54], eax
test esi, esi
je 0x10025126
push esi
call fcn.100211a0
add esp, 4
mov dword [esp + 0x1c], eax
jmp 0x1002512e
mov dword [esp + 0x1c], 0
mov ecx, edi
call dword [sym.imp.Qt5Gui.dll_public:_int___thiscall_QImage::bytesPerLine_void_const]
mov esi, eax
mov ecx, edi
mov dword [esp + 0x58], esi
call dword [sym.imp.Qt5Gui.dll_public:_unsigned_char____thiscall_QImage::bits_void_]
mov ebp, eax
push esi
mov dword [esp + 0x60], ebp
call fcn.100d4938
mov ecx, dword [esp + 0x1c]
mov edi, eax
mov eax, ecx
mov dword [esp + 0x14], edi
imul eax, dword [esp + 0x18]
add esp, 4
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
add ebx, 0xffffffff
mov dword [esp + 0x30], ebx
js 0x1002529d
mov edi, esi
shl ecx, 2
imul edi, ebx
cdq
mov dword [esp + 0x3c], ecx
mov ecx, eax
mov eax, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
add edi, ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x34], edi
push eax
push ecx
mov ecx, dword [esp + 0x40]
push ebp
call dword [sym.imp.Qt5Core.dll_public:_long_long___int64____thiscall_QIODevice::read_char___long_long___int64__]
cmp eax, dword [esp + 0x18]
jne 0x10025295
cmp edx, dword [esp + 0x14]
jne 0x10025295
mov ecx, dword [esp + 0x3c]
xor edx, edx
mov dword [esp + 0x2c], edi
lea eax, [edi + ecx]
shr ecx, 2
cmp edi, eax
cmova ecx, edx
mov dword [esp + 0x40], ecx
test ecx, ecx
je 0x1002527a
add ebp, 2
mov esi, ecx
mov edi, edx
nop dword [eax]
movzx ebx, byte [ebp + 1]
lea ebp, [ebp + 4]
movzx eax, byte [ebp - 4]
inc edi
mov ecx, dword [esp + 0x1c]
shl ebx, 8
or ebx, eax
movzx eax, byte [ebp - 5]
shl ebx, 8
or ebx, eax
movzx eax, byte [ebp - 6]
shl ebx, 8
or ebx, eax
mov edx, ebx
mov eax, ebx
and edx, dword [esp + 0x48]
and eax, dword [esp + 0x20]
sar edx, cl
mov ecx, dword [esp + 0x4c]
sar eax, cl
mov ecx, dword [esp + 0x50]
movzx eax, al
shl edx, 8
or edx, eax
mov eax, ebx
and eax, dword [esp + 0x24]
and ebx, dword [esp + 0x28]
sar eax, cl
mov ecx, dword [esp + 0x54]
shl edx, 8
movzx eax, al
or edx, eax
sar ebx, cl
shl edx, 8
movzx eax, bl
or edx, eax
mov eax, dword [esp + 0x2c]
mov dword [eax], edx
add eax, 4
mov dword [esp + 0x2c], eax
cmp edi, esi
jb 0x100251f0
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
dec ebx
mov ecx, dword [esp + 0x18]
sub edi, esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edi
test ebx, ebx
jns 0x100251a3
mov ebp, dword [esp + 0x5c]
mov edi, dword [esp + 0x10]
push edi
call fcn.100d4941
add esp, 4
cmp dword [esp + 0x74], 0
jge 0x10025309
push esi
call fcn.100d4938
mov edi, dword [esp + 0x78]
mov ecx, eax
neg edi
mov dword [esp + 0x14], ecx
mov eax, edi
add esp, 4
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
test ebx, ebx
jle 0x10025300
dec edi
imul edi, esi
add edi, ebp
push esi
push ebp
push ecx
call sub.VCRUNTIME140.dll_memcpy
push esi
push edi
push ebp
call sub.VCRUNTIME140.dll_memcpy
push esi
push dword [esp + 0x2c]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x34]
add esp, 0x24
add ebp, esi
sub edi, esi
sub ebx, 1
jne 0x100252d5
push ecx
call fcn.100d4941
add esp, 4
mov al, 1
jmp 0x1002530f
xor al, al
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d4904
add esp, 0xdc
ret