Function at 0x460b49
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x10], 1
je 0x460b7a
mov ecx, dword [ebp - 0x34]
call fcn.00469109
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x34]
call fcn.00463689
mov eax, 1
jmp 0x460d27
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 8]
add edx, 7
sar edx, 3
mov word [ebp - 0x24], dx
mov eax, dword [ebp - 0x34]
mov cx, word [eax + 0xc]
mov word [ebp - 0x1c], cx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
add eax, 7
sar eax, 3
mov word [ebp - 0x30], ax
mov ecx, dword [ebp - 0x34]
mov dx, word [ecx + 8]
mov word [ebp - 0x20], dx
mov eax, dword [ebp - 0x34]
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]
and eax, 0xffff
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 8]
sub edx, 1
mov eax, dword [ebp - 0x30]
and eax, 0xffff
imul edx, eax
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0xc]
add edx, 7
sar edx, 3
mov eax, dword [ebp - 0x34]
imul edx, dword [eax + 8]
push edx
push 2
call dword [fcn.0053c3b8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x460c1a
call fcn.00428561
xor eax, eax
jmp 0x460d27
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 4]
push edx
call dword [fcn.0053c3bc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [fcn.0053c3bc]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 8], 0
je 0x460c43
cmp dword [ebp - 0x28], 0
jne 0x460c77
cmp dword [ebp - 8], 0
je 0x460c56
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 4]
push edx
call dword [fcn.0053c3b0]
cmp dword [ebp - 0x28], 0
je 0x460c66
mov eax, dword [ebp - 0xc]
push eax
call dword [fcn.0053c3b0]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [fcn.0053c3b4]
xor eax, eax
jmp 0x460d27
pushaw
xor ecx, ecx
xor edx, edx
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 8]
add edi, dword [ebp - 0x10]
mov cx, 8
cmp word [ebp - 0x18], cx
ja 0x460c94
mov cx, word [ebp - 0x18]
sub word [ebp - 0x18], cx
push esi
mov bx, word [ebp - 0x1c]
mov dx, 8
cmp bx, dx
ja 0x460ca9
mov dx, bx
sub bx, dx
xor al, al
mov ah, byte [esi]
rcr ah, cl
rcl al, 1
add esi, dword [ebp - 4]
dec dx
jne 0x460cae
stosb byte es:[edi], al
cmp bx, 0
jne 0x460c9d
sub edi, dword [ebp - 0x2c]
sub edi, dword [ebp - 0x2c]
dec cl
pop esi
jne 0x460c98
inc esi
cmp word [ebp - 0x18], 0
jne 0x460c86
popaw
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 4]
push eax
call dword [fcn.0053c3b0]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [fcn.0053c3b0]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 4]
push eax
call dword [fcn.0053c3b4]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xc]
mov dword [edx + 8], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0xc], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret