Function at 0x4118d0
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
push ebx
push esi
mov esi, ecx
push edi
lea edi, [ebp - 0x19c]
mov dword [ebp - 0x18], 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 - 0x9c], eax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x84], eax
xor eax, eax
add edx, 0x28
mov dword [ebp - 0x40], ecx
mov ecx, dword [esi + 0x68]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov edx, dword [esi + 0x78]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x20], edx
mov edx, dword [esi + 0x6c]
mov dword [ebp - 0x28], eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x24], eax
call dword [0x48359c]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x70]
mov ebx, 0xfffffff0
cmp eax, ebx
mov dword [ebp - 0x10], ebx
jle 0x411bd2
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x411988
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 0x411983
mov dword [ebp - 4], eax
jmp 0x4119a9
mov dword [ebp - 4], ecx
jmp 0x4119a9
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 0x4119a6
mov dword [ebp - 4], ecx
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], edi
cmp edi, eax
jge 0x411b1a
mov esi, dword [ebp - 0xc]
and esi, 0x8000000f
jns 0x4119c7
dec esi
or esi, 0xfffffff0
inc esi
mov dword [ebp - 0x1c], esi
call fcn.0046bf67
xor ecx, ecx
mov dword [ebp - 0x74], 0
mov cl, byte [ebp + esi - 0x30]
mov esi, 0x10
cdq
sub esi, ecx
idiv esi
mov dword [ebp - 0x38], edx
pushal
xor ebx, ebx
xor ecx, ecx
dec ecx
lea edi, [ebp - 0x19c]
mov eax, dword [ebp - 0x1c]
mov edx, 0x10
mul edx
add edi, eax
cmp ecx, 0x10
jge 0x411a16
inc ecx
mov esi, edi
add esi, ecx
cmp byte [esi], 0
jne 0x411a01
inc ebx
cmp ebx, dword [ebp - 0x38]
jb 0x411a01
mov byte [esi], 1
mov dword [ebp - 0x74], ecx
xor eax, eax
mov eax, 4
movd mm1, eax
punpckldq mm1, dword [ebp - 0x9c]
mov eax, dword [ebp - 0x40]
mul dword [ebp - 0xc]
movd mm2, eax
mov eax, dword [ebp - 0x20]
mul dword [ebp - 0xc]
movd mm3, eax
punpckldq mm3, mm2
movd mm4, dword [ebp - 0x74]
punpckldq mm4, dword [ebp - 0x74]
movd mm5, dword [ebp - 0x8c]
punpckldq mm5, dword [ebp - 0x84]
pmullw mm4, mm1
paddd mm5, mm3
paddd mm5, mm4
mov ecx, dword [ebp - 0x44]
add ecx, 0xf
sub ecx, dword [ebp - 0x74]
shr ecx, 4
cmp dword [ebp - 0x9c], 1
jne 0x411ab5
movq mm0, mm5
movd dword [ebp - 0x7c], mm0
psrlq mm0, 0x20
movd dword [ebp - 0x94], mm0
mov esi, dword [ebp - 0x94]
mov edi, dword [ebp - 0x7c]
movzx ebx, byte [ebp - 0x9c]
shl ebx, 4
mov edx, 0x40
movzx eax, byte [esi]
shl eax, 2
add eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov dword [edi], eax
add esi, ebx
add edi, edx
loop 0x411aa0
jmp 0x411acf
pslld mm1, 4
movq mm0, mm5
movd edi, mm0
psrlq mm0, 0x20
movd esi, mm0
mov eax, dword [esi]
mov dword [edi], eax
paddd mm5, mm1
loop 0x411ab9
lea edi, [ebp - 0x30]
add edi, dword [ebp - 0x1c]
inc byte [edi]
cmp byte [edi], 0x10
jl 0x411afc
xor al, al
stosb byte es:[edi], al
pxor mm1, mm1
mov ebx, dword [ebp - 0x1c]
shl ebx, 4
lea edi, [ebp - 0x19c]
add edi, ebx
movq qword [edi], mm1
add edi, 8
movq qword [edi], mm1
emms
popal
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
inc eax
cmp eax, ecx
mov dword [ebp - 0xc], eax
jl 0x4119b7
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
cmp edi, edx
je 0x411b91
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x5c]
add edx, eax
mov dword [ebp - 0x6c], ecx
lea ebx, [eax + edi]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x68], ebx
mov ebx, ecx
add ebx, dword [esi + 0x6c]
mov edx, dword [esi + 0x38]
sub ecx, edx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x64], ebx
mov ebx, dword [esi + 0x3c]
sub eax, ebx
mov dword [ebp - 0x5c], ecx
add eax, edi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x5c]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00415c30
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x3c]
mov ebx, dword [ebp - 4]
mov edx, dword [esi + 0x38]
sub eax, ecx
mov ecx, dword [esi + 0x5c]
add ebx, eax
add eax, edi
push ebx
mov ebx, ecx
sub ebx, edx
sub ecx, edx
add ebx, dword [esi + 0x6c]
push ebx
push eax
lea eax, [ebp - 0x6c]
push ecx
push eax
call dword [0x48354c]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x70]
cdq
add ecx, 0x20
idiv ecx
mov edx, dword [ebp - 0x3c]
mov edi, eax
add edi, edx
call dword [0x48359c]
cmp eax, edi
jae 0x411bb8
call dword [0x48359c]
cmp eax, edi
jb 0x411bae
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x14]
mov eax, dword [esi + 0x70]
inc ebx
add edi, edx
cmp ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edi
jl 0x411961
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 eax, dword [edi]
mov ecx, dword [esi + 0x38]
mov edi, dword [esi + 0x6c]
mov ebx, dword [esi + 0x3c]
sub eax, ecx
mov ecx, dword [esi + 0x60]
mov dword [ebp - 0x54], eax
add eax, edi
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0x70]
sub ecx, ebx
push 0
mov dword [ebp - 0x50], ecx
add eax, ecx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x48], eax
push ecx
mov ecx, dword [0x4ccd64]
call fcn.00448090
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc