Function at 0x404fc0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x4c
mov ecx, dword [0x484adc]
push ebx
and ecx, 0xff
push ebp
push esi
xor esi, esi
lea eax, [ecx + ecx*4]
xor bl, bl
push edi
mov byte [esp + 0x14], bl
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
shl eax, 1
sub eax, ecx
shl eax, 3
mov cl, byte [eax + 0x456df4]
test cl, cl
jbe 0x405033
mov ecx, dword [esp + 0x14]
and ecx, 0xff
mov edx, ecx
shl edx, 4
add edx, ecx
shl edx, 4
mov cl, byte [edx + eax + 0x457004]
lea edx, [edx + eax + 0x457004]
test cl, cl
je 0x405023
sub cl, 2
mov byte [edx], cl
mov cl, byte [eax + 0x456df4]
inc bl
cmp bl, cl
mov byte [esp + 0x14], bl
jb 0x404ff8
mov al, byte [0x484604]
inc al
cmp al, 0x3c
mov byte [0x484604], al
jb 0x405d80
mov byte [0x484604], 0
mov byte [esp + 0x14], 0
mov dword [esp + 0x20], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], 0x447310
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], 0x44e1eb
mov dword [esp + 0x18], 0x456cf3
mov esi, dword [esp + 0x18]
mov byte [esi + 0x102], 0
mov byte [esi + 0x103], 0
call fcn.00433991
test al, 0x3f
jne 0x4050c9
call fcn.00433991
cdq
mov ecx, 0xe
push 0
idiv ecx
mov eax, dword [esp + 0x18]
push 0
push 0xc
push 0xff
mov byte [esp + 0x58], dl
mov edx, dword [esp + 0x58]
push edx
push eax
push 0x484608
call fcn.00404270
add esp, 0x1c
mov al, byte [esi]
mov byte [esp + 0x1c], 0
test al, al
jbe 0x40524c
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
and ebp, 0xff
lea eax, [ecx + ebp]
mov ecx, dword [eax*8 + 0x456dfc]
dec ecx
mov dword [eax*8 + 0x456dfc], ecx
jne 0x405234
mov dl, byte [eax*8 + 0x456df8]
mov al, byte [eax*8 + 0x456df9]
mov byte [esp + 0x55], al
mov esi, dword [esp + 0x55]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x54], dl
mov edi, dword [esp + 0x54]
push esi
push eax
push edi
push eax
call fcn.00404cb0
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x54], al
mov ebx, dword [esp + 0x54]
push ebx
push esi
push edi
push ecx
call fcn.00404d70
mov eax, dword [esp + 0x38]
mov cl, byte [esp + 0x3c]
xor edx, edx
add esp, 0x20
mov dl, byte [eax]
dec edx
cmp ebp, edx
jge 0x405192
mov eax, ebp
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x18]
add eax, edx
shl eax, 3
inc cl
mov edx, dword [eax + 0x456e00]
mov byte [esp + 0x24], cl
mov dword [eax + 0x456df8], edx
mov edx, dword [eax + 0x456e04]
mov dword [eax + 0x456dfc], edx
mov eax, dword [esp + 0x24]
xor edx, edx
and eax, 0xff
mov dl, byte [ebp]
dec edx
cmp eax, edx
jl 0x405154
mov ebp, dword [esp + 0x18]
and edi, 0xff
and esi, 0xff
push 1
mov al, byte [ebp]
push 0
dec al
push 0
mov byte [ebp], al
mov eax, dword [esp + 0x2c]
add edi, eax
add esi, eax
push 0xb
lea ecx, [edi + edi*8]
lea eax, [esi + esi*8]
lea edx, [edi + ecx*8]
lea ecx, [esi + eax*8]
mov eax, ebx
mov byte [edx*8 + 0x4872db], 0
and eax, 0xff
lea edx, [esp + 0x65]
mov byte [ecx*8 + 0x4872db], 0
sub edx, eax
mov cl, byte [edx]
mov dl, byte [esp + eax + 0x64]
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
push 0x484608
call fcn.00404390
add esp, 0x20
lea esi, [esp + 0x54]
mov edi, 2
jmp 0x40520c
mov ebp, dword [esp + 0x18]
mov bl, byte [esi]
cmp bl, 2
je 0x405222
call fcn.00433991
test al, 1
je 0x405230
cmp byte [ebp - 1], 0xa
jae 0x405230
mov ecx, dword [esp + 0x14]
push ebx
push ecx
call fcn.00404100
add esp, 8
inc esi
dec edi
jne 0x405208
mov edx, dword [esp + 0x18]
mov al, byte [esp + 0x1c]
inc al
mov cl, byte [edx]
mov byte [esp + 0x1c], al
cmp al, cl
jb 0x4050d8
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
cmp byte [eax], 0
je 0x4052a0
mov ecx, dword [esp + 0x18]
mov byte [edx - 0x21], 4
mov al, byte [ecx - 1]
cmp al, 0xa
jb 0x40528c
mov edi, 0x5d41e0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4052a0
and eax, 0xff
push eax
push 0x5d4260
push edx
call fcn.00433bbe
add esp, 0xc
mov byte [esp + 0x1c], 1
mov dword [esp + 0x38], 1
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
lea eax, [ecx + edx]
lea ecx, [eax + eax*8]
lea esi, [eax + ecx*8]
shl esi, 3
mov al, byte [esi + 0x4872da]
test al, al
je 0x4054e3
mov al, byte [esi + 0x48731e]
mov ebp, dword [esp + 0x1c]
xor bl, bl
test al, al
mov byte [esp + 0x24], bl
jbe 0x405327
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov eax, ecx
and eax, 0xff
lea eax, [eax + eax*2]
shl eax, 1
cmp word [eax + esi + 0x4872e6], 0
je 0x40530c
dec word [eax + esi + 0x4872e6]
jmp 0x405317
push ecx
push ebp
push edi
call fcn.00404be0
add esp, 0xc
mov al, byte [esi + 0x48731e]
inc bl
cmp bl, al
mov byte [esp + 0x24], bl
jb 0x4052e7
call fcn.00433991
test al, 0xf
jne 0x4054c7
mov bl, byte [esp + 0x1c]
cmp bl, 2
jbe 0x4054c7
mov edx, dword [esp + 0x18]
cmp byte [edx - 1], 1
jbe 0x4054c7
call fcn.00433991
and al, 0xf
mov byte [esp + 0x34], al
mov al, byte [esi + 0x4872d6]
test al, al
jne 0x4053b3
call fcn.00433991
test al, 3
jne 0x4053b3
call fcn.00433991
test al, 1
je 0x40538f
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
and eax, 0xff
add eax, edi
shl eax, 7
add eax, 0x573500
jmp 0x405394
mov eax, 0x484608
mov cl, byte [esi + 0x4872dd]
mov dl, byte [esi + 0x4872dc]
push 6
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push 0
push 0
push ebp
push ecx
jmp 0x4054be
call fcn.00433991
and eax, 0x8000007f
jns 0x4053c4
dec eax
or eax, 0xffffff80
inc eax
cmp al, bl
mov byte [esp + 0x4c], al
je 0x4053b3
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x20]
mov eax, edi
and eax, 0xff
add eax, edx
lea edx, [eax + eax*8]
lea eax, [eax + edx*8]
mov cl, byte [eax*8 + 0x4872da]
test cl, cl
je 0x4053b3
mov ebx, dword [esp + 0x20]
mov eax, edi
and eax, 0xff
add eax, ebx
lea ecx, [eax + eax*8]
lea eax, [eax + ecx*8]
mov cl, byte [esi + 0x4872d6]
shl eax, 3
mov dl, byte [eax + 0x4872d6]
cmp dl, cl
jb 0x4054c7
mov ax, word [eax + 0x4870f2]
cmp ax, word [esi + 0x4870f2]
je 0x4054c7
call fcn.00433991
test al, 1
je 0x405477
call fcn.00433991
test al, 1
je 0x405457
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
and eax, 0xff
add eax, ebx
shl eax, 7
add eax, 0x573500
jmp 0x40545c
mov eax, 0x484608
mov cl, byte [esi + 0x4872dd]
mov dl, byte [esi + 0x4872dc]
push 6
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push 0
push edi
push ebp
push ecx
jmp 0x4054be
call fcn.00433991
and al, 1
mov edx, dword [esp + 0x14]
neg al
sbb al, al
push 6
and al, 0xfe
push 0
add al, 5
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x58], al
push 0
mov eax, dword [esp + 0x5c]
and ecx, 0xff
push eax
push edi
push ebp
push edx
mov edx, dword [esp + 0x5c]
and eax, 0xff
add eax, edx
shl eax, 4
add eax, ecx
shl eax, 7
add eax, 0x573500
push eax
call fcn.004047b0
add esp, 0x20
cmp word [esi + 0x4870f2], 0
mov eax, dword [esp + 0x18]
jne 0x4054dd
inc byte [eax + 0x102]
jmp 0x4054e3
inc byte [eax + 0x103]
mov al, byte [esp + 0x1c]
mov edx, dword [esp + 0x38]
inc al
inc edx
cmp al, 0x80
mov byte [esp + 0x1c], al
mov dword [esp + 0x38], edx
jb 0x4052ad
call fcn.00433991
test al, 0x3f
jne 0x405562
mov edx, dword [esp + 0x18]
cmp byte [edx - 1], 2
jbe 0x405562
mov esi, dword [esp + 0x20]
xor bl, bl
call fcn.00433991
cdq
mov ecx, 0x7d
idiv ecx
add dl, 3
mov byte [esp + 0x24], dl
mov ecx, dword [esp + 0x24]
mov eax, ecx
and eax, 0xff
add eax, esi
lea edx, [eax + eax*8]
lea eax, [eax + edx*8]
mov dl, byte [eax*8 + 0x4872da]
test dl, dl
jne 0x405552
inc bl
cmp bl, 0x64
jb 0x405517
jmp 0x405566
push ecx
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004041e0
add esp, 8
jmp 0x405566
mov esi, dword [esp + 0x20]
call fcn.00433991
test al, 0x1f
jne 0x4055cf
mov edx, dword [esp + 0x18]
cmp byte [edx - 1], 0xa
jae 0x4055cf
call fcn.00433991
cdq
mov ecx, 0x7d
idiv ecx
add dl, 3
mov byte [esp + 0x24], dl
mov ecx, dword [esp + 0x24]
mov eax, ecx
and eax, 0xff
add eax, esi
lea edx, [eax + eax*8]
lea eax, [eax + edx*8]
shl eax, 3
mov dl, byte [eax + 0x4870d8]
test dl, dl
je 0x405579
mov dl, byte [eax + 0x4872da]
test dl, dl
jne 0x405579
mov dl, byte [eax + 0x4872db]
test dl, dl
jne 0x405579
mov eax, dword [esp + 0x14]
push ecx
push eax
call fcn.00404100
add esp, 8
mov edi, dword [esp + 0x2c]
mov al, byte [esp + 0x14]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x40]
mov ebx, dword [esp + 0x30]
add edi, 0x8c9
inc al
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x18]
inc edx
add ecx, 0xb0
add ebp, 8
add ebx, 0x80
add edi, 0x4648
add esi, 0x80
cmp al, 8
mov byte [esp + 0x14], al
mov dword [esp + 0x3c], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], esi
jb 0x40507b
mov byte [esp + 0x14], 0
mov ebx, 0x4591fa
mov edi, dword [esp + 0x14]
mov esi, ebx
mov ebp, 0x20
mov eax, dword [esi + 6]
test eax, eax
je 0x4056a5
dec eax
test eax, eax
mov dword [esi + 6], eax
jne 0x4056a5
mov cl, byte [esi + 2]
mov dl, byte [esi + 1]
mov al, byte [esi]
push ecx
mov cl, byte [esi - 2]
push edx
mov dl, byte [esi - 1]
push eax
push ecx
push edx
lea eax, [esi - 0x102]
push edi
push eax
call fcn.00404780
mov al, byte [esi]
add esp, 0x1c
test al, al
je 0x405688
cmp al, 1
jne 0x4056a5
mov al, byte [esi - 1]
mov cl, byte [esi - 2]
cmp al, cl
je 0x4056a5
mov dl, byte [esi + 2]
push edx
mov dl, byte [esi + 1]
push edx
push ecx
push eax
push edi
call fcn.00404ad0
add esp, 0x14
add esi, 0x110
dec ebp
jne 0x40564c
mov al, byte [esp + 0x14]
add ebx, 0x4648
inc al
cmp al, 8
mov byte [esp + 0x14], al
jb 0x405641
xor ecx, ecx
mov byte [esp + 0x14], 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x30], ecx
mov al, byte [ecx + 0x456df4]
mov byte [esp + 0x1c], 0
test al, al
jbe 0x405c68
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
and eax, 0xff
mov edx, eax
shl edx, 4
add edx, eax
shl edx, 4
lea eax, [edx + ecx]
mov dword [esp + 0x2c], eax
mov cl, byte [eax + 0x457005]
test cl, cl
je 0x405c4c
mov cl, byte [eax + 0x456ff9]
mov dl, byte [eax + 0x456ffa]
mov byte [esp + 0x28], cl
mov cl, byte [eax + 0x456ff8]
test cl, cl
sete byte [esp + 0x13]
cmp cl, 1
mov byte [esp + 0x18], cl
mov byte [esp + 0x48], dl
mov byte [eax + 0x457005], 0
je 0x405c4c
test cl, cl
jne 0x40575d
mov byte [esp + 0x18], 2
mov byte [esp + 0x12], 0x80
jmp 0x40576d
mov al, cl
inc al
cmp cl, al
mov byte [esp + 0x12], al
jae 0x405c4c
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
and eax, 0xff
mov dword [esp + 0x34], eax
mov al, byte [esp + 0x28]
mov cl, byte [esp + 0x18]
cmp cl, al
je case.default.0x40594b
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
lea eax, [ecx + edx]
lea ecx, [eax + eax*8]
lea esi, [eax + ecx*8]
shl esi, 3
mov dword [esp + 0x24], esi
mov al, byte [esi + 0x4872da]
test al, al
je case.default.0x40594b
call fcn.00433991
mov ebx, eax
and ebx, 7
add ebx, 6
call fcn.00433991
and al, 0xf
mov byte [esp + 0x11], 0
mov byte [esp + 0x50], al
mov al, byte [esp + 0x13]
test al, al
je 0x4057e9
call fcn.00433991
test al, 3
jne 0x405802
mov byte [esp + 0x11], 1
jmp 0x405802
cmp byte [esp + 0x28], 1
jne 0x4057f7
mov byte [esp + 0x11], 1
jmp 0x405802
call fcn.00433991
and al, 1
mov byte [esp + 0x11], al
mov al, byte [esp + 0x48]
cmp al, 1
je 0x405816
mov cl, byte [esp + 0x11]
test cl, cl
je case.default.0x40594b
mov cl, byte [esp + 0x28]
mov dl, byte [esi + 0x4872e1]
cmp dl, cl
mov byte [esp + 0x11], 0
je case.default.0x40594b
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x50]
cmp al, 3
mov byte [edx + 0x4872e1], cl
je 0x40584b
cmp al, 4
je 0x40584b
cmp al, 5
jne 0x405939
mov eax, dword [esp + 0x2c]
mov cl, byte [eax + 0x456ef8]
lea eax, [eax + 0x456ef8]
test cl, cl
jne 0x4058db
call fcn.00433991
test al, 1
je 0x40589d
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, esi
push ebx
and edx, 0xff
push 0
add edx, eax
push 0
push 6
push edi
shl edx, 7
push ecx
add edx, 0x576500
push ebp
push edx
call fcn.004047b0
add esp, 0x20
mov byte [esp + 0x11], 1
jmp 0x4058e4
call fcn.00433991
test al, 1
je 0x4058db
mov eax, dword [esp + 0x18]
push ebx
push 0
push 0
push 5
push edi
mov ecx, esi
push eax
mov eax, dword [esp + 0x38]
and ecx, 0xff
add ecx, eax
push ebp
shl ecx, 7
add ecx, 0x575d00
push ecx
call fcn.004047b0
add esp, 0x20
mov byte [esp + 0x11], 1
jmp 0x4058e4
call fcn.00433991
test al, 3
je 0x4058fc
mov edx, dword [esp + 0x2c]
push ebp
lea eax, [edx + 0x456ef8]
push eax
call fcn.004065e0
add esp, 8
test al, al
jne 0x40592d
call fcn.00433991
test al, 1
je 0x40592d
mov eax, dword [esp + 0x18]
push ebx
push 0
push 0
push 7
push edi
push eax
mov eax, dword [esp + 0x38]
and esi, 0xff
push ebp
add esi, eax
shl esi, 7
add esi, 0x576d00
jmp 0x405c24
mov al, byte [esp + 0x11]
test al, al
jne case.default.0x40594b
mov eax, dword [esp + 0x48]
and eax, 0xff
cmp eax, 5
ja case.default.0x40594b
jmp dword [eax*4 + 0x405dc0]
mov edx, dword [esp + 0x20]
mov eax, edi
and eax, 0xff
mov byte [esp + 0x11], 1
add eax, edx
lea ecx, [eax + eax*8]
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 0x24]
shl eax, 3
mov dword [esp + 0x4c], eax
mov dx, word [eax + 0x4870f2]
cmp dx, word [ecx + 0x4870f2]
jne 0x40599d
cmp byte [esp + 0x18], 2
je 0x40599d
call fcn.00433991
test al, 1
jne 0x405aa5
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x24]
mov al, byte [eax + 0x4872d6]
mov cl, byte [edx + 0x4872d6]
cmp al, cl
jb 0x405aa5
jne 0x405a19
mov eax, dword [esp + 0x2c]
mov al, byte [eax + 0x456ffb]
test al, al
je 0x4059db
cmp al, byte [edx + 0x4872dc]
je 0x4059db
call fcn.00433991
test al, 1
je 0x4059db
mov byte [esp + 0x11], 0
mov ecx, dword [esp + 0x2c]
mov al, byte [ecx + 0x456ffc]
test al, al
je 0x405a0d
mov edx, dword [esp + 0x24]
cmp al, byte [edx + 0x4872dd]
je 0x405a0d
cmp byte [esp + 0x18], 2
je 0x405aa5
call fcn.00433991
test al, 1
jne 0x405aa5
mov al, byte [esp + 0x11]
test al, al
je 0x405aa5
call fcn.00433991
test al, 1
je 0x405a29
mov esi, 0x484608
jmp 0x405a3e
mov edx, dword [esp + 0x20]
and esi, 0xff
add esi, edx
shl esi, 7
add esi, 0x573d00
mov ecx, dword [esp + 0x2c]
mov al, byte [ecx + 0x456ffb]
mov cl, byte [ecx + 0x456ffc]
test al, al
mov byte [esp + 0x3c], al
mov byte [esp + 0x40], cl
jne 0x405a68
mov eax, dword [esp + 0x24]
mov al, byte [eax + 0x4872dc]
mov byte [esp + 0x3c], al
test cl, cl
jne 0x405a7a
mov ecx, dword [esp + 0x24]
mov cl, byte [ecx + 0x4872dd]
mov byte [esp + 0x40], cl
test al, al
jne 0x405a83
mov byte [esp + 0x3c], 1
test cl, cl
jne 0x405a8c
mov byte [esp + 0x40], 1
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
push ebx
push edx
push eax
push 1
push edi
push ecx
push ebp
jmp 0x405c24
call fcn.00433991
test al, 1
je 0x405ab5
mov esi, 0x484608
jmp 0x405aca
mov edx, dword [esp + 0x20]
and esi, 0xff
add esi, edx
shl esi, 7
add esi, 0x574500
mov edx, dword [esp + 0x18]
push ebx
push 0
push 0
push 2
push edi
push edx
push ebp
push esi
call fcn.004047b0
mov eax, dword [esp + 0x44]
add esp, 0x20
xor dl, dl
mov cl, byte [eax + 0x48731e]
mov byte [esp + 0x38], dl
test cl, cl
jbe case.default.0x40594b
mov bl, byte [esp + 0x28]
mov esi, eax
mov eax, dword [esp + 0x38]
and eax, 0xff
lea eax, [eax + eax*2]
cmp byte [esi + eax*2 + 0x4872e2], bl
je 0x405b23
inc dl
cmp dl, cl
mov byte [esp + 0x38], dl
jb 0x405aff
jmp case.default.0x40594b
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
push ecx
push edx
push ebp
call fcn.00404be0
add esp, 0xc
jmp case.default.0x40594b
cmp byte [esp + 0x28], 1
je case.default.0x40594b
mov esi, dword [esp + 0x18]
push esi
push ebp
call fcn.004041e0
push edi
push ebp
call fcn.004041e0
push 1
push 0
push 0
push 8
push edi
push esi
push ebp
push 0x484608
call fcn.00404390
mov esi, dword [esp + 0x74]
mov ebx, dword [esp + 0x60]
mov cl, byte [esp + 0x48]
xor eax, eax
mov al, byte [esi + 0x456cf3]
xor edx, edx
add eax, ebx
add esp, 0x30
mov byte [eax*8 + 0x456df8], cl
mov dl, byte [esi + 0x456cf3]
mov al, byte [esp + 0x28]
add edx, ebx
mov byte [edx*8 + 0x456df9], al
call fcn.00433991
xor ecx, ecx
and eax, 0x3ff
mov cl, byte [esi + 0x456cf3]
add eax, 0xb4
add ecx, ebx
mov edx, dword [esp + 0x24]
mov dword [ecx*8 + 0x456dfc], eax
mov bl, byte [esi + 0x456cf3]
mov ecx, dword [esp + 0x20]
mov eax, edi
and eax, 0xff
inc bl
add eax, ecx
mov byte [edx + 0x4872db], 1
mov byte [esi + 0x456cf3], bl
lea ecx, [eax + eax*8]
lea edx, [eax + ecx*8]
mov byte [edx*8 + 0x4872db], 1
jmp case.default.0x40594b
call fcn.00433991
test al, 1
je case.default.0x40594b
mov eax, dword [esp + 0x18]
push ebx
push 0
push 0
push 5
push edi
push eax
mov eax, dword [esp + 0x38]
and esi, 0xff
push ebp
add esi, eax
shl esi, 7
add esi, 0x575d00
push esi
call fcn.004047b0
add esp, 0x20
mov al, byte [esp + 0x18]
mov edx, dword [esp + 0x34]
mov cl, byte [esp + 0x12]
inc al
inc edx
cmp al, cl
mov byte [esp + 0x18], al
mov dword [esp + 0x34], edx
jb 0x40577e
mov ecx, dword [esp + 0x44]
mov al, byte [esp + 0x1c]
inc al
mov dl, byte [ecx + 0x456df4]
mov byte [esp + 0x1c], al
cmp al, dl
jb 0x4056f0
mov al, byte [esp + 0x14]
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
inc al
add ebx, 0x8c9
add ecx, 0x4648
add esi, 0x80
cmp al, 8
mov byte [esp + 0x14], al
mov dword [esp + 0x30], ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x20], esi
jb 0x4056d9
mov eax, dword [0x484adc]
xor dl, dl
mov ecx, eax
mov byte [esp + 0x1c], 1
and ecx, 0xff
lea esi, [ecx + ecx*8]
lea esi, [ecx + esi*8]
shl esi, 0xa
add esi, 0x4872da
cmp byte [esi], 0
je 0x405ce2
mov edi, dword [esp + 0x1c]
mov bl, byte [esp + 0x1c]
and edi, 0xff
inc bl
mov byte [esp + 0x1c], bl
mov byte [edi + 0x5ba490], dl
inc dl
add esi, 0x248
cmp dl, 0x80
jb 0x405cc3
lea edx, [ecx + ecx*4]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea edx, [edx + edx*8]
shl edx, 1
sub edx, ecx
mov bl, byte [edx*8 + 0x456cf2]
cmp bl, 1
mov byte [esp + 0x14], bl
jbe 0x405d80
mov ebp, dword [esp + 0x14]
and ebp, 0xff
cmp bl, 1
jbe 0x405d78
mov esi, 0x5ba492
lea edi, [ebp - 1]
and eax, 0xff
shl eax, 7
mov ecx, eax
xor eax, eax
mov al, byte [esi]
add eax, ecx
lea edx, [eax + eax*8]
lea eax, [eax + edx*8]
lea edx, [eax*8 + 0x4870d8]
xor eax, eax
mov al, byte [esi - 1]
push edx
add eax, ecx
lea ecx, [eax + eax*8]
lea edx, [eax + ecx*8]
lea eax, [edx*8 + 0x4870d8]
push eax
call fcn.0043d780
add esp, 8
cmp al, 1
jne 0x405d6f
mov cl, byte [esi]
mov al, byte [esi - 1]
mov byte [esi - 1], cl
mov byte [esi], al
mov eax, dword [0x484adc]
inc esi
dec edi
jne 0x405d26
dec bl
dec ebp
cmp bl, 1
ja 0x405d1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov ecx, dword [esp + 0x18]
push ebx
push 0
push 0
push 4
push edi
push ecx
jmp 0x405da4
mov edx, dword [esp + 0x18]
push ebx
push 0
push 0
push 4
push edi
push edx
mov eax, dword [esp + 0x38]
and esi, 0xff
add esi, eax
push ebp
shl esi, 7
add esi, 0x575500
jmp 0x405c24