Function at 0x4115b0
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 + 0x6c]
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 + 0x70]
mov ebx, 0xfffffff0
cmp eax, ebx
mov dword [ebp - 0x10], ebx
jle 0x411869
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41165f
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 0x41165a
mov dword [ebp - 4], eax
jmp 0x411680
mov dword [ebp - 4], ecx
jmp 0x411680
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 0x41167d
mov dword [ebp - 4], ecx
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], edi
cmp edi, eax
jge 0x4117a8
mov esi, dword [ebp - 0xc]
and esi, 0x8000000f
jns 0x41169e
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 0x4116ed
inc ecx
mov esi, edi
add esi, ecx
cmp byte [esi], 0
jne 0x4116d8
inc ebx
cmp ebx, dword [ebp - 0x3c]
jb 0x4116d8
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 - 0x18]
add ebx, eax
mov eax, dword [ebp - 0x18]
shl eax, 2
add ecx, eax
mov eax, dword [ebp - 0xc]
mul dword [ebp - 0x2c]
add ebx, eax
mov eax, dword [ebp - 0xc]
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]
movzx ebx, byte [ebp - 0x48]
shl ebx, 4
mov edx, 0x40
mov ecx, dword [ebp - 0x24]
add ecx, 0xf
sub ecx, dword [ebp - 0x18]
shr ecx, 4
cmp dword [ebp - 0x48], 1
jne 0x411759
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 0x411744
jmp 0x411763
mov eax, dword [esi]
mov dword [edi], eax
add esi, ebx
add edi, edx
loop 0x411759
lea edi, [ebp - 0x5c]
add edi, dword [ebp - 0x44]
inc byte [edi]
cmp byte [edi], 0x10
jl 0x41178c
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 0x411789
popal
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
inc eax
cmp eax, ecx
mov dword [ebp - 0xc], eax
jl 0x41168e
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
cmp edi, edx
je 0x411828
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x5c]
add edx, eax
mov dword [ebp - 0x84], ecx
lea ebx, [eax + edi]
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x80], 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 - 0x7c], ebx
mov ebx, dword [esi + 0x3c]
sub eax, ebx
mov dword [ebp - 0x74], ecx
add eax, edi
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x74]
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 - 0x84]
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 - 0x38]
mov edi, eax
add edi, edx
call dword [0x48359c]
cmp eax, edi
jae 0x41184f
call dword [0x48359c]
cmp eax, edi
jb 0x411845
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 0x411638
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 - 0x6c], eax
add eax, edi
mov dword [ebp - 0x64], eax
mov eax, dword [esi + 0x70]
sub ecx, ebx
push 0
mov dword [ebp - 0x68], ecx
add eax, ecx
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x60], eax
push ecx
mov ecx, dword [0x4ccd64]
call fcn.00448090
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc