Function at 0x410f10
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push ebx
push esi
mov esi, ecx
push edi
lea edi, [ebp - 0x184]
mov dword [ebp - 0x30], 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 - 0x48], eax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x40], eax
xor eax, eax
add edx, 0x28
mov dword [ebp - 0x2c], ecx
mov ecx, dword [esi + 0x68]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x34], edx
mov edx, dword [esi + 0x78]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x4c], edx
mov edx, dword [esi + 0x70]
mov dword [ebp - 0x54], eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x50], eax
call dword [0x48359c]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x6c]
mov ebx, 0xfffffff0
cmp eax, ebx
mov dword [ebp - 0x10], ebx
jle 0x4111d4
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x410fbf
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 0x410fba
mov dword [ebp - 4], eax
jmp 0x410fe0
mov dword [ebp - 4], ecx
jmp 0x410fe0
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 0x410fdd
mov dword [ebp - 4], ecx
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], edi
cmp edi, eax
jge 0x411108
mov esi, dword [ebp - 0xc]
and esi, 0x8000000f
jns 0x410ffe
dec esi
or esi, 0xfffffff0
inc esi
mov dword [ebp - 0x44], esi
call fcn.0046bf67
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov cl, byte [ebp + esi - 0x5c]
mov esi, 0x10
cdq
sub esi, ecx
idiv esi
mov dword [ebp - 0x3c], edx
pushal
xor ebx, ebx
xor ecx, ecx
dec ecx
lea edi, [ebp - 0x184]
mov eax, dword [ebp - 0x44]
mov edx, 0x10
mul edx
add edi, eax
cmp ecx, 0x10
jge 0x41104d
inc ecx
mov esi, edi
add esi, ecx
cmp byte [esi], 0
jne 0x411038
inc ebx
cmp ebx, dword [ebp - 0x3c]
jb 0x411038
mov byte [esi], 1
mov dword [ebp - 0x18], ecx
mov ebx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x1c]
movzx eax, byte [ebp - 0x48]
mul dword [ebp - 0xc]
add ebx, eax
mov eax, dword [ebp - 0xc]
shl eax, 2
add ecx, eax
mov eax, dword [ebp - 0x18]
mul dword [ebp - 0x2c]
add ebx, eax
mov eax, dword [ebp - 0x18]
mul dword [ebp - 0x4c]
add ecx, eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ecx
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x2c]
shl ebx, 4
mov edx, dword [ebp - 0x4c]
shl edx, 4
mov ecx, dword [ebp - 0x24]
add ecx, 0xf
sub ecx, dword [ebp - 0x18]
shr ecx, 4
cmp dword [ebp - 0x48], 1
jne 0x4110b9
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 0x4110a4
jmp 0x4110c3
mov eax, dword [esi]
mov dword [edi], eax
add esi, ebx
add edi, edx
loop 0x4110b9
lea edi, [ebp - 0x5c]
add edi, dword [ebp - 0x44]
inc byte [edi]
cmp byte [edi], 0x10
jl 0x4110ec
xor al, al
stosb byte es:[edi], al
mov ebx, dword [ebp - 0x44]
shl ebx, 4
lea edi, [ebp - 0x184]
add edi, ebx
mov ecx, 0x10
stosb byte es:[edi], al
loop 0x4110e9
popal
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
inc eax
cmp eax, ecx
mov dword [ebp - 0xc], eax
jl 0x410fee
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
cmp edi, edx
je 0x411193
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 - 0x84]
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 - 0x74]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], edx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x84]
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 - 0x84]
push ecx
push eax
call dword [0x48354c]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x6c]
cdq
add ecx, 0x20
idiv ecx
mov edx, dword [ebp - 0x38]
mov edi, eax
add edi, edx
call dword [0x48359c]
cmp eax, edi
jae 0x4111ba
call dword [0x48359c]
cmp eax, edi
jb 0x4111b0
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x14]
mov eax, dword [esi + 0x6c]
inc ebx
add edi, edx
cmp ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edi
jl 0x410f98
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 eax, dword [esi + 0x38]
mov ebx, dword [esi + 0x3c]
sub ecx, eax
mov eax, dword [esi + 0x60]
mov edx, dword [esi + 0x70]
sub eax, ebx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], eax
mov eax, dword [esi + 0x6c]
add eax, ecx
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x64], eax
push 0
add eax, edx
push ecx
mov ecx, dword [0x4ccd64]
mov dword [ebp - 0x60], eax
call fcn.00448090
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc