Function at 0x40a910
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x443038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x98], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x84], eax
mov eax, dword [ebx + 0x18]
mov edx, ecx
push esi
cmp dword [edx], 0x20100916
mov dword [ebp - 0x8c], eax
mov eax, dword [ebx + 0x1c]
push edi
mov edi, dword [ebx + 8]
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x94], eax
je 0x40a9a8
push str.IMAGE::putimage_alphablend
push edx
lea eax, [ebp - 0x80]
push str.Fatal_error:_read_write_at_0x_p._At_function__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x80]
push 0x10
push str.EGE_ERROR_message
push eax
mov eax, dword [0x448fd8]
push dword [eax + 0x5c]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp edi, 0x20
jae 0x40a9cd
mov eax, dword [0x448fd8]
test edi, edi
je 0x40a9bf
and edi, 0xf
mov edi, dword [eax + edi*4 + 0x24]
jmp 0x40a9cd
dec dword [eax + 0x1a8]
mov eax, dword [0x448fd8]
mov edi, dword [eax + 0x4c]
test edi, edi
je 0x40ac8e
movzx eax, byte [ebx + 0x14]
mov esi, 0xff
lea ecx, [eax + 1]
sub esi, eax
lea eax, [ebx + 0x24]
push eax
lea eax, [ebx + 0x20]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x98]
push eax
push edx
push edi
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x88], esi
call fcn.00409a60
mov eax, dword [edi + 0xc]
mov ecx, eax
imul ecx, dword [ebp - 0x84]
add ecx, dword [ebp - 0x98]
mov esi, dword [ebx + 0x24]
mov dword [ebp - 0x90], eax
mov eax, dword [edi + 0x14]
add esp, 0x20
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x14]
mov dword [ebp - 0x84], edx
imul edx, dword [ebp - 0x94]
add edx, dword [ebp - 0x8c]
mov dword [ebp - 0x94], esi
lea edi, [ecx + edx*4]
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebp - 0x90]
sub dword [ebp - 0x84], ecx
sub edx, ecx
test esi, esi
mov esi, dword [ebp - 0x88]
jle 0x40ac8e
shl edx, 2
mov dword [ebp - 0xa0], edx
mov edx, dword [ebp - 0x84]
shl edx, 2
mov dword [ebp - 0x98], edx
lea ecx, [ecx]
xor edx, edx
test ecx, ecx
jle 0x40ac76
cmp ecx, 4
jb 0x40abef
cmp dword [0x448528], 2
jl 0x40abef
movd xmm0, dword [ebp - 0x9c]
pshufd xmm0, xmm0, 0
movdqa xmmword [ebp - 0xb0], xmm0
movd xmm0, esi
lea esi, [ecx - 1]
dec ecx
lea esi, [eax + esi*4]
lea ecx, [edi + ecx*4]
pshufd xmm0, xmm0, 0
mov dword [ebp - 0x90], esi
mov esi, dword [ebp - 0x88]
movdqa xmmword [ebp - 0xc0], xmm0
cmp eax, ecx
ja 0x40ab0c
cmp dword [ebp - 0x90], edi
jae 0x40abec
mov ecx, dword [ebx + 0x20]
and ecx, 0x80000003
jns 0x40ab1c
dec ecx
or ecx, 0xfffffffc
inc ecx
mov esi, dword [ebx + 0x20]
movdqa xmm5, xmmword [0x430640]
movdqa xmm6, xmmword [0x430650]
movdqa xmm7, xmmword [0x430660]
sub esi, ecx
mov ecx, 0x10
movd xmm4, ecx
mov dword [ebp - 0x90], esi
mov ecx, esi
lea ebx, [ebx]
movdqu xmm1, xmmword [eax]
movdqu xmm2, xmmword [edi]
movdqa xmm3, xmm5
pand xmm3, xmm1
pmulld xmm3, xmm0
psrld xmm3, xmm4
movdqa xmm0, xmm6
pand xmm0, xmm1
pmulld xmm0, xmmword [ebp - 0xc0]
pand xmm0, xmm7
pslld xmm3, xmm4
movdqa xmm1, xmm5
por xmm3, xmm0
pand xmm1, xmm2
pmulld xmm1, xmmword [ebp - 0xb0]
psrld xmm1, xmm4
movdqa xmm0, xmm6
pand xmm0, xmm2
pmulld xmm0, xmmword [ebp - 0xb0]
pand xmm0, xmm7
pslld xmm1, xmm4
mov esi, 8
por xmm1, xmm0
movd xmm0, esi
mov esi, dword [ebp - 0x88]
paddd xmm3, xmm1
psrld xmm3, xmm0
movdqa xmm0, xmmword [ebp - 0xc0]
movdqu xmmword [eax], xmm3
add edx, 4
add edi, 0x10
add eax, 0x10
cmp edx, ecx
jl 0x40ab50
mov ecx, dword [ebx + 0x20]
cmp edx, ecx
jge 0x40ac76
sub ecx, edx
mov dword [ebp - 0x8c], ecx
nop
mov ecx, dword [eax]
mov edx, dword [edi]
mov esi, ecx
and ecx, 0xff00
imul ecx, dword [ebp - 0x88]
and esi, 0xff00ff
imul esi, dword [ebp - 0x88]
and ecx, 0xffff0000
and esi, 0xff00ff00
or esi, ecx
mov ecx, edx
and ecx, 0xff00ff
imul ecx, dword [ebp - 0x9c]
and edx, 0xff00
imul edx, dword [ebp - 0x9c]
and ecx, 0xff00ff00
and edx, 0xffff0000
or ecx, edx
add esi, ecx
shr esi, 8
mov dword [eax], esi
add edi, 4
add eax, 4
dec dword [ebp - 0x8c]
jne 0x40ac00
mov esi, dword [ebp - 0x88]
mov ecx, dword [ebx + 0x20]
add eax, dword [ebp - 0xa0]
add edi, dword [ebp - 0x98]
dec dword [ebp - 0x94]
jne 0x40aaa0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004015f2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x20