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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
mov esi, eax
mov ecx, 0x100
mov edi, ebx
sub esp, 0xac
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x3c], edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 8], 0x40000
mov dword [esp + 4], 0
mov dword [esp + 0x78], ebx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0xc4]
mov ecx, esi
mov ebp, dword [esp + 0xc0]
mov edi, ecx
sub eax, 1
mov edx, eax
mov dword [esp + 0x84], eax
mov eax, esi
add eax, edx
mov esi, edx
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x7c], eax
movzx eax, byte [eax]
mov dword [esp + 0x20], edx
test esi, esi
jns 0x4a0f01
jmp 0x4a0f0d
movzx edx, byte [edi + esi - 1]
cmp eax, edx
jg 0x4a0f8a
mov eax, edx
mov esi, ecx
lea ecx, [esi - 1]
add dword [ebx + eax*4], 1
cmp ecx, 0xffffffff
jne 0x4a0ef0
mov edi, dword [esp + 0xc0]
xor edx, edx
xor esi, esi
xor ebp, ebp
mov ecx, dword [esp + 0x78]
mov eax, dword [ecx + ebp*4]
add eax, esi
add esi, edx
mov dword [ecx + ebp*4], esi
mov esi, ebp
shl esi, 8
mov ecx, esi
mov ebx, esi
mov dword [esp + 0x18], esi
or ecx, ebp
add eax, dword [edi + ecx*4]
mov esi, eax
lea eax, [ebp + 1]
cmp eax, 0x100
mov dword [esp + 0x24], eax
je 0x4a1000
mov ecx, ebx
add ecx, 0x100
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [esp + 0x18]
or ebx, eax
add eax, 1
lea ebx, [edi + ebx*4]
add edx, dword [ebx]
mov dword [ebx], edx
mov ebx, ecx
add ecx, 0x100
or ebx, ebp
add esi, dword [edi + ebx*4]
cmp eax, 0x100
jne 0x4a0f60
mov ebp, dword [esp + 0x24]
jmp 0x4a0f1a
mov dword [esp + 0x24], ecx
mov ecx, edx
sub dword [esp + 0x20], 1
shl ecx, 8
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x24]
or eax, ecx
mov ecx, dword [esp + 0x3c]
sub esi, 2
add dword [ebp + eax*4], 1
cmp esi, 0xffffffff
mov eax, dword [esp + 0x20]
mov dword [ecx + eax*4], edx
je 0x4a0f0d
movzx eax, byte [edi + esi]
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x18], eax
jl 0x4a0eea
shl edx, 8
sub esi, 1
or edx, eax
add dword [ebp + edx*4], 1
cmp esi, 0xffffffff
je 0x4a0f0d
movzx ecx, byte [edi + esi]
mov edx, eax
cmp ecx, edx
mov eax, ecx
jle 0x4a0fd0
jmp 0x4a0eea
mov eax, dword [esp + 0xc4]
sub eax, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x4c], eax
jle 0x4a164a
mov esi, eax
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0x3c]
lea ebx, [esi*4]
sub eax, esi
lea eax, [ecx + eax*4]
mov dword [esp + 0x20], eax
lea eax, [ecx + ebx]
lea ecx, [esi - 2]
cmp ecx, 0xffffffff
mov dword [esp + 0x58], eax
je 0x4a107c
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov edi, dword [esi + ecx*4]
movzx eax, byte [edx + edi + 1]
movzx edi, byte [edx + edi]
shl edi, 8
or eax, edi
mov edi, dword [esp + 0xc0]
lea edi, [edi + eax*4]
mov eax, dword [edi]
sub eax, 1
mov dword [edi], eax
mov edi, dword [esp + 0x3c]
mov dword [edi + eax*4], ecx
sub ecx, 1
cmp ecx, 0xffffffff
jne 0x4a104b
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x74], 0xfe
mov eax, dword [eax + ebx - 4]
movzx edx, byte [esi + eax + 1]
movzx eax, byte [esi + eax]
mov esi, dword [esp + 0xc0]
shl eax, 8
or eax, edx
lea edx, [esi + eax*4]
mov esi, dword [esp + 0x4c]
mov eax, dword [edx]
lea ecx, [esi - 1]
mov dword [esp + 0x70], esi
sub eax, 1
mov dword [esp + 0x68], ecx
mov dword [edx], eax
mov dword [edi + eax*4], ecx
lea eax, [esi + esi]
mov ecx, dword [esp + 0xc4]
sub ecx, eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x74]
shl eax, 8
mov dword [esp + 0x60], 0xff
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x60]
or edx, dword [esp + 0x88]
mov esi, dword [esp + 0xc0]
mov esi, dword [esi + edx*4]
mov edx, eax
sub edx, esi
mov dword [esp + 0x70], esi
cmp edx, 1
jle 0x4a1392
mov edi, dword [esp + 0x3c]
lea esi, [edi + esi*4]
lea eax, [edi + eax*4]
mov ecx, esi
mov esi, dword [esi]
mov dword [esp + 0x40], eax
mov ebx, esi
mov dword [esp + 0x80], esi
mov esi, eax
mov eax, ecx
add eax, 4
cmp dword [esp + 0x68], ebx
mov edi, eax
cmovne edi, ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x44], edi
cmp ecx, 0x3ff
jle 0x4a1668
mov eax, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x58]
sub esi, edi
mov dword [esp + 0x48], 0
mov dword [esp + 0x38], eax
cmp esi, 0x1003
jle 0x4a16be
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x2c], 0
lea eax, [ebp + 0x1000]
mov edx, dword [esp + 0x20]
mov ecx, ebp
mov esi, eax
mov dword [esp + 0x30], eax
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
call fcn.0049c3f0
mov eax, dword [esp + 0x40]
sub eax, esi
sar eax, 2
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
jle 0x4a1655
mov ecx, esi
mov eax, dword [esp + 0x2c]
mov edx, ebp
mov ebx, 0x400
mov ebp, ecx
test al, 1
mov esi, eax
je 0x4a1221
lea eax, [ebx*4]
mov edi, edx
mov ecx, dword [esp + 0x18]
mov dword [esp], edx
mov dword [esp + 8], ebp
sar esi, 1
sub edi, eax
add eax, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
add ebx, ebx
mov dword [esp + 0xc], ecx
mov ecx, edi
call fcn.0049da90
test esi, 1
mov edx, edi
jne 0x4a11e4
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
add dword [esp + 0x2c], 1
sub eax, esi
mov ebp, esi
cmp eax, 0x1003
jg 0x4a119a
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ecx, esi
mov ebx, 0x400
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
call fcn.0049c3f0
mov eax, ebp
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
jmp 0x4a126a
add ebx, ebx
sar esi, 1
je 0x4a12ab
test esi, 1
je 0x4a1264
mov ecx, dword [esp + 0x38]
lea edx, [ebx*4]
mov edi, eax
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
add ebx, ebx
sub edi, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ecx
mov ecx, edi
call fcn.0049da90
sar esi, 1
mov eax, edi
jne 0x4a126a
mov esi, dword [esp + 0x48]
test esi, esi
jne 0x4a16e2
mov esi, dword [esp + 0x80]
cmp dword [esp + 0x68], esi
jne 0x4a1392
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add ecx, dword [esp + 0x8c]
cmp dword [esp + 0x40], eax
mov ebp, dword [eax - 4]
mov esi, dword [esi + ebp*4]
mov dword [esp + 0x18], esi
lea edi, [esi + 2]
jbe 0x4a138f
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ecx
mov ebp, dword [esi]
test ebp, ebp
js 0x4a1375
mov eax, dword [esp + 0x20]
lea ebx, [eax + ebp*4]
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx]
mov ebx, dword [ebx + 4]
add eax, edi
lea edx, [edi + edx + 2]
lea ebx, [edi + ebx + 2]
cmp edx, ebx
jae 0x4a135f
cmp eax, dword [esp + 0x24]
jae 0x4a135f
movzx ecx, byte [edx]
cmp byte [eax], cl
jne 0x4a135f
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], ebx
lea esi, [esi]
add eax, 1
add edx, 1
cmp ecx, eax
jbe 0x4a1357
cmp dword [esp + 0x18], edx
jbe 0x4a1357
movzx ebx, byte [edx]
cmp byte [eax], bl
je 0x4a1340
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x24], eax
jbe 0x4a1385
cmp edx, ebx
jae 0x4a1375
movzx eax, byte [eax]
movzx edx, byte [edx]
sub eax, edx
test eax, eax
jle 0x4a1385
mov dword [esi - 4], ebp
add esi, 4
cmp dword [esp + 0x40], esi
ja 0x4a1304
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x44], esi
mov eax, esi
mov dword [eax - 4], ebp
sub dword [esp + 0x60], 1
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x60]
cmp esi, dword [esp + 0x74]
jne 0x4a10fd
mov ebp, dword [esp + 0x70]
mov eax, esi
sub eax, 1
mov dword [esp + 0x74], eax
test ebp, ebp
jg 0x4a10e7
mov ebp, dword [esp + 0x68]
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x3c]
lea edx, [ebx + ebp*4]
mov edi, dword [edx]
test edi, edi
js 0x4a1c0e
mov eax, ebp
jmp 0x4a13e8
sub edx, 4
mov esi, dword [edx]
test esi, esi
js 0x4a1c00
mov esi, dword [edx]
mov dword [ecx + esi*4], eax
sub eax, 1
cmp eax, 0xffffffff
jne 0x4a13db
mov eax, dword [esp + 0x3c]
not ebp
mov dword [eax], ebp
mov eax, dword [esp + 0x4c]
test eax, 0xffff0000
je 0x4a1c46
test eax, 0xff000000
je 0x4a1d2c
shr eax, 0x18
mov ecx, dword [eax*4 + 0x4fbf20]
add ecx, 0x18
add ecx, ecx
mov edx, 0x55555556
mov esi, dword [esp + 0x58]
mov eax, ecx
sar ecx, 0x1f
imul edx
mov eax, dword [esp + 0x4c]
lea edi, [esi + 4]
mov dword [esp + 0x98], eax
mov dword [esp + 0x94], eax
neg eax
sub edx, ecx
cmp eax, ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x90], edx
jge 0x4a150c
mov edx, ebp
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x18], 0
xor eax, eax
test edx, edx
mov ebx, esi
js 0x4a14c9
test eax, eax
je 0x4a148a
lea ecx, [eax*4]
mov dword [esi + ecx], eax
mov eax, dword [ebp + edx*4]
mov ecx, dword [esp + 0x3c]
lea ebx, [ecx + eax*4 + 4]
mov eax, ebx
sub eax, esi
cmp eax, 7
jg 0x4a1ba8
sub eax, 4
cmp eax, 3
ja 0x4a1b93
cmp ebp, ebx
jbe 0x4a1c65
mov edx, dword [ebx]
mov esi, ebx
mov eax, 0xffffffff
mov ecx, 0xfffffffc
test edx, edx
jns 0x4a1487
lea ecx, [edx*4]
mov esi, ebx
add eax, edx
sub esi, ecx
cmp ebp, esi
jbe 0x4a14de
mov edx, dword [esi]
jmp 0x4a1476
test eax, eax
je 0x4a14ee
lea edx, [eax*4]
mov ebx, esi
mov dword [ebx + edx], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a150c
mov eax, edi
sub eax, ebp
add edi, eax
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
cmp dword [esp + 0x20], edx
jl 0x4a1468
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x84]
mov ebp, dword [esp + 0x1c]
movzx esi, byte [eax]
mov eax, dword [esp + 0x58]
lea edi, [eax + ecx*4]
test edx, edx
js 0x4a155a
lea eax, [edx - 1]
cmp eax, 0xffffffff
je 0x4a155a
movzx ebx, byte [ebp + edx - 1]
cmp esi, ebx
jle 0x4a1552
jmp 0x4a1cd7
movzx edx, byte [ebp + eax]
cmp edx, ebx
mov ebx, edx
jl 0x4a1cd7
sub eax, 1
cmp eax, 0xffffffff
jne 0x4a1543
mov eax, dword [esp + 0xc0]
mov esi, dword [esp + 0xc4]
mov ebp, 0xfe
mov edi, dword [esp + 0x68]
mov dword [esp + 0x18], ebp
mov dword [eax + 0x3fffc], esi
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x78]
mov ebx, 0xff
mov eax, dword [ecx + esi*4 + 4]
shl esi, 8
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
sub eax, 1
lea esi, [esi]
mov edx, ebx
mov esi, dword [esp + 0xc0]
mov ebp, eax
shl edx, 8
or edx, dword [esp + 0x18]
lea edx, [esi + edx*4]
sub ebp, dword [edx]
mov dword [edx], eax
mov eax, dword [esp + 0x20]
or eax, ebx
mov esi, dword [esi + eax*4]
cmp esi, edi
jg 0x4a1cd0
mov ecx, dword [esp + 0x3c]
mov edx, ebp
mov dword [esp + 0x1c], ebx
sub edx, edi
lea eax, [ecx + edi*4]
lea ecx, [ecx + esi*4 - 4]
lea esi, [esi]
mov ebx, dword [eax]
mov dword [eax + edx*4], ebx
sub eax, 4
cmp ecx, eax
jne 0x4a15e0
not edi
mov ebx, dword [esp + 0x1c]
lea eax, [edi + esi]
lea edi, [esi - 1]
add eax, ebp
sub ebx, 1
cmp ebx, dword [esp + 0x18]
jne 0x4a15a0
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0xc0]
mov ebp, dword [esp + 0xc0]
mov edx, esi
or edx, ecx
lea ebx, [ebx + edx*4]
mov edx, esi
add edx, 1
or edx, ecx
mov ecx, eax
sub ecx, dword [ebx]
add ecx, 1
mov dword [ebp + edx*4], ecx
mov edx, esi
mov dword [ebx], eax
sub edx, 1
cmp edx, 0xffffffff
mov dword [esp + 0x18], edx
jne 0x4a157b
mov eax, dword [esp + 0x4c]
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
mov ecx, eax
jmp 0x4a11d1
sub esi, dword [esp + 0x44]
mov ebx, esi
sar ebx, 2
cmp dword [esp + 0x5c], ebx
jge 0x4a1898
cmp ebx, 0xfffff
mov dword [esp + 0x28], 0x400
mov eax, 0xfffff000
jle 0x4a1816
add eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x48], ecx
mov esi, eax
sub esi, dword [esp + 0x44]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
cmp esi, 0x1003
jg 0x4a118e
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x20]
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
call fcn.0049c3f0
mov esi, dword [esp + 0x48]
test esi, esi
je 0x4a12b7
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov dword [esp], esi
call fcn.0049c3f0
mov dword [esp + 0x48], esi
mov eax, dword [esp + 0x48]
mov eax, dword [eax - 4]
test eax, eax
js 0x4a1ae9
mov esi, dword [esp + 0x20]
mov dword [esp + 0x64], 0
lea eax, [esi + eax*4]
mov esi, dword [esp + 0x24]
sub esi, dword [esp + 0x44]
mov edi, esi
mov dword [esp + 0x6c], esi
sar esi, 2
mov ecx, esi
mov dword [esp + 0x18], esi
mov esi, edi
sar esi, 3
test ecx, ecx
jle 0x4a1b33
mov edi, dword [esp + 0x1c]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x30], 0xffffffff
lea ebp, [edi + edx + 2]
lea ebx, [edi + eax + 2]
mov eax, dword [esp + 0x44]
mov edi, ecx
mov dword [esp + 0x28], ebp
cmp ebp, ebx
setb byte [esp + 0x2c]
mov dword [esp + 0x38], eax
nop
lea ebp, [eax + esi*4]
mov edx, dword [ebp]
mov eax, edx
lea ecx, [edx*4]
not eax
shl eax, 2
test edx, edx
mov edx, dword [esp + 0x1c]
cmovs ecx, eax
add ecx, dword [esp + 0x20]
mov eax, dword [ecx]
lea eax, [edx + eax + 2]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx + edx + 2]
mov edx, dword [esp + 0x28]
cmp eax, ecx
jae 0x4a17db
cmp byte [esp + 0x2c], 0
je 0x4a17db
movzx edx, byte [edx]
cmp byte [eax], dl
mov edx, dword [esp + 0x28]
jne 0x4a17db
mov dword [esp + 0x18], ebx
add eax, 1
add edx, 1
cmp ecx, eax
jbe 0x4a17d7
cmp edx, dword [esp + 0x18]
jae 0x4a17d7
movzx ebx, byte [edx]
cmp byte [eax], bl
je 0x4a17c0
mov ebx, dword [esp + 0x18]
cmp eax, ecx
jae 0x4a18c1
cmp edx, ebx
jae 0x4a1a05
movzx eax, byte [eax]
movzx edx, byte [edx]
sub eax, edx
js 0x4a19f2
mov dword [esp + 0x30], eax
mov eax, esi
mov edi, esi
sar eax, 1
test esi, esi
jle 0x4a18df
mov esi, eax
mov eax, dword [esp + 0x38]
jmp 0x4a1770
test ebx, 0xffff0000
je 0x4a1c74
test ebx, 0xff000000
je 0x4a1b7f
mov eax, ebx
shr eax, 0x18
mov eax, dword [eax*4 + 0x4fbf20]
add eax, 0x18
cmp eax, 0xf
jle 0x4a1b50
mov edx, eax
and edx, 0xfffffffe
lea ecx, [edx - 6]
mov edx, ebx
sar edx, cl
mov ecx, eax
mov edx, dword [edx*4 + 0x4fbb20]
sar ecx, 1
sub ecx, 7
shl edx, cl
cmp eax, 0x17
mov ecx, edx
jle 0x4a1874
mov eax, ebx
cdq
idiv ecx
lea ecx, [ecx + eax + 1]
sar ecx, 1
mov eax, ebx
cdq
idiv ecx
lea eax, [ecx + eax + 1]
sar eax, 1
mov edx, eax
imul edx, eax
cmp ebx, edx
setl dl
movzx edx, dl
sub eax, edx
cmp dword [esp + 0x5c], eax
jl 0x4a1ca1
mov eax, dword [esp + 0x40]
mov dword [esp + 0x48], 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x38], eax
jmp 0x4a1182
cmp edx, ebx
jb 0x4a19f2
mov eax, esi
mov dword [esp + 0x30], 0
mov edi, esi
sar eax, 1
test esi, esi
jg 0x4a180b
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
cmp eax, esi
jbe 0x4a1abb
mov ebx, dword [esp + 0x30]
test ebx, ebx
jne 0x4a18fd
not dword [esi]
mov eax, dword [esp + 0x24]
sub eax, esi
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x6c], eax
sar eax, 2
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x48]
mov ebx, 3
mov edx, ebp
mov eax, edi
sub eax, esi
sar eax, 2
mov ecx, eax
lea eax, [esi + 4]
mov ebp, ecx
sub ebx, eax
lea eax, [esi + 1]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], eax
lea eax, [esi - 4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x4a1aa1
test ebp, ebp
jle 0x4a1aa1
cmp eax, ebp
je 0x4a1b0f
jge 0x4a1a12
mov ecx, eax
lea ebx, [edx - 1]
mov esi, dword [edi - 4]
not ecx
mov dword [esp + 0x2c], ecx
lea ecx, [eax + 1]
mov dword [esp + 0x28], ebx
sub ebp, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
lea ebp, [ecx - 5]
mov ecx, ebp
sub ecx, ebx
mov ebx, ecx
mov ecx, dword [esp + 0x18]
and ebx, 0xfffffffc
neg ebx
sub ebx, 8
cmp ebp, dword [esp + 0x28]
mov ebp, 0xfffffff8
cmovae ebp, ebx
lea ebx, [edi - 4]
mov dword [esp + 0x28], ebp
nop
lea esi, [esi]
mov ebp, dword [esp + 0x30]
mov edi, ebx
mov dword [esp + 0x18], eax
lea esi, [esi]
mov eax, dword [ebp]
sub edi, 4
sub ebp, 4
cmp ebp, edx
mov dword [edi + 4], eax
mov eax, dword [edi]
mov dword [ebp + 4], eax
jae 0x4a19c0
mov eax, dword [esp + 0x18]
add ebx, dword [esp + 0x28]
mov ebp, ecx
mov dword [edi], esi
cmp eax, ecx
jge 0x4a1943
mov esi, dword [edi - 4]
add ecx, dword [esp + 0x2c]
jmp 0x4a19b0
lea eax, [ebp + 4]
not edi
and edi, 1
mov dword [esp + 0x38], eax
sub esi, edi
jmp 0x4a17fd
mov dword [esp + 0x30], 1
jmp 0x4a17fd
lea ecx, [ebp + 1]
mov esi, dword [edx]
mov dword [esp + 0x28], ebp
sub eax, ecx
mov ecx, 8
mov ebx, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18], esi
mov esi, ebp
mov ebp, dword [esp + 0x18]
not esi
add eax, edi
mov dword [esp + 0x34], esi
mov esi, edx
and eax, 0xfffffffc
add eax, 8
cmp edi, dword [esp + 0x54]
cmovae ecx, eax
mov dword [esp + 0x2c], ecx
lea esi, [esi]
mov edx, esi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], ebx
jmp 0x4a1a62
mov edx, ecx
mov ebx, dword [eax]
lea ecx, [edx + 4]
add eax, 4
cmp edi, eax
mov dword [ecx - 4], ebx
mov ebx, dword [edx + 4]
mov dword [eax - 4], ebx
ja 0x4a1a60
mov ebx, dword [esp + 0x18]
add edx, 8
add esi, dword [esp + 0x2c]
cmp dword [esp + 0x28], ebx
mov dword [ecx], ebp
mov eax, ebx
jge 0x4a1a95
mov ebp, dword [ecx + 4]
add ebx, dword [esp + 0x34]
jmp 0x4a1a50
test eax, eax
mov ebp, dword [esp + 0x28]
jg 0x4a194b
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x38]
sub dword [esp + 0x48], esi
cmp dword [esp + 0x44], eax
je 0x4a12b7
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x64]
sub dword [esp + 0x48], 4
mov eax, dword [esp + 0x48]
test ecx, ecx
jne 0x4a1b00
mov esi, dword [esp + 0x48]
cmp dword [esp + 0x24], esi
je 0x4a12b7
mov eax, dword [esp + 0x48]
mov eax, dword [eax - 4]
test eax, eax
jns 0x4a170d
mov esi, dword [esp + 0x20]
not eax
mov dword [esp + 0x64], 1
lea eax, [esi + eax*4]
jmp 0x4a171c
sub eax, 4
mov edx, dword [eax]
test edx, edx
js 0x4a1b00
mov dword [esp + 0x48], eax
jmp 0x4a1acc
mov ebp, edx
mov edx, dword [esp + 0x24]
mov esi, eax
xor eax, eax
mov ecx, dword [ebp + eax*4]
mov ebx, dword [edx + eax*4]
mov dword [ebp + eax*4], ebx
mov dword [edx + eax*4], ecx
add eax, 1
cmp eax, esi
jne 0x4a1b19
jmp 0x4a1aa1
mov esi, dword [esp + 0x24]
cmp dword [esp + 0x44], esi
jae 0x4a1abb
mov eax, dword [esp + 0x44]
mov dword [esp + 0x38], eax
mov ebp, eax
jmp 0x4a1912
cmp eax, 7
jle 0x4a1c8d
mov edx, eax
sar eax, 1
and edx, 0xfffffffe
lea ecx, [edx - 6]
mov edx, ebx
sar edx, cl
mov ecx, 7
sub ecx, eax
mov eax, dword [edx*4 + 0x4fbb20]
sar eax, cl
add eax, 1
jmp 0x4a187f
mov eax, esi
sar eax, 0x12
mov eax, dword [eax*4 + 0x4fbf20]
add eax, 0x10
jmp 0x4a183d
cmp ebp, ebx
jbe 0x4a14ee
mov edx, dword [ebx]
test edx, edx
js 0x4a1beb
mov esi, ebx
jmp 0x4a148a
lea eax, [esp + 0x90]
mov dword [esp + 4], ebx
mov dword [esp], esi
mov edx, edi
mov dword [esp + 0x9c], 0
mov dword [esp + 8], eax
mov eax, ebp
call fcn.0049ea50
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x4a1bf2
add dword [esp + 0x18], eax
cmp ebp, ebx
jbe 0x4a14ee
mov edx, dword [ebx]
test edx, edx
jns 0x4a1ba1
xor eax, eax
jmp 0x4a14c9
mov eax, esi
mov esi, ebx
sub eax, ebx
sar eax, 2
jmp 0x4a14d6
mov edx, eax
sub edx, ebp
test eax, eax
mov dword [ebx + eax*4 + 4], edx
je 0x4a1c3b
mov ebp, eax
lea eax, [ebx + ebp*4]
mov edx, ebp
jmp 0x4a1c17
mov edx, edi
mov esi, dword [eax]
sub eax, 4
lea edi, [edx - 1]
not esi
mov dword [eax + 4], esi
mov dword [ecx + esi*4], ebp
mov esi, dword [eax]
test esi, esi
js 0x4a1c15
sub edx, 2
mov dword [ecx + esi*4], ebp
mov ebp, edx
jns 0x4a13ca
mov eax, dword [esp + 0x3c]
mov ebp, dword [eax]
jmp 0x4a13fd
test dword [esp + 0x4c], 0xff00
jne 0x4a1d3e
movzx eax, byte [esp + 0x4c]
mov ecx, dword [eax*4 + 0x4fbf20]
jmp 0x4a1424
mov edx, 0xfffffffc
mov eax, 0xffffffff
jmp 0x4a14eb
test bh, 0xff
je 0x4a1cc0
mov eax, esi
sar eax, 0xa
mov eax, dword [eax*4 + 0x4fbf20]
add eax, 8
jmp 0x4a183d
mov eax, dword [ebx*4 + 0x4fbb20]
sar eax, 4
cmp dword [esp + 0x5c], eax
jge 0x4a1898
cmp eax, 0x400
mov edx, 0x400
cmovle edx, eax
lea eax, [edx*4]
mov dword [esp + 0x28], edx
neg eax
jmp 0x4a1694
movzx eax, bl
mov eax, dword [eax*4 + 0x4fbf20]
jmp 0x4a183d
mov eax, ebp
jmp 0x4a15fa
lea edx, [eax - 1]
cmp edx, 0xffffffff
je 0x4a1d50
movzx esi, byte [ebp + eax - 1]
cmp esi, ebx
mov ecx, esi
jg 0x4a1d05
sub edx, 1
cmp edx, 0xffffffff
je 0x4a1d05
movzx esi, byte [ebp + edx]
cmp esi, ecx
jg 0x4a1d05
sub edx, 1
mov ecx, esi
cmp edx, 0xffffffff
jne 0x4a1cf2
mov ebx, dword [esp + 0x3c]
mov ecx, dword [edi]
lea ecx, [ebx + ecx*4]
mov ebx, eax
sub ebx, edx
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x18], 1
mov ebx, eax
not ebx
cmovle eax, ebx
mov dword [ecx], eax
sub edi, 4
jmp 0x4a1529
sar eax, 0x10
mov ecx, dword [eax*4 + 0x4fbf20]
add ecx, 0x10
jmp 0x4a1424
sar eax, 8
mov ecx, dword [eax*4 + 0x4fbf20]
add ecx, 8
jmp 0x4a1424
mov eax, dword [edi]
mov esi, dword [esp + 0x3c]
lea ecx, [esi + eax*4]
mov esi, ebx
xor eax, eax
jmp 0x4a1d22