Function at 0x410690
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e4
mov eax, dword [ecx + 0x40]
mov dword [ebp - 0x14], ecx
push ebx
push esi
mov edx, dword [ecx + eax*4 + 0x80]
push edi
lea edi, [ebp - 0xe4]
mov esi, 0x40
mov eax, dword [edx + 0xc]
xor edx, edx
mov dl, byte [ecx + 0x7c]
add eax, 0x28
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 0x74]
mov dword [ebp - 0x8c], edx
mov edx, dword [ecx + 0x78]
mov dword [ebp - 0x5c], eax
mov eax, dword [ecx + 0x64]
mov dword [ebp - 0x44], edx
mov edx, dword [ecx + 0x68]
mov dword [ebp - 0x3c], eax
mov eax, dword [ecx + 0x6c]
mov ecx, dword [ecx + 0x70]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x94], ecx
mov ecx, 0x10
xor eax, eax
mov dword [ebp - 0x34], edx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x1e4]
call fcn.0046bf67
cdq
idiv esi
add edi, 4
inc edx
dec esi
mov dword [edi - 4], edx
test esi, esi
jg 0x410701
mov edi, dword [0x48359c]
call edi
mov dword [ebp - 0x28], eax
xor eax, eax
lea edx, [ebp - 0x1e4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x410739
mov edi, dword [0x48359c]
mov eax, dword [ebp - 0x10]
cdq
and edx, 0x3f
add eax, edx
mov edx, dword [ebp - 0x28]
mov esi, eax
mov eax, dword [ebp - 0xc]
sar esi, 6
mov ecx, dword [eax]
add esi, edx
mov dword [ebp - 0x38], ecx
call edi
cmp eax, esi
jae 0x410760
call edi
cmp eax, esi
jb 0x41075a
pushal
xor ebx, ebx
xor ecx, ecx
dec ecx
lea edi, [ebp - 0xe4]
cmp ecx, 0x40
jge 0x410781
inc ecx
mov esi, edi
add esi, ecx
cmp byte [esi], 0
jne 0x41076c
inc ebx
cmp ebx, dword [ebp - 0x38]
jb 0x41076c
mov byte [esi], 1
mov eax, ecx
and eax, 7
sar ecx, 3
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x74], ecx
mov ebx, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x84]
cmp dword [ebp - 0x8c], 1
je 0x4107ad
shl ebx, 2
shl ecx, 2
mov eax, dword [ebp - 0x74]
mul dword [ebp - 0x5c]
add ebx, eax
mov eax, dword [ebp - 0x74]
mul dword [ebp - 0x44]
add ecx, eax
mov esi, dword [ebp - 0x3c]
add esi, ebx
mov dword [ebp - 0x64], esi
mov edi, dword [ebp - 0x34]
add edi, ecx
mov dword [ebp - 0x54], edi
movd mm1, dword [ebp - 0x94]
punpckldq mm1, dword [ebp - 0x9c]
movd mm2, dword [ebp - 0x74]
punpckldq mm2, dword [ebp - 0x84]
xor ah, ah
mov al, 7
movzx eax, ax
movd mm3, eax
punpckldq mm3, mm3
movd mm4, dword [ebp - 0x44]
punpckldq mm4, dword [ebp - 0x5c]
pslld mm4, 3
psubd mm1, mm2
paddd mm1, mm3
psrad mm1, 3
movd dword [ebp - 0x4c], mm1
psrlq mm1, 0x20
movd dword [ebp - 0x7c], mm1
movq mm2, mm1
movd mm3, dword [ebp - 0x8c]
psrlq mm3, 1
psllq mm1, 5
psllq mm2, 3
psllq mm2, mm3
punpckldq mm1, mm2
psubd mm4, mm1
movd dword [ebp - 0xa4], mm4
psrlq mm4, 0x20
movd dword [ebp - 0x6c], mm4
movd mm4, dword [ebp - 0x6c]
punpckldq mm4, dword [ebp - 0xa4]
movd mm5, dword [ebp - 0x64]
punpckldq mm5, dword [ebp - 0x54]
mov edx, dword [ebp - 0x4c]
cmp dword [ebp - 0x8c], 1
jne 0x41088b
mov ecx, dword [ebp - 0x7c]
movzx ebx, byte [esi]
shl ebx, 2
add ebx, dword [ebp - 0x30]
mov eax, dword [ebx]
mov dword [edi], eax
add esi, 8
add edi, 0x20
loop 0x410868
add edi, dword [ebp - 0xa4]
add esi, dword [ebp - 0x6c]
dec edx
jne 0x410865
jmp 0x4108b7
xor ah, ah
mov al, 0x20
movzx eax, ax
movd mm3, eax
punpckldq mm3, mm3
mov ecx, dword [ebp - 0x7c]
movq mm1, mm5
movd esi, mm1
psrlq mm1, 0x20
movd edi, mm1
mov eax, dword [esi]
mov dword [edi], eax
paddd mm5, mm3
loop 0x41089b
paddd mm5, mm4
dec edx
jne 0x410898
emms
popal
mov esi, dword [ebp - 0x14]
mov edx, dword [esi + 0x6c]
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x70]
mov ecx, dword [esi + 0x60]
mov ebx, dword [esi + 0x38]
add edx, eax
add edi, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], edi
mov edi, dword [esi + 0x3c]
mov edx, eax
mov eax, ecx
sub edx, ebx
mov dword [ebp - 0x20], ecx
sub eax, edi
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x24]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00415c30
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x38]
mov ebx, dword [esi + 0x6c]
sub ecx, edx
mov edx, dword [esi + 0x70]
sub eax, edi
add edx, ecx
mov dword [ebp - 8], eax
push edx
mov edx, eax
add edx, ebx
mov dword [ebp - 4], ecx
push edx
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call dword [0x48354c]
mov ecx, dword [0x4cc9f8]
call fcn.0044cd40
test al, al
jne 0x410966
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
inc eax
add esi, ecx
add edx, 4
cmp eax, 0x3f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], edx
jl 0x410733
mov esi, dword [ebp - 0x14]
mov edx, dword [esi + 0x6c]
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x70]
mov ecx, dword [esi + 0x60]
lea ebx, [esi + 0x5c]
add edx, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
add edi, ecx
mov ecx, dword [esi + 0x3c]
mov edx, eax
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x18], edi
mov edi, dword [esi + 0x38]
sub eax, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, ecx
sub edx, edi
shl eax, 6
sub eax, ecx
mov dword [ebp - 8], edx
cdq
and edx, 0x3f
add eax, edx
mov edx, dword [ebp - 0x28]
mov edi, eax
sar edi, 6
add edi, edx
call dword [0x48359c]
cmp eax, edi
jae 0x4109c8
call dword [0x48359c]
cmp eax, edi
jb 0x4109be
mov edx, dword [esi + 0x40]
lea ecx, [esi + 0x4c]
push 0
push ecx
mov eax, dword [esi + edx*4 + 0x80]
mov ecx, esi
push eax
push ebx
call fcn.00415d70
mov ecx, eax
call fcn.0040af00
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
lea edx, [ebp - 0x24]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00415c30
mov ecx, dword [esi + 0x70]
mov eax, dword [ebp - 4]
mov ebx, dword [esi + 0x6c]
add ecx, eax
push ecx
mov ecx, dword [ebp - 8]
mov edx, ecx
add edx, ebx
push edx
push eax
lea eax, [ebp - 0x24]
push ecx
push eax
call dword [0x48354c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8