Function at 0x402829
Capabilities:
Encrypt data using rc4 ksa
Hash data with crc32

Disassembly:
jmp 0x41f6b0
push 0xffffffffffffffff
push 0x5098fc
mov eax, dword fs:[0]
push eax
sub esp, 0x810
mov eax, dword [0x53bbf0]
xor eax, esp
mov dword [esp + 0x80c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53bbf0]
xor eax, esp
push eax
lea eax, [esp + 0x824]
mov dword fs:[0], eax
mov eax, dword [esp + 0x834]
mov ebp, ecx
mov ecx, dword [ebp + 0x138]
xor ebx, ebx
push 0x3c
push ebx
push ecx
mov dword [esp + 0x24], eax
mov dword [ebp + 0x134], ebx
mov dword [ebp + 0x8c], ebx
mov dword [ebp + 0x6bb8], ebx
mov dword [ebp + 0x770], ebx
mov byte [ebp + 0x3534], bl
mov byte [ebp + 0x3574], bl
mov dword [ebp + 0x30a8], ebx
mov dword [ebp + 0x29e8], ebx
mov dword [ebp + 0x6c6c], ebx
mov dword [ebp + 0x6c80], ebx
mov dword [ebp + 0x6c68], ebx
mov byte [ebp + 0x6ce4], bl
mov dword [ebp + 0x2a44], ebx
mov dword [ebp + 0x6498], ebx
mov dword [ebp + 0x2a48], ebx
mov dword [ebp + 0xf0], ebx
mov dword [ebp + 0xf4], ebx
mov dword [ebp + 0xf8], ebx
mov dword [ebp + 0xfc], ebx
mov dword [ebp + 0x100], ebx
mov dword [ebp + 0x104], ebx
mov dword [ebp + 0x108], ebx
call fcn.004c14b0
mov dword [ebp + 0x3068], ebx
mov dword [ebp + 0x6c24], ebx
mov dword [ebp + 0x6c18], ebx
mov dword [ebp + 0x64ac], ebx
mov dword [ebp + 0x6bbc], ebx
call fcn.00401d39
mov dword [ebp + 0x2a4c], eax
mov dword [ebp + 0x6bc4], ebx
mov dword [ebp + 0x6bc8], ebx
mov dword [ebp + 0x1780], ebx
mov dword [ebp + 0x1774], ebx
mov dword [ebp + 0x177c], ebx
mov dword [ebp + 0x1790], ebx
mov dword [ebp + 0x178c], ebx
mov dword [ebp + 0x179c], ebx
mov dword [ebp + 0x17a0], ebx
mov dword [ebp + 0x17ec], ebx
mov dword [ebp + 0x17a8], ebx
mov dword [ebp + 0x17f8], ebx
mov dword [ebp + 0x17f4], ebx
mov dword [ebp + 0x29e4], ebx
call fcn.00401d39
push ebx
mov dword [ebp + 0x118], eax
call fcn.004c2809
push 0xc8
lea edx, [ebp + 0x326c]
push ebx
push edx
mov dword [ebp + 0x11c], eax
call fcn.004c14b0
or esi, 0xffffffff
push 0x40
lea eax, [ebp + 0x6bd8]
push ebx
push eax
mov dword [ebp + 0x2a0c], esi
mov dword [ebp + 0x2a14], esi
mov dword [ebp + 0x2a10], esi
mov dword [ebp + 0x6c4c], ebx
mov dword [ebp + 0x6c5c], esi
mov dword [ebp + 0x6c64], esi
mov dword [ebp + 0x2a30], ebx
mov dword [ebp + 0x6c2c], ebx
mov dword [ebp + 0x6c40], ebx
mov dword [ebp + 0x6c1c], ebx
mov dword [ebp + 0x6c20], ebx
call fcn.004c14b0
push 0x796
push ebx
mov ecx, dword [ebp + 0x138]
add ecx, 0x3c
push ecx
call fcn.004c14b0
call fcn.004c11ab
cdq
mov ecx, 0x5dc
idiv ecx
mov byte [ebp + 0x8ac], bl
mov dword [ebp + 0x9ac], ebx
mov dword [ebp + 0x2a54], ebx
mov dword [ebp + 0x3268], ebx
mov dword [ebp + 0x10c], ebx
mov dword [ebp + 0x110], ebx
add edx, 0x1f4
mov dword [ebp + 0x6c28], edx
call fcn.00401d39
push 0x1b0
lea edx, [esp + 0x458]
push ebx
push edx
mov dword [ebp + 0x114], eax
call fcn.004c14b0
mov eax, esi
add esp, 0x40
lea esi, [esp + 0x420]
movzx ecx, byte [esi]
xor ecx, eax
sar eax, 8
and ecx, 0xff
and eax, 0xffffff
xor eax, dword [ecx*4 + 0x53a208]
add esi, 1
lea edx, [esp + 0x5d0]
cmp esi, edx
jb 0x41f903
mov ecx, dword [ebp + 0x140]
not eax
mov dword [ebp + 0x30b4], eax
mov eax, dword [0x563914]
mov edi, dword [eax + 4]
mov edi, dword [edi + ecx*4]
xor dword [eax + 0x10], edi
mov edi, dword [eax + 4]
lea edx, [eax + 4]
mov esi, eax
mov esi, dword [esi]
mov dword [edi + ecx*4], esi
mov edx, dword [edx]
mov ecx, dword [edx + ecx*4]
xor dword [eax + 0x10], ecx
mov ecx, dword [ebp + 0x144]
add eax, 0x10
mov eax, dword [0x563914]
mov edi, dword [eax + 4]
mov edi, dword [edi + ecx*4]
xor dword [eax + 0x10], edi
mov edi, dword [eax + 4]
lea edx, [eax + 4]
mov esi, eax
mov esi, dword [esi]
mov dword [edi + ecx*4], esi
mov edx, dword [edx]
mov ecx, dword [edx + ecx*4]
xor dword [eax + 0x10], ecx
mov ecx, dword [ebp + 0x148]
add eax, 0x10
mov eax, dword [0x563914]
mov edi, dword [eax + 4]
mov edi, dword [edi + ecx*4]
xor dword [eax + 0x10], edi
mov edi, dword [eax + 4]
lea edx, [eax + 4]
mov esi, eax
mov esi, dword [esi]
mov dword [edi + ecx*4], esi
mov edx, dword [edx]
mov ecx, dword [edx + ecx*4]
xor dword [eax + 0x10], ecx
mov ecx, dword [ebp + 0x14c]
add eax, 0x10
mov eax, dword [0x563914]
mov edi, dword [eax + 4]
mov edi, dword [edi + ecx*4]
xor dword [eax + 0x10], edi
mov edi, dword [eax + 4]
lea edx, [eax + 4]
mov esi, eax
mov esi, dword [esi]
add eax, 0x10
mov dword [edi + ecx*4], esi
mov edx, dword [edx]
mov ecx, dword [edx + ecx*4]
xor dword [eax], ecx
mov dword [ebp + 0x13c], ebx
mov dword [ebp + 0x6bc0], ebx
call fcn.00401d39
mov ecx, dword [ebp + 0x164]
mov dword [ebp + 0x2a34], eax
mov dword [ebp + 0x2a3c], ebx
mov dword [ebp + 0x2a38], ebx
mov dword [ebp + 0x2a40], ebx
mov dword [ebp + 0x3058], ebx
mov dword [ebp + 0x305c], ebx
mov dword [ebp + 0x3060], ebx
mov edx, dword [ecx]
mov eax, dword [edx + 0x9c]
call eax
add eax, 1
push 4
mov dword [ebp + 0x3064], eax
call fcn.004c1ea3
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x82c], ebx
cmp eax, ebx
je 0x41fa58
mov ecx, eax
call fcn.004a72d0
jmp 0x41fa5a
xor eax, eax
or esi, 0xffffffff
push 4
mov dword [esp + 0x830], esi
mov dword [ebp + 0x578], eax
call fcn.004c1ea3
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x82c], 1
je 0x41fa90
mov ecx, eax
call fcn.004a72d0
jmp 0x41fa92
xor eax, eax
push 4
mov dword [esp + 0x830], esi
mov dword [ebp + 0x57c], eax
call fcn.004c1ea3
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x82c], 2
je 0x41fac5
mov ecx, eax
call fcn.004a72d0
jmp 0x41fac7
xor eax, eax
push 4
mov dword [esp + 0x830], esi
mov dword [ebp + 0x580], eax
call fcn.004c1ea3
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x82c], 3
je 0x41fafa
mov ecx, eax
call fcn.004a72d0
jmp 0x41fafc
xor eax, eax
push 0x7e98
mov dword [esp + 0x830], esi
mov dword [ebp + 0x584], eax
call fcn.004c1ea3
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x82c], 4
je 0x41fb32
mov ecx, eax
call fcn.004024e1
jmp 0x41fb34
xor eax, eax
push 0x184
mov dword [esp + 0x830], esi
mov dword [ebp + 0x1780], eax
call fcn.004c1ea3
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x82c], 5
je 0x41fb6a
mov ecx, eax
call fcn.004027b6
jmp 0x41fb6c
xor eax, eax
push 0x840
mov dword [esp + 0x830], esi
mov dword [ebp + 0x17f0], eax
call fcn.004c1ea3
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x82c], 6
je 0x41fba2
mov ecx, eax
call fcn.00401fc3
jmp 0x41fba4
xor eax, eax
mov dword [ebp + 0x1798], eax
mov edx, dword [0x563918]
mov eax, dword [edx + 0x228c]
cmp eax, ebx
mov ecx, dword [0x56391c]
mov dword [esp + 0x82c], esi
jne 0x41fbdf
mov eax, dword [ebp + 0x164]
mov edi, dword [eax + 8]
mov edx, dword [ecx]
mov eax, dword [eax + 4]
mov edx, dword [edx + 0xc]
neg edi
push edi
neg eax
jmp 0x41fbeb
mov edx, dword [edx + 0x2290]
mov edi, dword [ecx]
push edx
mov edx, dword [edi + 0xc]
push eax
mov eax, dword [esp + 0x20]
push eax
call edx
mov ecx, ebp
call fcn.00401eba
mov ecx, dword [0x56391c]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
lea edx, [esp + 0x420]
push edx
call eax
cmp eax, 4
jne 0x41fc30
mov ecx, dword [0x563918]
mov edx, dword [ecx + 0xc]
push ebx
push ebx
push 0x401
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x41ff79
mov ecx, ebp
call fcn.00401640
mov ecx, ebp
call fcn.0040279d
mov ecx, ebp
call fcn.00401965
xor eax, eax
mov dword [ebp + 0x30b0], ebx
lea ecx, [ebp + 0xe8d1]
lea edi, [eax + 1]
cmp byte [ecx], bl
jne 0x41fc69
add eax, edi
add ecx, 0x1e0
cmp eax, 0x10
jl 0x41fc56
jmp 0x41fc6f
mov dword [ebp + 0x30b0], edi
lea eax, [ebp + 0xe1c6]
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
call fcn.0048d270
add esp, 4
cmp eax, dword [ebp + 0x120]
je 0x41fc98
mov dword [ebp + 0x120], eax
mov dword [esp + 0x14], edi
push str.global.nws
call fcn.0048d270
mov ecx, dword [0x563918]
add esp, 4
cmp eax, dword [ecx + 0x2284]
je 0x41fcbd
mov dword [ecx + 0x2284], eax
mov dword [esp + 0x1c], edi
push str.release.txt
call fcn.0048d270
mov ecx, dword [0x563918]
add esp, 4
cmp eax, dword [ecx + 0x2280]
je 0x41fd04
push 0x89
mov dword [ecx + 0x2280], eax
call fcn.00402617
mov ecx, dword [ebp + 0x1794]
add esp, 4
push ebx
push eax
push 0x510d67
push 5
push 0x510d67
call fcn.0040273e
call fcn.0048d310
test eax, eax
je 0x41fd23
mov ecx, dword [0x56391c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x58]
push 0x510d67
push 6
push 0xf
call edx
mov ecx, dword [0x563918]
cmp byte [ecx + 0x2728], bl
lea eax, [ecx + 0x2728]
je 0x41fdfa
cmp dword [ebp + 0x30ac], ebx
je 0x41fdfa
push eax
lea eax, [esp + 0x24]
push str._chat__s
push eax
call fcn.004c1313
mov edx, dword [0x563918]
add esp, 0xc
mov dword [esp + 0x18], edi
add edx, 0x2748
lea ebx, [ebx]
cmp byte [edx], bl
je 0x41fde3
lea edi, [esp + 0x20]
add edi, esi
lea ebx, [ebx]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x41fd80
mov cx, word [0x511d80]
mov eax, edx
mov word [edi], cx
mov edi, eax
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x41fd98
sub eax, edi
mov esi, edi
lea edi, [esp + 0x20]
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x41fdb0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 1
add edx, 0x20
or esi, 0xffffffff
cmp eax, 9
mov dword [esp + 0x18], eax
mov edi, 1
jl 0x41fd70
mov ecx, dword [ebp + 0x1794]
push ebx
lea edx, [esp + 0x24]
push edx
call fcn.00402793
mov ecx, dword [0x563918]
cmp byte [ecx + 0x2398], bl
lea edx, [ecx + 0x2398]
je 0x41fe4f
cmp byte [ecx + 0x23d8], bl
lea eax, [ecx + 0x23d8]
je 0x41fe4f
mov ecx, dword [ebp + 0x138]
cmp dword [ecx + 0x1f6], ebx
jne 0x41fe4f
push eax
push edx
lea edx, [esp + 0x228]
push str._squadjoin__s:_s
push edx
call fcn.004c1313
mov ecx, dword [ebp + 0x1794]
add esp, 0x10
push ebx
lea eax, [esp + 0x224]
push eax
call fcn.00402793
cmp dword [ebp + 0xe17e], ebx
je 0x41fef4
cmp dword [esp + 0x1c], ebx
je 0x41fe9f
push 0x27144
call fcn.004c1ea3
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x82c], 7
je 0x41fee5
mov edx, dword [ebp + 0x164]
push 5
lea ecx, [ebp + 0x3074]
push ecx
push edx
push str.global.nws
mov ecx, eax
call fcn.00401569
jmp 0x41fee7
cmp dword [esp + 0x14], ebx
je 0x41fef4
push 0x27144
call fcn.004c1ea3
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x82c], 8
je 0x41fee5
mov edx, dword [ebp + 0x164]
push 5
lea ecx, [ebp + 0x3074]
push ecx
push edx
lea edx, [ebp + 0xe1c6]
push edx
mov ecx, eax
call fcn.00401569
jmp 0x41fee7
xor eax, eax
mov dword [ebp + 0x17fc], eax
mov dword [esp + 0x82c], esi
mov eax, dword [0x563908]
mov eax, dword [eax + 0x6bd8]
cmp eax, ebx
je 0x41ff14
mov ecx, dword [ebp + 0x1770]
cdq
xor eax, edx
sub eax, edx
push eax
call fcn.004023d8
push 0xc
call fcn.004c1ea3
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x82c], 9
je 0x41ff41
lea ecx, [ebp + 0xe1aa]
push ecx
mov ecx, eax
call fcn.004013bb
jmp 0x41ff43
xor eax, eax
mov dword [ebp + 0x17f4], eax
mov edx, dword [0x563918]
cmp dword [edx + 0x2370], ebx
mov dword [esp + 0x82c], esi
je 0x41ff6d
cmp dword [ebp + 0x30ac], ebx
je 0x41ff6d
mov ecx, eax
call fcn.0040168b
mov dword [ebp + 0x30ac], ebx
mov dword [ebp + 0x134], edi
mov ecx, dword [esp + 0x824]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.004c118f
add esp, 0x81c
ret 4