Function at 0x411c40
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 0x411c91
mov eax, ecx
dec eax
mov ecx, 1
cmp eax, ecx
jle 0x411ca6
cdq
sub eax, edx
inc ecx
sar eax, 1
cmp eax, 1
jg 0x411c9b
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 0x411cc3
add esi, esi
dec ecx
jne 0x411cbb
mov dword [ebp + 0xc], esi
mov dword [ebp - 4], 0
call dword [0x48359c]
cmp esi, 1
mov dword [ebp - 0x44], eax
jle 0x411e69
mov ecx, dword [0x4cc9f8]
call fcn.0044cd40
test al, al
jne 0x411e69
pushal
and dword [ebp - 0x38], 0
and dword [ebp - 0x34], 0
jmp 0x411dc0
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 0x411d81
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
cmp dword [ebp + 0x10], 0
je 0x411d42
mov ebx, dword [ebp + 0xc]
shr ebx, 1
mov ecx, ebx
add ebx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
dec eax
cmp eax, ebx
jge 0x411d38
mov ebx, eax
mov eax, dword [ebp - 0x18]
dec eax
cmp eax, ecx
jge 0x411d42
mov ecx, eax
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 0x411d64
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 0x411d73
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 0x411d15
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 0x18]
jle 0x411d97
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x30]
add edi, dword [ebp - 0x24]
jmp 0x411db5
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 0x411da2
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 0x411cfd
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 0x411e5f
call edi
cmp eax, esi
jb 0x411e59
cmp dword [ebp + 0xc], 1
jg 0x411cdc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc