Function at 0xcd498d
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax + 0x14]
mov dword [ebp - 0x20], eax
push 4
pop eax
imul eax, eax, 0xffffffff
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x24], eax
call fcn.00cd443d
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
and dword [ebp - 8], 0
jmp 0xcd49d3
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0xc]
jae 0xcd4b59
mov eax, dword [ebp - 8]
imul eax, eax, 0x14
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax]
jl 0xcd4a06
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax + 4]
jle 0xcd4a08
jmp 0xcd49cc
and dword [ebp - 0xc], 0
jmp 0xcd4a15
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 0xc]
jge 0xcd4b54
mov eax, dword [ebp - 0xc]
shl eax, 4
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0x10]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x18], 0
je 0xcd4a67
push dword [ebp - 0x10]
push dword [ebp + 0x18]
call fcn.00cd4ddd
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0xcd4a51
jmp 0xcd4a0e
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x20]
call fcn.00cd4cc7
add esp, 0x10
jmp 0xcd4a72
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0xcd4a72
jmp 0xcd4a0e
pushaw
push 0
push dword [ebp + 8]
push 0
push dword [ebp + 0xc]
call dword [0xd1b168]
popaw
mov eax, dword [ebp - 4]
push dword [eax]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00cd4750
add esp, 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
inc eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov dword [ebp - 0x40], 0xcd3fb3
call fcn.00d15cf0
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
inc eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x44]
push eax
call fcn.00cd4ec5
pop ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x38], ecx
mov eax, dword [ebp + 0xc]
add eax, 0xc
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0xc]
call fcn.00cd4ba0
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0x38], ecx
lea eax, [ebp - 0x44]
push eax
call fcn.00cd4ea8
pop ecx
push 4
pop eax
imul eax, eax, 0xffffffff
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x24]
mov dword [ecx + eax], edx
cmp dword [ebp + 0x18], 0
je 0xcd4b44
mov eax, dword [ebp + 0x18]
cmp dword [eax + 4], 0
je 0xcd4b44
push dword [ebp - 0x20]
mov eax, dword [ebp + 0x18]
push dword [eax + 4]
call fcn.00cd4b74
pop ecx
pop ecx
push dword [ebp - 0x28]
push dword [ebp + 0xc]
call fcn.00cd4cb2
jmp 0xcd4a0e
jmp 0xcd49cc
pop edi
pop esi
pop ebx
leave
ret