Function at 0x4608eb
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x30], ecx
push 0x10
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004fa910
add esp, 0xc
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0x10], 1
je 0x460943
mov ecx, dword [ebp - 0x30]
call fcn.00468b98
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x10], 0x18
jne 0x46092f
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.00469e26
jmp 0x460939
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x30]
call fcn.00463689
mov eax, 1
jmp 0x460ae0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 8]
add edx, 7
sar edx, 3
mov word [ebp - 0x24], dx
mov eax, dword [ebp - 0x30]
mov cx, word [eax + 0xc]
mov word [ebp - 0x1c], cx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0xc]
add eax, 7
sar eax, 3
mov word [ebp - 0x2c], ax
mov ecx, dword [ebp - 0x30]
mov dx, word [ecx + 8]
mov word [ebp - 0x20], dx
mov eax, dword [ebp - 0x30]
mov cx, word [eax + 8]
mov word [ebp - 0x18], cx
mov edx, dword [ebp - 0x24]
and edx, 0xffff
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0xc]
sub ecx, 1
mov edx, dword [ebp - 0x24]
and edx, 0xffff
imul ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0xc]
add ecx, 7
sar ecx, 3
mov edx, dword [ebp - 0x30]
imul ecx, dword [edx + 8]
push ecx
push 2
call dword [fcn.0053c3b8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4609d9
call fcn.00428561
xor eax, eax
jmp 0x460ae0
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
push ecx
call dword [fcn.0053c3bc]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [fcn.0053c3bc]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 8], 0
je 0x460a02
cmp dword [ebp - 0x28], 0
jne 0x460a36
cmp dword [ebp - 8], 0
je 0x460a15
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
push ecx
call dword [fcn.0053c3b0]
cmp dword [ebp - 0x28], 0
je 0x460a25
mov edx, dword [ebp - 0xc]
push edx
call dword [fcn.0053c3b0]
mov eax, dword [ebp - 0xc]
push eax
call dword [fcn.0053c3b4]
xor eax, eax
jmp 0x460ae0
pushaw
xor ecx, ecx
xor edx, edx
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 8]
add esi, dword [ebp - 0x10]
mov cx, 8
cmp word [ebp - 0x18], cx
ja 0x460a53
mov cx, word [ebp - 0x18]
sub word [ebp - 0x18], cx
push esi
mov bx, word [ebp - 0x1c]
mov dx, 8
cmp bx, dx
ja 0x460a68
mov dx, bx
sub bx, dx
xor al, al
mov ah, byte [esi]
rcr ah, cl
rcl al, 1
sub esi, dword [ebp - 4]
dec dx
jne 0x460a6d
stosb byte es:[edi], al
cmp bx, 0
jne 0x460a5c
dec cl
pop esi
jne 0x460a57
inc esi
cmp word [ebp - 0x18], 0
jne 0x460a45
popaw
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 4]
push edx
call dword [fcn.0053c3b0]
mov eax, dword [ebp - 0xc]
push eax
call dword [fcn.0053c3b0]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 4]
push edx
call dword [fcn.0053c3b4]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0xc]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4