Function at 0x411240
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
push ebx
push esi
mov esi, ecx
push edi
lea edi, [ebp - 0x1a8]
mov dword [ebp - 0x3c], esi
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + eax*4 + 0x80]
xor eax, eax
mov al, byte [esi + 0x7c]
mov edx, dword [ecx + 0xc]
mov ecx, dword [esi + 0x74]
mov dword [ebp - 0x80], eax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x88], eax
xor eax, eax
add edx, 0x28
mov dword [ebp - 0x78], ecx
mov ecx, dword [esi + 0x68]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
mov edx, dword [esi + 0x78]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x90], edx
mov edx, dword [esi + 0x70]
mov dword [ebp - 0x2c], eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x28], eax
call dword [0x48359c]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x6c]
mov ebx, 0xfffffff0
cmp eax, ebx
mov dword [ebp - 0xc], ebx
jle 0x41154a
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4112f8
xor ecx, ecx
test ebx, ebx
setl cl
dec ecx
and ecx, ebx
mov edi, ecx
lea ecx, [ebx + 0x10]
cmp eax, ecx
mov dword [ebp - 8], edi
jge 0x4112f3
mov dword [ebp - 4], eax
jmp 0x411319
mov dword [ebp - 4], ecx
jmp 0x411319
mov ecx, eax
xor edx, edx
sub ecx, ebx
mov dword [ebp - 4], eax
lea edi, [ecx - 0x10]
test edi, edi
setl dl
dec edx
and edx, edi
cmp eax, ecx
mov dword [ebp - 8], edx
jl 0x411316
mov dword [ebp - 4], ecx
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], edi
cmp edi, eax
jge 0x41147e
mov esi, dword [ebp - 0x18]
and esi, 0x8000000f
jns 0x411337
dec esi
or esi, 0xfffffff0
inc esi
mov dword [ebp - 0x24], esi
call fcn.0046bf67
xor ecx, ecx
mov dword [ebp - 0x58], 0
mov cl, byte [ebp + esi - 0x34]
mov esi, 0x10
cdq
sub esi, ecx
idiv esi
mov dword [ebp - 0x1c], edx
pushal
xor ebx, ebx
xor ecx, ecx
dec ecx
lea edi, [ebp - 0x1a8]
mov eax, dword [ebp - 0x24]
mov edx, 0x10
mul edx
add edi, eax
cmp ecx, 0x10
jge 0x411386
inc ecx
mov esi, edi
add esi, ecx
cmp byte [esi], 0
jne 0x411371
inc ebx
cmp ebx, dword [ebp - 0x1c]
jb 0x411371
mov byte [esi], 1
mov dword [ebp - 0x58], ecx
xor eax, eax
mov eax, 4
movd mm1, eax
punpckldq mm1, dword [ebp - 0x80]
movd mm2, dword [ebp - 0x90]
punpckldq mm2, dword [ebp - 0x78]
movd mm3, dword [ebp - 0x58]
punpckldq mm3, dword [ebp - 0x58]
movd mm4, dword [ebp - 0x18]
punpckldq mm4, dword [ebp - 0x18]
movd mm5, dword [ebp - 0x98]
punpckldq mm5, dword [ebp - 0x88]
pmullw mm4, mm1
pmullw mm3, mm2
paddd mm5, mm4
paddd mm5, mm3
xor eax, eax
pslld mm2, 4
mov ecx, dword [ebp - 0x40]
add ecx, 0xf
sub ecx, dword [ebp - 0x58]
shr ecx, 4
cmp dword [ebp - 0x80], 1
jne 0x41141d
movq mm0, mm5
movd dword [ebp - 0x70], mm0
psrlq mm0, 0x20
movd dword [ebp - 0x68], mm0
mov esi, dword [ebp - 0x68]
mov edi, dword [ebp - 0x70]
movzx ebx, byte [ebp - 0x80]
shl ebx, 4
mov edx, 0x40
movzx eax, byte [esi]
shl eax, 2
add eax, dword [ebp - 0x38]
mov eax, dword [eax]
mov dword [edi], eax
add esi, ebx
add edi, edx
loop 0x411408
jmp 0x411433
movq mm1, mm5
movd edi, mm1
psrlq mm1, 0x20
movd esi, mm1
mov eax, dword [esi]
mov dword [edi], eax
paddd mm5, mm2
loop 0x41141d
lea edi, [ebp - 0x34]
add edi, dword [ebp - 0x24]
inc byte [edi]
cmp byte [edi], 0x10
jl 0x411460
xor al, al
stosb byte es:[edi], al
pxor mm1, mm1
mov ebx, dword [ebp - 0x24]
shl ebx, 4
lea edi, [ebp - 0x1a8]
add edi, ebx
movq qword [edi], mm1
add edi, 8
movq qword [edi], mm1
emms
popal
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
inc eax
cmp eax, ecx
mov dword [ebp - 0x18], eax
jl 0x411327
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
cmp edi, edx
je 0x411509
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x5c]
mov ebx, eax
add edx, ecx
add ebx, dword [esi + 0x70]
add ecx, edi
push ebx
push edx
push eax
lea eax, [ebp - 0xa8]
push ecx
push eax
call dword [0x48354c]
mov ecx, dword [esi + 0x5c]
mov ebx, dword [esi + 0x38]
mov edx, dword [esi + 0x60]
mov eax, dword [esi + 0x3c]
sub ecx, ebx
sub edx, eax
add ecx, edi
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], edx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0xa8]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00415c30
mov ecx, dword [esi + 0x5c]
mov ebx, dword [esi + 0x38]
mov eax, dword [esi + 0x60]
mov edx, dword [esi + 0x3c]
sub ecx, ebx
mov ebx, eax
sub ebx, edx
sub eax, edx
add ebx, dword [esi + 0x70]
push ebx
mov ebx, dword [ebp - 4]
add ebx, ecx
add ecx, edi
push ebx
push eax
lea eax, [ebp - 0xa8]
push ecx
push eax
call dword [0x48354c]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 0x6c]
cdq
add ecx, 0x20
idiv ecx
mov edx, dword [ebp - 0x20]
mov edi, eax
add edi, edx
call dword [0x48359c]
cmp eax, edi
jae 0x411530
call dword [0x48359c]
cmp eax, edi
jb 0x411526
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x10]
mov eax, dword [esi + 0x6c]
inc ebx
add edi, edx
cmp ebx, eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
jl 0x4112d1
mov ecx, dword [esi + 0x40]
lea eax, [esi + 0x4c]
push 0
lea edi, [esi + 0x5c]
mov edx, dword [esi + ecx*4 + 0x80]
push eax
push edx
push edi
mov ecx, esi
call fcn.00415d70
mov ecx, eax
call fcn.0040af00
mov ecx, dword [edi]
mov edi, dword [esi + 0x38]
mov eax, dword [esi + 0x60]
mov edx, dword [esi + 0x3c]
sub ecx, edi
mov edi, dword [esi + 0x70]
sub eax, edx
mov edx, dword [esi + 0x6c]
mov dword [ebp - 0x4c], eax
add eax, edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], ecx
add edx, ecx
mov ecx, dword [0x4ccd64]
push 0
push eax
mov dword [ebp - 0x48], edx
call fcn.00448090
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc