Function at 0x411e80
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [ecx + 0x40]
mov dword [ebp - 0x3c], ecx
push ebx
push esi
mov edx, dword [ecx + eax*4 + 0x80]
push edi
mov eax, dword [edx + 0xc]
xor edx, edx
mov dl, byte [ecx + 0x7c]
add eax, 0x28
mov dword [ebp - 8], eax
mov eax, dword [ecx + 0x74]
mov dword [ebp - 0x10], edx
mov edx, dword [ecx + 0x78]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0x64]
mov dword [ebp - 0x24], edx
mov edx, dword [ecx + 0x68]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x6c]
mov ecx, dword [ecx + 0x70]
mov dword [ebp - 0x20], edx
cmp eax, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
jg 0x411ed1
mov eax, ecx
dec eax
mov ecx, 1
cmp eax, ecx
jle 0x411ee6
cdq
sub eax, edx
inc ecx
sar eax, 1
cmp eax, 1
jg 0x411edb
mov eax, dword [ebp + 0xc]
mov esi, 1
cdq
idiv ecx
test ecx, ecx
mov dword [ebp + 0xc], esi
mov dword [ebp - 0x40], eax
jle 0x411f03
add esi, esi
dec ecx
jne 0x411efb
mov dword [ebp + 0xc], esi
mov dword [ebp - 4], 0
call dword [0x48359c]
cmp esi, 1
mov dword [ebp - 0x44], eax
jle 0x4120ab
mov ecx, dword [0x4cc9f8]
call fcn.0044cd40
test al, al
jne 0x4120ab
pushal
and dword [ebp - 0x38], 0
and dword [ebp - 0x34], 0
jmp 0x412002
mov eax, dword [ebp - 0x24]
mul dword [ebp - 0x38]
mov edi, dword [ebp - 0x20]
add edi, eax
mov dword [ebp - 0x30], edi
and dword [ebp - 0x2c], 0
and dword [ebp - 0x28], 0
jmp 0x411fc3
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
cmp dword [ebp + 0x10], 0
je 0x411f84
mov ebx, dword [ebp + 0xc]
shr ebx, 1
mov ecx, ebx
add ebx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x38]
inc ebx
inc ecx
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jge 0x411f79
mov ebx, eax
mov eax, dword [ebp - 0x18]
cmp eax, ecx
jge 0x411f82
mov ecx, eax
dec ebx
dec ecx
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mul ebx
add esi, eax
mov eax, dword [ebp - 0xc]
mul ecx
add esi, eax
cmp dword [ebp - 0x10], 1
jne 0x411fa6
mov esi, dword [ebp - 8]
movzx eax, byte [esi]
shl eax, 2
add esi, eax
lodsd eax, dword [esi]
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x1c]
jle 0x411fb5
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x2c]
rep stosd dword es:[edi], eax
inc dword [ebp - 0x28]
mov eax, dword [ebp + 0xc]
add dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x1c]
jl 0x411f55
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 0x18]
jle 0x411fd9
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x30]
add edi, dword [ebp - 0x24]
jmp 0x411ff7
mov esi, dword [ebp - 0x30]
mov edx, ecx
mov ebx, edi
mov ecx, dword [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edi, ebx
add edi, dword [ebp - 0x24]
loop 0x411fe4
inc dword [ebp - 0x34]
mov eax, dword [ebp + 0xc]
add dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x18]
jl 0x411f3d
shr dword [ebp + 0xc], 1
inc dword [ebp - 4]
popal
mov esi, dword [ebp - 0x3c]
mov edi, dword [esi + 0x70]
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x6c]
mov eax, dword [esi + 0x5c]
add edi, ecx
add edx, eax
mov dword [ebp - 0x50], edi
mov edi, dword [esi + 0x38]
mov dword [ebp - 0x54], edx
mov edx, dword [esi + 0x3c]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ecx
sub eax, edi
sub ecx, edx
mov dword [ebp - 0x4c], eax
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x5c]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00415c30
mov edx, dword [esi + 0x3c]
mov ebx, dword [esi + 0x70]
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x5c]
mov edi, dword [esi + 0x38]
sub ebx, edx
add ebx, eax
sub eax, edx
push ebx
mov ebx, ecx
sub ebx, edi
sub ecx, edi
add ebx, dword [esi + 0x6c]
lea edx, [ebp - 0x5c]
push ebx
push eax
push ecx
push edx
call dword [0x48354c]
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 0x44]
imul esi, dword [ebp - 0x40]
mov edi, dword [0x48359c]
add esi, edx
call edi
cmp eax, esi
jae 0x4120a1
call edi
cmp eax, esi
jb 0x41209b
cmp dword [ebp + 0xc], 1
jg 0x411f1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc