Function at 0x4249b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
push esi
call fcn.00424140
mov eax, dword [0x4e3b2c]
add esp, 4
cmp eax, 0xffffffff
je 0x424a00
push eax
push str.ERROR:_ERROR:_Network_Out_of_Sync_at_tick__d
push 0x503b20
call fcn.004b0670
mov eax, dword [0x4ddf30]
add esp, 0xc
push 0xffffffffffffffff
push eax
push 0
push 0xfa
push 0x64
push 0x503b20
push esi
call fcn.0042dc00
add esp, 0x1c
mov al, byte [0x6b9890]
test al, al
je 0x424a3b
push str.ERROR:_ERROR:_____Latency_is_out_of_sync
push 0x503b20
call fcn.004b0670
mov ecx, dword [0x4ddf30]
add esp, 8
push 0xffffffffffffffff
push ecx
push 0
push 0x109
push 0x64
push 0x503b20
push esi
call fcn.0042dc00
add esp, 0x1c
mov al, byte [0x6b9850]
test al, al
je 0x424a9f
mov al, byte [0x6b9854]
test al, al
jne 0x424a6a
push str.ORDER_STALL:_ORDER_STALL
push 0x503b20
call fcn.004b0670
mov edx, dword [0x4ddf30]
add esp, 8
push 0xffffffffffffffff
push edx
jmp 0x424a88
cmp al, 1
jne 0x424a9f
push str.PULSE_STALL:_PULSE_STALL
push 0x503b20
call fcn.004b0670
mov eax, dword [0x4ddf30]
add esp, 8
push 0xffffffffffffffff
push eax
push 0
push 0x109
push 0x64
push 0x503b20
push esi
call fcn.0042dc00
add esp, 0x1c
mov eax, dword [0x798384]
mov ecx, dword [0x798380]
mov edx, dword [0x797e68]
cmp eax, 0xcaca
mov eax, dword [0x797e70]
push ecx
push edx
push eax
jne 0x424ac6
push str.PIXEL_555_R_04X_G_04X_B_04X
jmp 0x424acb
push str.PIXEL_565_R_04X_G_04X_B_04X
push 0x503b20
call fcn.004b0670
mov ecx, dword [0x4ddf30]
add esp, 0x14
push 0xffffffffffffffff
push ecx
push 0
push 0x118
push 0x28
push 0x503b20
push esi
call fcn.0042dc00
xor edx, edx
add esp, 0x1c
mov dx, word [0x6b9858]
push edx
push str._ld_MTPS
push 0x503b20
call fcn.004b0670
mov eax, dword [0x4ddf30]
add esp, 0xc
push 0xffffffffffffffff
push eax
push 0
push 0x12c
push 0x1a4
push 0x503b20
push esi
call fcn.0042dc00
xor ecx, ecx
add esp, 0x1c
mov cx, word [0x4e3b14]
push ecx
push str._ld_FPS
push 0x503b20
call fcn.004b0670
mov edx, dword [0x4ddf30]
add esp, 0xc
push 0xffffffffffffffff
push edx
push 0
push 0x136
push 0x1a4
push 0x503b20
push esi
call fcn.0042dc00
xor eax, eax
add esp, 0x1c
mov ax, word [0x4e3b18]
push eax
push str._ld_PCT
push 0x503b20
call fcn.004b0670
mov ecx, dword [0x4ddf30]
add esp, 0xc
push 0xffffffffffffffff
push ecx
push 0
push 0x140
push 0x1a4
push 0x503b20
push esi
call fcn.0042dc00
xor edx, edx
add esp, 0x1c
mov dx, word [0x6b9864]
push edx
push str._ld_LMPS
push 0x503b20
call fcn.004b0670
mov eax, dword [0x4ddf30]
add esp, 0xc
push 0xffffffffffffffff
push eax
push 0
push 0x14a
push 0x1a4
push 0x503b20
push esi
call fcn.0042dc00
add esp, 0x1c
mov ecx, dword [0x4e5fc4]
push ecx
push str._ld_Vol
push 0x503b20
call fcn.004b0670
mov edx, dword [0x4ddf30]
add esp, 0xc
push 0xffffffffffffffff
push edx
push 0
push 0x15e
push 0x1a4
push 0x503b20
push esi
call fcn.0042dc00
mov eax, dword [0x798518]
add esp, 0x1c
push eax
push str._ld_fps
push 0x503b20
call fcn.004b0670
mov ecx, dword [0x4ddf30]
add esp, 0xc
push 0xffffffffffffffff
push ecx
push 0
push 0x168
push 0x1a4
push 0x503b20
push esi
call fcn.0042dc00
mov edx, dword [0x5173f4]
add esp, 0x1c
push edx
push str._ld_ticks
push 0x503b20
call fcn.004b0670
mov eax, dword [0x4ddf30]
add esp, 0xc
push 0xffffffffffffffff
push eax
push 0
push 0x172
push 0x1a4
push 0x503b20
push esi
call fcn.0042dc00
mov al, byte [0x7984c4]
add esp, 0x1c
test al, al
je 0x424d33
call fcn.0045c430
test al, al
je 0x424cea
mov ecx, dword [0x4e3ae8]
mov edx, dword [0x6b9910]
mov eax, dword [0x6b98bc]
push ecx
push edx
push eax
push str._d__d_H__d_
push 0x503b20
call fcn.004b0670
mov ecx, dword [0x4ddf30]
add esp, 0x14
push 0xffffffffffffffff
push ecx
jmp 0x424d19
mov edx, dword [0x4e3ae8]
mov eax, dword [0x6b9910]
mov ecx, dword [0x6b98bc]
push edx
push eax
push ecx
push str._ld__d_C__d_
push 0x503b20
call fcn.004b0670
mov edx, dword [0x4ddf30]
add esp, 0x14
push 0xffffffffffffffff
push edx
push 0
push 0x17c
push 0x168
push 0x503b20
push esi
call fcn.0042dc00
add esp, 0x1c
mov ecx, dword [0x6b9888]
xor eax, eax
mov al, byte [0x798544]
push eax
push ecx
push str._d_MySideId__d
push 0x503b20
call fcn.004b0670
mov edx, dword [0x4ddf30]
add esp, 0x10
push 0xffffffffffffffff
push edx
push 0
push 0x172
push 0x12c
push 0x503b20
push esi
call fcn.0042dc00
mov al, byte [0x6b98d8]
add esp, 0x1c
test al, al
je 0x424da6
mov eax, dword [0x4ddf30]
push 0xffffffffffffffff
push eax
push 0
push 0xc8
push 0x32
push str.ACK_ACK
push esi
call fcn.0042dc00
add esp, 0x1c
mov byte [0x6b98d8], 0
mov ecx, dword [0x6b93dc]
mov edx, dword [0x4e3b1c]
mov eax, dword [0x6b98bc]
push ecx
mov ecx, dword [0x6b9914]
push edx
push eax
push ecx
push str.WQS:__d___d___d_2WL____dbps__n
push 0x503b20
call fcn.004b0670
mov edx, dword [0x4ddf30]
add esp, 0x18
push 0xffffffffffffffff
push edx
push 0
push 0xdc
push 0x1e
push 0x503b20
push esi
call fcn.0042dc00
mov eax, dword [0x6b9918]
add esp, 0x1c
push eax
push str.Orders:__d
push 0x503b20
call fcn.004b0670
mov ecx, dword [0x4ddf30]
add esp, 0xc
push 0xffffffffffffffff
push ecx
push 0
push 0xf0
push 0x1e
push 0x503b20
push esi
call fcn.0042dc00
mov edi, dword [str.2222]
mov eax, dword [0x786d48]
mov edx, dword [0x4eb04c]
add esp, 0x1c
cmp edi, eax
jge 0x424ead
mov ebx, dword [0x4e41dc]
cmp edx, ebx
jle 0x424ead
mov eax, dword [0x798538]
xor ebp, ebp
lea ecx, [eax + edi]
mov eax, dword [0x79853c]
sub eax, ebx
xor ebx, ebx
add eax, edx
shr eax, 5
shr ecx, 5
mov edx, dword [eax*4 + 0x547df0]
add edx, ecx
lea edx, [edx + edx*2]
shl edx, 2
mov bx, word [edx + 0x517df0]
mov edx, dword [edx + 0x517df4]
mov ebx, dword [ebx*4 + 0x6d9b58]
mov ebx, dword [ebx + 0x10]
mov bp, word [ebx]
push ebp
push edx
push eax
mov eax, dword [0x4eb04c]
push ecx
push eax
push edi
push str.Mouse__d__d_Over_Tile__d__d_Data__08X__col__04X_
push 0x503b20
call fcn.004b0670
add esp, 0x20
jmp 0x424ec1
push edx
push edi
push str.Mouse__d__d
push 0x503b20
call fcn.004b0670
add esp, 0x10
mov ecx, dword [0x4ddf30]
push 0xffffffffffffffff
push ecx
push 0
push 0x17c
push 0x28
push 0x503b20
push esi
call fcn.0042dc00
mov edx, dword [0x4ddf30]
add esp, 0x1c
push 0xffffffffffffffff
push edx
push 0
push 0x34
push 0xa
push 0x5166a0
push esi
call fcn.0042dc00
mov eax, dword [0x4ddf30]
add esp, 0x1c
push 0xffffffffffffffff
push eax
push 0
push 0x3e
push 0xa
push 0x5165c8
push esi
call fcn.0042dc00
mov ecx, dword [0x4ddf30]
add esp, 0x1c
push 0xffffffffffffffff
push ecx
push 0
push 0x48
push 0xa
push 0x6dc470
push esi
call fcn.0042dc00
mov edx, dword [0x4ddf30]
add esp, 0x1c
push 0xffffffffffffffff
push edx
push 0
push 0x52
push 0xa
push 0x6f9840
push esi
call fcn.0042dc00
mov al, byte [0x7984c4]
add esp, 0x1c
test al, al
je 0x4251b2
mov eax, dword [0x4ddf30]
push 0xffffffffffffffff
push eax
push 0
push 0x32
push 0xfa
push str.Network_settings
push esi
call fcn.0042dc00
xor ecx, ecx
add esp, 0x1c
mov cl, byte [0x4e3b00]
push ecx
push str.Units_ld
push 0x503b20
call fcn.004b0670
mov edx, dword [0x4ddf30]
add esp, 0xc
push 0xffffffffffffffff
push edx
push 0
push 0x46
push 0xfa
push 0x503b20
push esi
call fcn.0042dc00
xor eax, eax
add esp, 0x1c
mov ax, word [0x4e3b08]
push eax
push str.Credits_ld
push 0x503b20
call fcn.004b0670
mov ecx, dword [0x4ddf30]
add esp, 0xc
push 0xffffffffffffffff
push ecx
push 0
push 0x5a
push 0xfa
push 0x503b20
push esi
call fcn.0042dc00
xor edx, edx
add esp, 0x1c
mov dl, byte [0x4e3b04]
push edx
push str.TechLevel_ld
push 0x503b20
call fcn.004b0670
mov eax, dword [0x4ddf30]
add esp, 0xc
push 0xffffffffffffffff
push eax
push 0
push 0x6e
push 0xfa
push 0x503b20
push esi
call fcn.0042dc00
xor ecx, ecx
add esp, 0x1c
mov cl, byte [0x4e3b0c]
push ecx
push str.AI_Players_ld
push 0x503b20
call fcn.004b0670
mov edx, dword [0x4ddf30]
add esp, 0xc
push 0xffffffffffffffff
push edx
push 0
push 0x82
push 0xfa
push 0x503b20
push esi
call fcn.0042dc00
add esp, 0x1c
xor eax, eax
mov al, byte [0x6b9838]
push eax
push str.Worms_d
push 0x503b20
call fcn.004b0670
mov ecx, dword [0x4ddf30]
add esp, 0xc
push 0xffffffffffffffff
push ecx
push 0
push 0x96
push 0xfa
push 0x503b20
push esi
call fcn.0042dc00
xor edx, edx
add esp, 0x1c
mov dl, byte [0x6b9834]
push edx
push str.Crates_d
push 0x503b20
call fcn.004b0670
mov eax, dword [0x4ddf30]
add esp, 0xc
push 0xffffffffffffffff
push eax
push 0
push 0xaa
push 0xfa
push 0x503b20
push esi
call fcn.0042dc00
mov al, byte [0x7984c0]
add esp, 0x1c
xor bl, bl
test al, al
mov byte [esp + 0x28], bl
jbe 0x4251b2
mov eax, dword [esp + 0x28]
mov ebp, eax
push eax
and ebp, 0xff
lea edi, [ebp + ebp*2]
lea edi, [edi + edi*4]
shl edi, 2
call fcn.004a4660
xor ecx, ecx
add esp, 4
mov cl, byte [eax + 0x24253]
xor edx, edx
mov dl, byte [ebp + 0x8cd4f0]
push ecx
xor eax, eax
xor ecx, ecx
mov al, byte [edi + 0x6b922c]
mov cl, byte [edi + 0x6b922e]
push edx
push eax
mov eax, dword [edi + 0x6b9218]
lea edx, [edi + 0x798630]
push ecx
mov ecx, dword [edi + 0x6b9210]
push edx
xor edx, edx
mov dl, byte [edi + 0x6b9231]
push ebp
push eax
push ecx
push edx
push str._d__d__d__Player__d_:__s___d__house___d__d__d_
push 0x503b20
call fcn.004b0670
mov eax, dword [0x4ddf30]
add esp, 0x2c
lea ebp, [ebp + ebp*2]
push 0xffffffffffffffff
push eax
lea ecx, [ebp + ebp*4 + 0xbe]
push 0
push ecx
push 0xc8
push 0x503b20
push esi
call fcn.0042dc00
mov al, byte [0x7984c0]
add esp, 0x1c
inc bl
mov byte [edi + 0x6b9231], 0
cmp bl, al
mov byte [esp + 0x28], bl
jb 0x4250fb
mov al, byte [0x513484]
test al, al
je 0x425285
mov edx, dword [0x786d48]
mov ecx, dword [0x4e41dc]
mov al, 0x50
add ecx, 0x14
mov byte [esp + 0x10], al
mov byte [esp + 0x11], al
lea eax, [edx - 0x190]
lea edx, [esp + 0x14]
shr eax, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
add eax, 0x190
add ecx, 0x3c
push edx
push esi
mov byte [esp + 0x30], 0x64
mov byte [esp + 0x31], 0x64
mov byte [esp + 0x32], 0x64
mov byte [esp + 0x33], 0x64
mov byte [esp + 0x1a], 0xfa
mov byte [esp + 0x1b], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call fcn.0042d360
mov eax, dword [esp + 0x30]
add esp, 8
lea ecx, [esp + 0x14]
push eax
push ecx
push esi
call fcn.0042d140
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add esp, 0xc
sub edx, eax
add ecx, 0xf
push edi
push 0
push edx
push ecx
push eax
push 0x512d78
push esi
call fcn.0042e050
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
add esp, 0x1c
sub edx, eax
add ecx, 0x23
push edi
push 0
push edx
push ecx
push eax
push 0x513098
push esi
call fcn.0042e050
add esp, 0x1c
mov al, byte [0x4eb00c]
test al, al
je 0x425493
mov edx, dword [0x4ddf30]
push 0xffffffffffffffff
xor ebp, ebp
push edx
push ebp
push 0x12c
push 0x28
push str.Channel
push esi
call fcn.0042dc00
mov eax, dword [0x4ddf30]
add esp, 0x1c
push 0xffffffffffffffff
push eax
push ebp
push 0x13b
push 0x28
push 0x4ddf54
push esi
call fcn.0042dc00
mov ecx, dword [0x4ddf30]
add esp, 0x1c
push 0xffffffffffffffff
push ecx
push ebp
push 0x14a
push 0x28
push 0x4ddf50
push esi
call fcn.0042dc00
add esp, 0x1c
mov dword [esp + 0x28], ebp
mov edi, 0x64
mov edx, dword [esp + 0x28]
push edx
push 0x4dc7a4
push 0x503b20
call fcn.004b0670
mov eax, dword [0x4ddf30]
add esp, 0xc
push 0xffffffffffffffff
push eax
push 0
push 0x12c
push edi
push 0x503b20
push esi
call fcn.0042dc00
mov ecx, dword [0x795608]
add esp, 0x1c
mov ebx, dword [ecx + ebp + 4]
push ebx
call dword [sym.imp.mss32.dll__AIL_sample_status_4]
test al, 4
je 0x4253b8
mov edx, dword [0x795608]
mov eax, dword [edx + ebp + 0x20]
push eax
push 0x4dc7a4
push 0x503b20
call fcn.004b0670
mov ecx, dword [0x4ddf34]
add esp, 0xc
push 0xffffffffffffffff
push ecx
push 0
push 0x13b
push edi
push 0x503b20
push esi
call fcn.0042dc00
add esp, 0x1c
push ebx
call dword [sym.imp.mss32.dll__AIL_sample_volume_4]
push eax
push 0x4dc7a4
push 0x503b20
call fcn.004b0670
mov edx, dword [0x4ddf34]
add esp, 0xc
push 0xffffffffffffffff
push edx
push 0
push 0x14a
push edi
push 0x503b20
push esi
call fcn.0042dc00
add esp, 0x1c
mov ebx, dword [esp + 0x28]
add edi, 0x1e
inc ebx
add ebp, 0x24
cmp edi, 0x118
mov dword [esp + 0x28], ebx
jb 0x4252f9
mov ebx, 0x15e
xor ebp, ebp
mov dword [esp + 0x28], ebx
push ebp
push str.Queue__d
push 0x503b20
call fcn.004b0670
mov eax, dword [0x4ddf30]
add esp, 0xc
push 0xffffffffffffffff
push eax
push 0
push ebx
push 0x28
push 0x503b20
push esi
call fcn.0042dc00
mov edi, dword [ebp*4 + 0x7955b0]
mov eax, dword [ebp*4 + 0x795580]
add esp, 0x1c
cmp edi, eax
je 0x42547f
mov ebx, 0x64
lea ecx, [ebp + edi*2]
mov edx, dword [ecx*4 + 0x795588]
push edx
push str.__d_
push 0x503b20
call fcn.004b0670
mov eax, dword [0x4ddf30]
mov ecx, dword [esp + 0x34]
add esp, 0xc
push 0xffffffffffffffff
push eax
push 0
push ecx
push ebx
push 0x503b20
push esi
call fcn.0042dc00
lea eax, [edi + 1]
xor edx, edx
mov ecx, 5
add esp, 0x1c
div ecx
mov eax, dword [ebp*4 + 0x795580]
add ebx, 0x1e
mov edi, edx
cmp edi, eax
jne 0x425423
mov ebx, dword [esp + 0x28]
add ebx, 0xf
inc ebp
cmp ebx, 0x17c
mov dword [esp + 0x28], ebx
jb 0x4253de
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret