Function at 0x464380
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x94
mov eax, dword [esp + 0xe8]
push ebx
push ebp
xor ecx, ecx
push esi
push edi
mov edi, dword [esp + 0xfc]
and eax, 0xff
cmp edi, 6
mov dword [esp + 0x58], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x90], ecx
je 0x4643cf
cmp edi, 7
jne 0x4643d4
mov edi, 2
mov eax, dword [esp + 0xb4]
cmp eax, ecx
jge 0x4643e8
add dword [esp + 0xbc], eax
xor eax, eax
mov ebp, dword [esp + 0xb8]
cmp ebp, ecx
jge 0x4643fc
add dword [esp + 0xc0], ebp
xor ebp, ebp
mov edx, dword [esp + 0xcc]
cmp edx, ecx
jge 0x46440b
sub eax, edx
xor edx, edx
mov esi, dword [esp + 0xd0]
cmp esi, ecx
jge 0x46441a
sub ebp, esi
xor esi, esi
mov ecx, dword [esp + 0xbc]
lea ebx, [ecx + edx]
mov ecx, dword [esp + 0xd4]
cmp ebx, ecx
jle 0x464438
sub ecx, edx
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0xc0]
lea ebx, [ecx + esi]
mov ecx, dword [esp + 0xd8]
cmp ebx, ecx
jle 0x464458
sub ecx, esi
mov dword [esp + 0xc0], ecx
jmp 0x46445f
mov ecx, dword [esp + 0xc0]
mov ebx, dword [esp + 0xbc]
test ebx, ebx
jle 0x465f97
test ecx, ecx
jle 0x465f97
cmp dword [esp + 0xe8], 0
jle 0x465f97
cmp dword [esp + 0xec], 0
jle 0x465f97
mov ecx, dword [esp + 0xf8]
cmp ecx, 0x8000010
je 0x46450e
cmp ecx, 0x4000010
je 0x46450e
cmp ecx, 0x8000008
jne 0x4644d4
mov ecx, eax
and ecx, 3
lea ebx, [ecx + ebx + 3]
and ebx, 0xfffffffc
and eax, 0xfffffffc
and edx, 0xfffffffc
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x20], edx
jmp 0x46452f
cmp ecx, 0x800000c
jne 0x464520
mov ecx, eax
and eax, 0xfffffff8
mov dword [esp + 0x70], eax
mov eax, ebp
and ecx, 7
and eax, 1
add eax, dword [esp + 0xc0]
lea ebx, [ecx + ebx + 7]
and edx, 0xfffffff8
and ebx, 0xfffffff8
and ebp, 0xfffffffe
mov dword [esp + 0x54], edx
mov dword [esp + 0x20], eax
and esi, 0xfffffffe
jmp 0x464533
mov ecx, eax
and ecx, 1
lea ebx, [ecx + ebx + 1]
and ebx, 0xfffffffe
and eax, 0xfffffffe
and edx, 0xfffffffe
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x54], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0xe8]
mov eax, dword [esp + 0xd4]
cmp ecx, eax
mov dword [esp + 0x68], esi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebx
jge 0x46455f
imul eax, ecx
cmp eax, 0x7ffff7f
ja 0x465663
mov eax, dword [esp + 0xec]
mov esi, dword [esp + 0xd8]
cmp eax, esi
jge 0x464582
mov edx, esi
imul edx, eax
cmp edx, 0x7ffff7f
ja 0x46566a
test edi, edi
je 0x46566a
cmp ecx, 2
jl 0x46566a
cmp eax, 2
jl 0x46566a
mov ecx, dword [esp + 0xec]
mov eax, edi
call fcn.00461860
mov ecx, dword [esp + 0x34]
mov esi, eax
mov eax, ebx
imul eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
add esi, 1
cmp ecx, 0x18
mov dword [esp + 0x10], eax
jne 0x4645d0
lea eax, [ebx + ebx*2 + 3]
jmp 0x4645f4
cmp ecx, 0x20
jne 0x4645de
lea eax, [ebx*4]
jmp 0x4645f4
cmp ecx, 8
je 0x4645f2
cmp ecx, 0xc
je 0x4645f2
cmp ecx, 0x10
jne 0x4645f4
lea eax, [ebx + ebx]
jmp 0x4645f4
mov eax, ebx
add eax, 0xf
and eax, 0xfffffff0
mov dword [esp + 0x14], eax
imul eax, esi
push 0x40
push eax
call fcn.004799a9
add esp, 8
test eax, eax
mov dword [esp + 0x7c], eax
je 0x46463b
lea eax, [esi*4]
push 0x40
push eax
call fcn.004799a9
add esp, 8
test eax, eax
mov dword [esp + 0x50], eax
jne 0x46464d
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00479994
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x94
ret 0x60
mov edx, dword [esp + 0x7c]
xor ecx, ecx
test esi, esi
jle 0x46466e
jmp 0x464660
mov dword [eax + ecx*4], edx
add edx, dword [esp + 0x14]
add ecx, 1
cmp ecx, esi
jl 0x464660
push 0x4a13f0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x4a1420], 0
jne 0x46482d
mov eax, dword [esp + 0xfc]
cmp dword [0x4a141c], eax
mov byte [0x4a1420], 1
mov byte [esp + 0x67], 1
jne 0x46473e
mov edx, dword [esp + 0xd4]
cmp edx, dword [0x4a1418]
jne 0x46473e
mov ecx, dword [esp + 0xd8]
cmp ecx, dword [0x4a1414]
mov esi, dword [esp + 0xe8]
jne 0x464745
cmp esi, dword [0x4a1410]
jne 0x464745
mov edx, dword [esp + 0xec]
cmp edx, dword [0x4a140c]
jne 0x464745
mov ecx, dword [esp + 0xf8]
cmp ecx, dword [0x4a1408]
jne 0x464745
mov edx, dword [0x4a13ec]
mov eax, dword [0x4a13e8]
mov ecx, dword [0x4a13e4]
mov dword [esp + 0x44], edx
mov edx, dword [0x4a13e0]
mov dword [esp + 0x6c], eax
mov eax, dword [0x4a13dc]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x4a13d8]
mov dword [esp + 0x88], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x90], ecx
mov byte [esp + 0x3b], 0
jmp 0x46483e
mov esi, dword [esp + 0xe8]
mov edx, dword [esp + 0xd4]
mov ecx, dword [esp + 0xd8]
mov dword [0x4a141c], eax
mov eax, dword [esp + 0xf8]
mov dword [0x4a1408], eax
mov eax, dword [0x4a13ec]
test eax, eax
mov dword [0x4a1418], edx
mov edx, dword [esp + 0xec]
mov dword [0x4a1414], ecx
mov dword [0x4a1410], esi
mov dword [0x4a140c], edx
je 0x46479f
push eax
call fcn.00479994
add esp, 4
mov dword [0x4a13ec], 0
mov eax, dword [0x4a13e8]
test eax, eax
je 0x4647bb
push eax
call fcn.00479994
add esp, 4
mov dword [0x4a13e8], 0
mov eax, dword [0x4a13e4]
test eax, eax
je 0x4647d7
push eax
call fcn.00479994
add esp, 4
mov dword [0x4a13e4], 0
mov eax, dword [0x4a13e0]
test eax, eax
je 0x4647f3
push eax
call fcn.00479994
add esp, 4
mov dword [0x4a13e0], 0
mov eax, dword [0x4a13dc]
test eax, eax
je 0x46480f
push eax
call fcn.00479994
add esp, 4
mov dword [0x4a13dc], 0
mov eax, dword [0x4a13d8]
test eax, eax
je 0x464839
push eax
call fcn.00479994
add esp, 4
mov dword [0x4a13d8], 0
jmp 0x464839
mov esi, dword [esp + 0xe8]
mov byte [esp + 0x67], 0
mov byte [esp + 0x3b], 1
push 0x4a13f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x3b], 0
je 0x464b63
mov eax, dword [esp + 0xf8]
cmp eax, 0x4000018
je 0x464aad
cmp eax, 0x8000018
je 0x464aad
cmp eax, 0x4000020
je 0x464aad
cmp eax, 0x10000020
je 0x464aad
cmp eax, 0x8000008
jne 0x4648ec
lea ecx, [esi + esi + 0x24]
push 0x40
push ecx
call fcn.004799a9
mov edx, dword [esp + 0xdc]
push 0
push 1
push 1
push eax
push edi
push edx
push esi
mov dword [esp + 0x4c], eax
call fcn.004622d0
mov ecx, dword [esp + 0x110]
push 1
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x100]
push edi
push eax
push ecx
call fcn.004619e0
add esp, 0x34
cmp dword [esp + 0x28], 0
mov dword [esp + 0x2c], eax
je 0x464aee
cmp dword [esp + 0x44], 0
jmp 0x464ae5
cmp eax, 0x800000c
jne 0x4649af
lea edx, [esi + esi + 0x24]
push 0x40
push edx
call fcn.004799a9
push 0
push 1
push 1
push eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xec]
push edi
push eax
push esi
call fcn.004622d0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0xf8]
push 0
push 0
push 1
push ecx
push edi
push edx
push esi
mov dword [esp + 0x84], eax
call fcn.004622d0
mov esi, dword [esp + 0x12c]
add esp, 0x40
push 1
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xdc]
push edi
push eax
push esi
call fcn.004619e0
mov ecx, dword [esp + 0xe8]
push 0
push edi
push ecx
push esi
mov dword [esp + 0x4c], eax
call fcn.004619e0
add esp, 0x20
cmp dword [esp + 0x28], 0
mov dword [esp + 0x88], eax
je 0x464aee
cmp dword [esp + 0x44], 0
je 0x464aee
cmp dword [esp + 0x6c], 0
je 0x464aee
cmp dword [esp + 0x2c], 0
je 0x464aee
test eax, eax
jmp 0x464aec
cmp eax, 0x8000010
jne 0x464a69
lea edx, [esi + esi + 0x24]
push 0x40
push edx
call fcn.004799a9
mov dword [esp + 0x30], eax
lea eax, [esi*4 + 0x28]
push 0x40
push eax
call fcn.004799a9
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0xe4]
push 0
push 1
push 0
push ecx
push edi
push edx
push esi
mov dword [esp + 0xbc], eax
call fcn.004622d0
mov ecx, dword [esp + 0x100]
push 0
push 0
push 0
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xc8]
push eax
push edi
push ecx
push esi
call fcn.004622d0
mov edx, dword [esp + 0x120]
add esp, 0x48
push 1
mov esi, eax
mov eax, dword [esp + 0xf0]
push edi
push edx
push eax
mov dword [esp + 0x7c], esi
call fcn.004619e0
add esp, 0x10
cmp dword [esp + 0x28], 0
mov dword [esp + 0x2c], eax
je 0x464aee
cmp dword [esp + 0x90], 0
je 0x464aee
cmp dword [esp + 0x44], 0
je 0x464aee
jmp 0x464ae3
cmp eax, 0x4000010
jne 0x464aee
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xd4]
push 1
push 1
push 0
push ecx
push edi
push edx
push esi
call fcn.004622d0
mov ecx, dword [esp + 0x108]
push 1
mov esi, eax
mov eax, dword [esp + 0xf8]
push edi
push eax
push ecx
mov dword [esp + 0x70], esi
call fcn.004619e0
add esp, 0x2c
jmp 0x464adf
mov edx, dword [esp + 0xd4]
push 1
push edi
push edx
push esi
call fcn.004619e0
mov ecx, dword [esp + 0xfc]
push 1
mov esi, eax
mov eax, dword [esp + 0xec]
push edi
push eax
push ecx
mov dword [esp + 0x64], esi
call fcn.004619e0
add esp, 0x20
mov dword [esp + 0x2c], eax
test esi, esi
je 0x464aee
cmp dword [esp + 0x2c], 0
jne 0x464b63
mov dword [esp + 0x58], 0xfffffffd
cmp byte [esp + 0x67], 0
je 0x465e96
push 0x4a13f0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x2c]
mov dword [0x4a13ec], eax
mov eax, dword [esp + 0x88]
mov dword [0x4a13e8], ecx
mov ecx, dword [esp + 0x28]
mov dword [0x4a13e4], edx
mov edx, dword [esp + 0x90]
push 0x4a13f0
mov dword [0x4a13e0], eax
mov dword [0x4a13dc], ecx
mov dword [0x4a13d8], edx
mov byte [0x4a1420], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x465f02
mov eax, dword [esp + 0x100]
xor edi, edi
cmp eax, edi
je 0x464b94
mov edx, dword [esp + 0x104]
mov ecx, dword [esp + 0xc0]
push edx
push ecx
push edi
call eax
test eax, eax
je 0x464b94
mov dword [esp + 0x58], 0x63
jmp 0x464af6
mov eax, dword [esp + 0xf8]
cmp eax, 0x800000c
jg 0x4650a8
je 0x464bd9
cmp eax, 0x4000020
jg 0x464bce
je 0x4650c3
sub eax, 0x4000010
je 0x4650c3
sub eax, 8
je 0x4650c3
jmp 0x464af6
cmp eax, 0x8000008
jne 0x464af6
mov al, byte [0x4a1460]
test al, 2
je 0x464bf7
mov dword [esp + 0x84], 0x466190
mov dword [esp + 0x3c], 0x466900
jmp 0x464c23
test al, 1
je 0x464c10
mov dword [esp + 0x84], 0x466420
mov dword [esp + 0x3c], 0x466900
jmp 0x464c23
mov dword [esp + 0x84], 0x463a50
mov dword [esp + 0x3c], 0x463c90
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x94], ebx
add ebx, 3
and ebx, 0xfffffffc
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x40]
lea ebx, [ebx]
mov edx, dword [esp + 0x1c]
test edx, edx
jne 0x464d61
mov edx, dword [esp + 0xdc]
mov eax, dword [esp + 0xc4]
mov ebp, dword [esp + 0x48]
mov ecx, dword [esp + 0xf0]
imul ebp, eax
mov edi, dword [esp + 0x44]
mov esi, dword [edi]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x98], ecx
mov ecx, dword [edx]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [esp + 0x2c]
lea ebx, [esi + 1]
imul eax, ebx
lea ebx, [edi + eax*8 + 8]
lea eax, [ecx + 1]
imul eax, dword [esp + 0x68]
lea eax, [edx + eax*4 + 4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x4c]
mov edi, dword [ebx]
sub edi, dword [esp + 0x28]
add eax, 1
add ebp, dword [esp + 0x70]
cdq
sub eax, edx
add ebp, dword [esp + 0xa8]
sar eax, 1
lea edx, [eax*8 - 8]
lea eax, [esi + 1]
imul edx, eax
mov eax, dword [edx + ebx + 4]
sub eax, dword [esp + 0x28]
shr edi, 1
shr eax, 1
lea eax, [eax + esi*2]
and edi, 0xfffffffc
cmp eax, dword [esp + 0xe8]
mov dword [esp + 0x78], ecx
jle 0x464d1a
mov eax, dword [esp + 0xe8]
add eax, 3
and eax, 0xfffffffc
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x94], eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0xd8]
mov dword [esp + 0x8c], eax
jle 0x464edc
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x8c], eax
jmp 0x464ee3
cmp edx, 1
jne 0x464e8f
cmp dword [esp + 0xf8], 0x8000008
je 0x464af6
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0xe0]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0xc8]
sar esi, 1
imul esi, ecx
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
add esi, dword [esp + 0xac]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0xf4]
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x98], edx
mov dword [esp + 0x24], ecx
mov ecx, dword [eax]
mov eax, dword [esp + 0x54]
cdq
sub eax, edx
sar eax, 1
add ebp, esi
mov esi, dword [ebx]
lea edi, [esi + 1]
imul eax, edi
lea ebx, [ebx + eax*4 + 8]
mov eax, dword [esp + 0x68]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [esp + 0x88]
lea edi, [ecx + 1]
imul edi, eax
lea eax, [edx + edi*4 + 4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x4c]
add eax, 1
cdq
sub eax, edx
sar eax, 1
add eax, 3
and eax, 0xfffffffc
mov dword [esp + 0x94], eax
mov dword [esp + 0x60], eax
add eax, 1
cdq
sub eax, edx
sar eax, 1
lea edx, [eax*8 - 8]
mov edi, dword [ebx]
sub edi, dword [esp + 0x28]
lea eax, [esi + 1]
imul edx, eax
mov eax, dword [edx + ebx + 4]
sub eax, dword [esp + 0x28]
shr edi, 1
shr eax, 1
lea edx, [eax + esi*2]
mov eax, dword [esp + 0xe8]
add eax, 1
mov dword [esp + 0x18], edx
cdq
sub eax, edx
sar eax, 1
and edi, 0xfffffffc
cmp dword [esp + 0x18], eax
mov dword [esp + 0x78], ecx
jle 0x464e6c
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
add eax, 3
and eax, 0xfffffffc
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
add eax, 1
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x8c], eax
jmp 0x464ee3
cmp edx, 2
jne 0x464ee3
cmp dword [esp + 0xf8], 0x8000008
je 0x464af6
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x48]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x70]
sar esi, 1
imul esi, ecx
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
add esi, dword [esp + 0xb0]
jmp 0x464dad
mov eax, dword [esp + 0x8c]
xor edx, edx
cmp eax, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
jle 0x46508f
cmp dword [esp + 0x100], 0
je 0x464f27
mov eax, dword [esp + 0x104]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [esp + 0x10c]
test eax, eax
jne 0x464b87
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
mov dword [esp + 0x80], eax
add eax, ecx
mov dword [esp + 0x40], eax
sub eax, dword [esp + 0x10]
add edx, 4
test eax, eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x9c], eax
jle 0x46503a
cmp eax, ecx
jl 0x464f5c
mov eax, ecx
jmp 0x464fb9
mov edx, ecx
sub edx, eax
test edx, edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x5c], edx
jle 0x464fb9
mov ecx, dword [esp + 0x50]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
nop
mov edx, dword [esp + 0x50]
mov edx, dword [edx + eax*4]
mov ecx, dword [ecx]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x50]
mov dword [edx + eax*4], ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
mov dword [ecx], edx
add eax, 1
add ecx, 4
cmp eax, dword [esp + 0x5c]
mov dword [esp + 0x30], ecx
jl 0x464f80
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x80]
sub ecx, eax
add edx, ecx
imul edx, dword [esp + 0x98]
add edx, dword [esp + 0x74]
test eax, eax
mov dword [esp + 0x5c], edx
jle 0x465032
mov edx, dword [esp + 0x50]
lea ecx, [edx + ecx*4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], eax
jmp 0x464ff0
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x34]
push esi
push eax
mov eax, dword [edx]
push edi
push ecx
mov ecx, dword [esp + 0x70]
push ebx
push eax
push ecx
call dword [esp + 0xa4]
mov edx, dword [esp + 0xb8]
add dword [esp + 0x7c], edx
add dword [esp + 0x50], 4
add esp, 0x20
sub dword [esp + 0x10], 1
jne 0x464ff0
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push eax
push ebp
push ecx
call dword [esp + 0x50]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x8c]
add ebp, dword [esp + 0x38]
lea ecx, [edx + eax*4]
mov eax, dword [esp + 0x28]
add eax, 1
add esp, 0x14
cmp eax, dword [esp + 0x8c]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x14], eax
jl 0x464ef5
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x1c]
add edx, 1
cmp edx, 3
mov dword [esp + 0x1c], edx
jl 0x464c60
jmp 0x464af6
sub eax, 0x8000010
je 0x4653be
sub eax, 8
je 0x4650c3
sub eax, 0x8000008
jne 0x464af6
mov al, byte [0x4a1460]
test al, 2
mov ecx, dword [esp + 0x34]
jne 0x4650d4
test al, 1
je 0x4650fc
cmp ecx, 0x10
je 0x465173
cmp ecx, 0x18
mov dword [esp + 0x18], 0x4660b0
je 0x4650f2
mov dword [esp + 0x18], 0x465fd0
mov dword [esp + 0x48], 0x466900
jmp 0x465116
cmp ecx, 0x10
je 0x465173
cmp ecx, 0x18
jne 0x465169
mov dword [esp + 0x18], 0x463660
mov dword [esp + 0x48], 0x463c90
mov eax, dword [esp + 0x70]
imul ebp, dword [esp + 0xc4]
imul eax, ecx
mov esi, dword [esp + 0x2c]
mov ebx, dword [esi]
cdq
and edx, 7
add eax, edx
mov edx, dword [esp + 0x44]
sar eax, 3
add eax, dword [esp + 0xa8]
mov dword [esp + 0xa0], ebx
add ebp, eax
mov eax, dword [edx]
mov dword [esp + 0x5c], eax
add eax, 1
imul eax, dword [esp + 0x54]
cmp ecx, 0x10
mov dword [esp + 0x24], ebp
jne 0x465185
lea edx, [edx + eax*4 + 8]
mov dword [esp + 0x14], edx
jmp 0x46518d
mov dword [esp + 0x18], 0x463420
jmp 0x46510e
mov dword [esp + 0x18], 0x463d00
mov dword [esp + 0x48], 0x4641d0
jmp 0x465116
lea eax, [edx + eax*4 + 4]
mov dword [esp + 0x14], eax
lea edx, [ebx + 1]
imul edx, dword [esp + 0x68]
cmp ecx, 0x10
lea eax, [esi + edx*4 + 4]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x84], eax
je 0x4651ba
add eax, 3
and eax, 0xfffffffc
mov dword [esp + 0x84], eax
cmp dword [esp + 0x20], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x3c], edi
jle 0x464af6
mov esi, dword [esp + 0x50]
jmp 0x4651e0
mov eax, dword [esp + 0x100]
test eax, eax
je 0x465207
mov ecx, dword [esp + 0x104]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push ecx
call eax
test eax, eax
jne 0x464b87
mov ebp, dword [esp + 0x60]
mov edi, dword [ebp]
lea edx, [edi + ebx]
mov eax, edx
sub eax, dword [esp + 0x30]
add ebp, 4
test eax, eax
mov dword [esp + 0x9c], edi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x1c], edx
jle 0x465373
cmp eax, ebx
jl 0x465239
mov eax, ebx
jmp 0x46527a
mov ebp, ebx
sub ebp, eax
xor ecx, ecx
test ebp, ebp
mov dword [esp + 0x80], ebp
jle 0x46527a
mov edx, eax
sub edx, ebx
add edx, dword [esp + 0x10]
lea edx, [esi + edx*4]
mov ebp, dword [esi + ecx*4]
mov dword [esp + 0x40], ebp
mov ebp, dword [edx]
mov dword [esi + ecx*4], ebp
mov ebp, dword [esp + 0x40]
mov dword [edx], ebp
add ecx, 1
add edx, 4
cmp ecx, dword [esp + 0x80]
jl 0x465255
mov edx, dword [esp + 0x1c]
mov ecx, eax
and ecx, 1
mov ebp, ebx
sub ebp, eax
add edx, ecx
lea esi, [ecx + ebx]
add eax, ecx
cmp edx, dword [esp + 0xec]
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], edx
jle 0x4652a5
add eax, 0xffffffff
cdq
sub eax, edx
sar eax, 1
add eax, eax
lea esi, [edi + ebp]
imul esi, dword [esp + 0xf0]
add esi, dword [esp + 0xdc]
test eax, eax
mov dword [esp + 0x74], edi
mov dword [esp + 0x30], 0
jle 0x46532a
mov ecx, dword [esp + 0x50]
lea ebx, [eax - 1]
shr ebx, 1
add ebx, 1
lea edx, [ebx + ebx]
lea edi, [ecx + ebp*4]
mov dword [esp + 0x30], edx
lea ecx, [ecx]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [edi + 4]
push ecx
mov ecx, dword [edi]
push edx
mov edx, dword [esp + 0xfc]
push eax
push ecx
lea eax, [esi + edx]
push eax
push esi
call dword [esp + 0x34]
mov eax, dword [esp + 0x10c]
add eax, eax
add esp, 0x1c
add esi, eax
add edi, 8
sub ebx, 1
jne 0x4652e0
mov edi, dword [esp + 0x9c]
mov ebx, dword [esp + 0xa0]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0xec]
jle 0x465363
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x18]
add edx, ebp
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x60]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
push esi
push esi
call dword [esp + 0x34]
add esp, 0x1c
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x50]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x24]
sub edi, dword [esp + 0x74]
push edx
push ebx
push ebp
push eax
lea ecx, [esi + edi*4]
push ecx
call dword [esp + 0x5c]
mov eax, dword [esp + 0xd8]
add dword [esp + 0x38], eax
mov eax, dword [esp + 0x50]
add eax, 1
add esp, 0x14
cmp eax, dword [esp + 0x20]
lea edx, [ebp + ebx*4]
mov dword [esp + 0x60], edx
mov dword [esp + 0x3c], eax
jl 0x4651e0
jmp 0x464af6
mov al, byte [0x4a1460]
test al, 2
je 0x4653d9
mov dword [esp + 0x14], 0x466670
mov dword [esp + 0x3c], 0x466900
jmp 0x4653ff
test al, 1
je 0x4653ef
mov dword [esp + 0x14], 0x466540
mov dword [esp + 0x3c], 0x466900
jmp 0x4653ff
mov dword [esp + 0x14], 0x463850
mov dword [esp + 0x3c], 0x463c90
mov eax, dword [esp + 0x70]
imul ebp, dword [esp + 0xc4]
imul eax, dword [esp + 0x34]
cdq
mov ecx, dword [esp + 0x6c]
mov edi, dword [esp + 0x44]
and edx, 7
add eax, edx
mov edx, dword [ecx]
sar eax, 3
add eax, dword [esp + 0xa8]
mov dword [esp + 0x84], edx
add ebp, eax
mov eax, dword [esp + 0x2c]
mov esi, dword [eax]
mov eax, dword [esp + 0x54]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x30], ebp
mov ebp, dword [edi]
lea ecx, [ebp + 1]
mov edx, ecx
imul edx, eax
lea edx, [edi + edx*8 + 8]
mov edi, dword [esp + 0x84]
add edi, 1
imul edi, eax
mov eax, dword [esp + 0x6c]
lea eax, [eax + edi*8 + 8]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x60], eax
lea eax, [esi + 1]
imul eax, dword [esp + 0x68]
lea eax, [edi + eax*4 + 4]
mov edi, dword [edx]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
add eax, 3
and eax, 0xfffffffc
sub edi, dword [esp + 0x28]
mov dword [esp + 0x94], eax
mov dword [esp + 0x74], edx
lea eax, [ebx + 1]
cdq
sub eax, edx
sar eax, 1
lea edx, [eax*8 - 8]
mov eax, dword [esp + 0x74]
imul edx, ecx
mov ecx, dword [edx + eax + 4]
sub ecx, dword [esp + 0x28]
shr edi, 1
shr ecx, 1
lea eax, [ecx + ebp*2]
mov ecx, dword [esp + 0xe8]
and edi, 0xfffffffc
cmp eax, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], 0
jle 0x4654dd
mov eax, ecx
add eax, 3
and eax, 0xfffffffc
cmp dword [esp + 0x20], 0
mov dword [esp + 0xa0], eax
mov dword [esp + 0x5c], 0
jle 0x464af6
mov ebx, dword [esp + 0x24]
cmp dword [esp + 0x100], 0
je 0x46552c
mov edx, dword [esp + 0x104]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x5c]
push edx
push eax
push ecx
call dword [esp + 0x10c]
test eax, eax
jne 0x464b87
mov edx, dword [ebx]
lea ecx, [edx + esi]
mov dword [esp + 0x98], ecx
sub ecx, dword [esp + 0x10]
add ebx, 4
test ecx, ecx
mov dword [esp + 0x9c], edx
mov dword [esp + 0x24], ebx
jle 0x465620
cmp ecx, esi
jl 0x46555a
mov ecx, esi
jmp 0x465598
sub esi, ecx
xor eax, eax
test esi, esi
mov dword [esp + 0x80], esi
jle 0x465598
mov esi, dword [esp + 0x50]
lea edx, [esi + ecx*4]
mov ebx, dword [esi + eax*4]
mov dword [esp + 0x40], ebx
mov ebx, dword [edx]
mov dword [esi + eax*4], ebx
mov ebx, dword [esp + 0x40]
mov dword [edx], ebx
add eax, 1
add edx, 4
cmp eax, dword [esp + 0x80]
jl 0x465570
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x1c]
sub eax, ecx
lea esi, [edx + eax]
imul esi, dword [esp + 0xf0]
add esi, dword [esp + 0xdc]
test ecx, ecx
jle 0x46560d
mov edx, dword [esp + 0x50]
lea ebx, [edx + eax*4]
mov dword [esp + 0x10], ecx
nop
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0xa0]
push eax
mov eax, dword [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x30]
push ebp
push edx
mov edx, dword [esp + 0x70]
push edi
push eax
mov eax, dword [esp + 0x8c]
push ecx
mov ecx, dword [ebx]
push edx
push eax
push ecx
push esi
call dword [esp + 0x40]
add esi, dword [esp + 0x11c]
add esp, 0x2c
add ebx, 4
sub dword [esp + 0x10], 1
jne 0x4655c0
mov edx, dword [esp + 0x98]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x50]
push eax
push esi
push ebx
push ecx
push edx
call dword [esp + 0x50]
mov eax, dword [esp + 0xd8]
add dword [esp + 0x44], eax
mov eax, dword [esp + 0x70]
add eax, 1
add esp, 0x14
cmp eax, dword [esp + 0x20]
lea ebx, [ebx + esi*4]
mov dword [esp + 0x5c], eax
jl 0x465501
jmp 0x464af6
mov esi, dword [esp + 0xd8]
mov eax, dword [esp + 0x70]
imul eax, dword [esp + 0x34]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, dword [esp + 0xa8]
mov edi, ebp
imul edi, dword [esp + 0xc4]
add edi, eax
mov eax, ecx
shl eax, 0x10
cdq
idiv dword [esp + 0xd4]
mov dword [esp + 0x1c], edi
mov ebx, eax
mov eax, dword [esp + 0xec]
shl eax, 0x10
cdq
idiv esi
mov ecx, ebx
imul ecx, dword [esp + 0x54]
mov dword [esp + 0x7c], ebx
mov esi, eax
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [esp + 0x18], esi
imul esi, dword [esp + 0x68]
mov eax, dword [esp + 0x18]
cdq
sub eax, edx
sar eax, 1
add esi, eax
mov eax, dword [esp + 0xf8]
cmp eax, 0x800000c
mov dword [esp + 0x58], ecx
mov dword [esp + 0x14], esi
jg 0x465c53
je 0x465889
cmp eax, 0x4000020
jg 0x46587e
je 0x465c80
sub eax, 0x4000010
je 0x4657d0
sub eax, 8
jne 0x465c6e
xor ebp, ebp
cmp dword [esp + 0x20], ebp
mov dword [esp + 0x14], ebp
jle 0x4657c1
mov edi, edi
mov eax, dword [esp + 0x100]
test eax, eax
je 0x465753
mov ecx, dword [esp + 0x104]
mov edx, dword [esp + 0x20]
push ecx
push edx
push ebp
call eax
test eax, eax
jne 0x46586a
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
mov ecx, esi
sar ecx, 0x10
imul ecx, dword [esp + 0xf0]
add ecx, dword [esp + 0xdc]
test eax, eax
mov dword [esp + 0x10], edi
jle 0x4657a5
mov dword [esp + 0x7c], eax
jmp 0x465780
mov eax, edx
sar eax, 0x10
lea ebp, [ecx + eax*2]
mov ebp, dword [eax + ebp]
mov eax, dword [esp + 0x10]
mov dword [eax], ebp
add eax, 3
add edx, ebx
sub dword [esp + 0x7c], 1
mov dword [esp + 0x10], eax
jne 0x465780
mov ebp, dword [esp + 0x14]
add edi, dword [esp + 0xc4]
add esi, dword [esp + 0x18]
add ebp, 1
cmp ebp, dword [esp + 0x20]
mov dword [esp + 0x14], ebp
jl 0x465730
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x94
ret 0x60
xor eax, eax
cmp dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
jle 0x4657c1
lea esp, [esp]
mov edx, dword [esp + 0x100]
test edx, edx
je 0x465803
mov ecx, dword [esp + 0x104]
push ecx
mov ecx, dword [esp + 0x24]
push ecx
push eax
call edx
test eax, eax
jne 0x46586a
mov ecx, dword [esp + 0x58]
mov eax, esi
sar eax, 0x10
imul eax, dword [esp + 0xf0]
add eax, dword [esp + 0xdc]
xor edx, edx
cmp dword [esp + 0x4c], edx
mov dword [esp + 0x14], ecx
jle 0x46583f
mov ebp, dword [esp + 0x14]
add dword [esp + 0x14], ebx
sar ebp, 0x10
mov bp, word [eax + ebp*2]
mov word [edi + edx*2], bp
add edx, 1
cmp edx, dword [esp + 0x4c]
jl 0x465823
mov eax, dword [esp + 0x10]
add edi, dword [esp + 0xc4]
add esi, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
jl 0x4657e0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x94
ret 0x60
mov esi, 0x63
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x60
cmp eax, 0x8000008
jne 0x465c6e
cmp dword [esp + 0xc0], 0
mov dword [esp + 0x14], 0
jle 0x465937
nop
mov eax, dword [esp + 0x100]
test eax, eax
je 0x4658c6
mov edx, dword [esp + 0x104]
mov ecx, dword [esp + 0xc0]
push edx
mov edx, dword [esp + 0x18]
push ecx
push edx
call eax
test eax, eax
jne 0x46586a
mov ecx, dword [esp + 0x58]
mov eax, esi
sar eax, 0x10
imul eax, dword [esp + 0xf0]
add eax, dword [esp + 0xdc]
xor ebp, ebp
cmp dword [esp + 0xbc], ebp
jle 0x465909
lea esp, [esp]
mov edx, ecx
sar edx, 0x10
mov dl, byte [edx + eax]
mov byte [edi + ebp], dl
add ebp, 1
add ecx, ebx
cmp ebp, dword [esp + 0xbc]
jl 0x4658f0
mov eax, dword [esp + 0x14]
add edi, dword [esp + 0xc4]
add esi, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esp + 0xc0]
mov dword [esp + 0x14], eax
jl 0x4658a0
mov ebp, dword [esp + 0x48]
mov eax, dword [esp + 0xf8]
cmp eax, 0x800000c
jne 0x4657c1
mov eax, ebp
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x70]
cdq
sub eax, edx
mov edx, dword [esp + 0xac]
sar eax, 1
sar ecx, 1
imul ecx, dword [esp + 0xc8]
add eax, ecx
mov dword [esp + 0x40], eax
add eax, edx
mov dword [esp + 0x1c], eax
mov ecx, ebx
imul ecx, dword [esp + 0x54]
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x18]
mov esi, eax
imul esi, dword [esp + 0x68]
cdq
sub eax, edx
sar eax, 1
add eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc0]
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
sar ecx, 1
test ebp, ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x3c], ebp
jle 0x465a75
jmp 0x4659d0
cmp dword [esp + 0x100], 0
je 0x4659fe
mov edx, dword [esp + 0x104]
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
call dword [esp + 0x10c]
test eax, eax
jne 0x46586a
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0xbc]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
sar esi, 0x10
imul esi, dword [esp + 0xf4]
add esi, dword [esp + 0xe0]
add eax, 1
cdq
sub eax, edx
sar eax, 1
xor edi, edi
test eax, eax
jle 0x465a45
mov edx, ebp
sar edx, 0x10
mov dl, byte [edx + esi]
mov byte [edi + ecx], dl
add edi, 1
add ebp, ebx
cmp edi, eax
jl 0x465a31
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
add ecx, dword [esp + 0xc8]
add eax, 1
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
jl 0x4659d0
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc0]
and eax, 1
mov dword [esp + 0x80], eax
je 0x465aea
mov eax, dword [esp + 0xec]
add eax, 1
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0xbc]
sar esi, 1
sub esi, 1
imul esi, dword [esp + 0xf4]
add esi, dword [esp + 0xe0]
add eax, 1
cdq
sub eax, edx
sar eax, 1
xor edi, edi
test eax, eax
mov dword [esp + 0x10], ecx
jle 0x465aea
mov edx, dword [esp + 0x1c]
jmp 0x465ad0
sar ecx, 0x10
mov cl, byte [ecx + esi]
mov byte [edi + edx], cl
mov ecx, dword [esp + 0x10]
add ecx, ebx
add edi, 1
cmp edi, eax
mov dword [esp + 0x10], ecx
jl 0x465ad0
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0x40]
lea ecx, [eax + edx]
mov esi, ebx
imul esi, dword [esp + 0x54]
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, esi
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x18]
mov esi, eax
imul esi, dword [esp + 0x68]
cdq
sub eax, edx
sar eax, 1
add eax, esi
cdq
sub eax, edx
sar edi, 1
sar eax, 1
test ebp, ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], 0
jle 0x465be3
cmp dword [esp + 0x100], 0
je 0x465b70
mov ecx, dword [esp + 0x104]
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
call dword [esp + 0x10c]
test eax, eax
jne 0x46586a
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0xbc]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
sar esi, 0x10
imul esi, dword [esp + 0xf4]
add esi, dword [esp + 0xe4]
add eax, 1
cdq
sub eax, edx
sar eax, 1
xor edi, edi
test eax, eax
jle 0x465bb7
mov edx, ebp
sar edx, 0x10
mov dl, byte [edx + esi]
mov byte [edi + ecx], dl
add edi, 1
add ebp, ebx
cmp edi, eax
jl 0x465ba3
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
add ecx, dword [esp + 0xc8]
add eax, 1
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
jl 0x465b42
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x80], 0
je 0x4657c1
mov eax, dword [esp + 0xec]
add eax, 1
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0xbc]
sar esi, 1
sub esi, 1
imul esi, dword [esp + 0xf4]
add esi, dword [esp + 0xe4]
add eax, 1
cdq
sub eax, edx
mov ebp, edi
sar eax, 1
xor edi, edi
test eax, eax
jle 0x4657c1
nop
mov edx, ebp
sar edx, 0x10
mov dl, byte [edx + esi]
mov byte [edi + ecx], dl
add edi, 1
add ebp, ebx
cmp edi, eax
jl 0x465c30
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x94
ret 0x60
sub eax, 0x8000010
je 0x465d14
sub eax, 8
je 0x46571e
sub eax, 0x8000008
je 0x465c80
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x94
ret 0x60
xor eax, eax
cmp dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
jle 0x4657c1
mov ecx, dword [esp + 0x100]
test ecx, ecx
je 0x465cb3
mov edx, dword [esp + 0x104]
push edx
mov edx, dword [esp + 0x24]
push edx
push eax
call ecx
test eax, eax
jne 0x46586a
mov edx, dword [esp + 0x58]
mov eax, esi
sar eax, 0x10
imul eax, dword [esp + 0xf0]
add eax, dword [esp + 0xdc]
xor ecx, ecx
cmp dword [esp + 0x4c], ecx
jle 0x465ce9
mov ebp, edx
sar ebp, 0x10
mov ebp, dword [eax + ebp*4]
mov dword [edi + ecx*4], ebp
add ecx, 1
add edx, ebx
cmp ecx, dword [esp + 0x4c]
jl 0x465cd3
mov eax, dword [esp + 0x10]
add edi, dword [esp + 0xc4]
add esi, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
jl 0x465c90
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x94
ret 0x60
cmp dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
jle 0x4657c1
jmp 0x465d30
mov eax, dword [esp + 0x100]
test eax, eax
je 0x465d57
mov ecx, dword [esp + 0x104]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push ecx
call eax
test eax, eax
jne 0x46586a
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0xbc]
mov esi, dword [esp + 0x58]
sar ebp, 0x10
imul ebp, dword [esp + 0xf0]
add ebp, dword [esp + 0xdc]
cdq
sub eax, edx
sar eax, 1
xor edi, edi
test eax, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x80], eax
jle 0x465e27
mov ecx, esi
sar ecx, 0x10
and ecx, 1
shl ecx, 4
mov edx, esi
sar edx, 0x11
mov edx, dword [ebp + edx*4]
add esi, ebx
mov edi, 0xff
shl edi, cl
mov eax, esi
sar eax, 0x11
and edi, edx
shr edi, cl
shr edx, 8
mov ecx, esi
sar ecx, 0x10
add esi, ebx
and ecx, 1
and edx, 0xff00ff
shl ecx, 4
mov dword [esp + 0x40], edx
mov edx, dword [ebp + eax*4]
mov ebx, 0xff
shl ebx, cl
mov eax, ecx
mov ecx, 0x10
sub ecx, eax
and ebx, edx
shr edx, 8
and edx, 0xff00ff
add edx, dword [esp + 0x40]
shl ebx, cl
mov ecx, dword [esp + 0x1c]
shl edx, 7
and edx, 0xff00ff00
or ebx, edx
or ebx, edi
mov edi, dword [esp + 0x10]
mov dword [ecx + edi*4], ebx
mov ebx, dword [esp + 0x7c]
add edi, 1
cmp edi, dword [esp + 0x80]
mov dword [esp + 0x10], edi
jl 0x465d92
test byte [esp + 0xbc], 1
je 0x465e5f
mov eax, esi
sar eax, 0x10
and eax, 1
shl eax, 4
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov edx, 0xff
shl edx, cl
sar esi, 0x11
mov esi, dword [ebp + esi*4]
and edx, esi
shr edx, cl
and esi, 0xff00ff00
or edx, esi
mov dword [eax + edi*4], edx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0x18]
add dword [esp + 0x1c], ecx
add dword [esp + 0x14], edx
add eax, 1
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
jl 0x465d30
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x94
ret 0x60
mov eax, dword [esp + 0x44]
test eax, eax
je 0x465ea7
push eax
call fcn.00479994
add esp, 4
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x465eb8
push eax
call fcn.00479994
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x465ec9
push eax
call fcn.00479994
add esp, 4
mov eax, dword [esp + 0x88]
test eax, eax
je 0x465edd
push eax
call fcn.00479994
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x465eee
push eax
call fcn.00479994
add esp, 4
mov eax, dword [esp + 0x90]
test eax, eax
je 0x465f02
push eax
call fcn.00479994
add esp, 4
mov eax, dword [esp + 0x7c]
push eax
call fcn.00479994
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00479994
mov esi, dword [esp + 0x60]
add esp, 8
test esi, esi
jne 0x465f81
mov eax, dword [esp + 0xfc]
cmp eax, 6
je 0x465f90
cmp eax, 7
jne 0x465f81
cmp eax, eax
mov eax, 0x80
je 0x465f3f
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x104]
mov ecx, dword [esp + 0x100]
push edx
mov edx, dword [esp + 0xfc]
push ecx
mov ecx, dword [esp + 0xc8]
push 8
push 1
push eax
mov eax, dword [esp + 0xd8]
push edx
mov edx, dword [esp + 0xd4]
push eax
mov eax, dword [esp + 0xc4]
push ecx
push edx
push eax
call fcn.00475080
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x60
mov eax, 0x40
jmp 0x465f3f
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x94
ret 0x60