Function at 0xd5420
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xd8
push ebp
mov ebp, dword [esp + 0xe0]
test byte [ebp + 0x14a], 4
jne 0xd6726
mov eax, dword [ebp + 0x98]
shr eax, 6
and eax, 1
mov ecx, ebp
jne 0xd5451
mov ecx, dword [ebp + 0x100]
cmp dword [ecx + 0x150], 0
jne 0xd6726
test eax, eax
mov eax, ebp
jne 0xd546a
mov eax, dword [ebp + 0x100]
cmp dword [eax + 0x154], 0
push esi
je 0xd547b
mov esi, ebp
call fcn.000d4d10
push edi
mov edi, dword [ebp + 0x98]
shr edi, 6
and edi, 1
mov eax, ebp
jne 0xd5492
mov eax, dword [ebp + 0x100]
cmp dword [eax + 0x150], 0
je 0xd54b7
mov esi, ebp
call fcn.000dee00
test eax, eax
jne 0xd54b7
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0xd8
ret 4
push ebx
mov ebx, dword [0x4e73e0]
test byte [ebx + 0x23b1], 1
je 0xd54d9
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0xd8
ret 4
xor esi, esi
cmp edi, esi
mov eax, ebp
jne 0xd54e7
mov eax, dword [ebp + 0x100]
cmp dword [eax + 0x14c], esi
je 0xd66e4
mov eax, dword [ebx + 0x2380]
test eax, 0x20000000
mov dword [esp + 0xc0], esi
je 0xd5531
test eax, 0x10000000
je 0xd5531
mov eax, dword [ebx + 0x2520]
or byte [eax + 0x12], 8
push esi
push 0x1fec
lea eax, [ebx + 8]
mov ecx, 6
call fcn.0006a110
mov ebx, dword [0x4e73e0]
mov eax, ebp
mov dword [esp + 0x3c], esi
call fcn.000deba0
test eax, eax
jne 0xd5561
mov eax, dword [ebp + 0xdc]
mov eax, dword [eax + 0x3c]
and eax, 0xff
cmp eax, 4
jbe 0xd5561
shr eax, 1
add esi, 1
cmp eax, 4
ja 0xd5553
mov dword [esp + 0x3c], esi
test byte [ebp + 0x98], 1
je 0xd5773
mov ecx, dword [ebp + 0xe8]
mov edi, dword [ecx + 0x60]
push 0
push 0
xor eax, eax
call fcn.000abaf0
mov edx, dword [ebp + 0xe0]
push 0
push 0
push 1
mov ebx, 0x31
call fcn.000bf340
mov edx, dword [ebp + 0xe0]
push 0
push 0x11
xor eax, eax
mov ecx, 1
call fcn.000b8380
mov edi, dword [ebp + 0xe0]
call fcn.00074360
test eax, eax
je 0xd5743
mov edi, dword [ebp + 0xe8]
call fcn.00074360
test eax, eax
je 0xd5743
movzx edx, byte [ebp + 0x87]
movzx eax, byte [ebp + 0x86]
imul edx, eax
xor ebx, ebx
test edx, edx
jbe 0xd5743
nop
mov ecx, ebx
mov eax, ebp
call fcn.000ded80
mov ecx, dword [eax + 0xdc]
mov edx, dword [ecx + 0xc]
mov ecx, ebx
mov eax, ebp
mov dword [esp + 0x1c], edx
call fcn.000ded80
mov eax, dword [eax + 0xdc]
mov ecx, dword [eax + 8]
mov dword [esp + 0x24], ecx
mov ecx, ebx
mov eax, ebp
call fcn.000ded80
mov edx, dword [eax + 0xdc]
mov edi, dword [edx + 4]
mov ecx, ebx
mov eax, ebp
call fcn.000ded80
mov eax, dword [eax + 0xdc]
movzx ecx, byte [eax + 0x3f]
mov dword [esp + 0x2c], ecx
mov ecx, ebx
mov eax, ebp
call fcn.000ded80
mov edx, dword [eax + 0xdc]
movzx eax, byte [edx + 0x3e]
mov dword [esp + 0x20], eax
mov ecx, ebx
mov eax, ebp
call fcn.000ded80
mov ecx, dword [eax + 0xdc]
movzx edx, byte [ecx + 0x3d]
mov ecx, ebx
mov eax, ebp
mov dword [esp + 0x38], edx
call fcn.000ded80
mov eax, dword [eax + 0xe0]
mov dword [esp + 0x18], eax
mov ecx, ebx
mov eax, ebp
call fcn.000ded80
mov ecx, dword [eax + 0xdc]
mov edx, dword [ecx + 0x40]
mov ecx, ebx
mov eax, ebp
mov dword [esp + 0x3c], edx
call fcn.000ded80
mov eax, dword [eax + 0xdc]
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov ecx, ebx
mov eax, ebp
call fcn.000ded80
mov edx, dword [eax + 0xe8]
mov eax, dword [ebp + 0xdc]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0x3c]
mov eax, dword [esp + 0x1c]
and edx, 0xff
mov ecx, esi
shr edx, cl
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, esi
shl edi, cl
mov ecx, dword [esp + 0x44]
add ecx, esi
push edi
mov edi, dword [esp + 0x28]
push edx
push eax
push ecx
push 0
push 0
push 0
call fcn.00074360
mov edx, dword [esp + 0x64]
mov edi, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x54]
push 0
push 0
push 0
push edx
push eax
call fcn.00074360
push eax
call fcn.00197060
movzx ecx, byte [ebp + 0x87]
movzx edx, byte [ebp + 0x86]
imul ecx, edx
add ebx, 1
cmp ebx, ecx
jb 0xd55f0
mov eax, dword [0x4e73e0]
mov ecx, dword [eax + 0x2520]
mov edx, dword [ecx]
push ebp
call dword [edx + 0x98]
mov eax, dword [ebp + 0xe8]
mov ebx, dword [eax + 0x60]
call fcn.000abde0
mov ecx, dword [ebp + 0xe0]
mov ebx, dword [ecx + 0x60]
jmp 0xd66ae
mov eax, dword [ebp + 0x80]
call fcn.000deac0
test eax, eax
je 0xd5bda
mov edx, dword [ebp + 0xe8]
push 0
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x44]
call fcn.000b8510
mov edx, dword [ebp + 0xe0]
push 1
or ecx, 0xffffffff
xor eax, eax
call fcn.000b8510
mov esi, dword [ebp + 0xdc]
mov eax, dword [esi + 0x44]
cmp eax, 0x3231564e
mov ebx, 5
je 0xd580e
cmp eax, 0x32595559
je 0xd57f9
cmp eax, 0x59565955
je 0xd57e0
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xd8
ret 4
mov edi, dword [ebp + 0xe8]
mov dword [esp + 0x30], 6
call fcn.00069d80
mov dword [esp + 0x14], eax
jmp 0xd5849
mov edi, dword [ebp + 0xe8]
mov dword [esp + 0x30], ebx
call fcn.00069d80
mov dword [esp + 0x14], eax
jmp 0xd5849
mov eax, ebp
mov dword [esp + 0x30], ebx
call fcn.000747a0
mov edi, eax
mov eax, ebp
shr edi, 1
call fcn.000747a0
lea eax, [edi + eax + 8]
imul eax, dword [esi]
mov edi, dword [ebp + 0xe8]
mov dword [esp + 0x1c], eax
call fcn.00069d80
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + eax + 0x100]
mov dword [esp + 0x14], edx
test byte [ebp + 0x8d], 1
je 0xd5919
mov eax, dword [esi]
mov esi, dword [0x4e73e0]
mov ecx, dword [esi + 0x94]
mov dword [ecx], fcn.00102300
mov edx, dword [esi + 0x94]
mov dword [edx + 4], 4
mov edx, dword [esi + 0x94]
mov ecx, eax
shl ecx, 0x10
or ecx, eax
mov dword [edx + 8], ecx
mov eax, dword [esi + 0x94]
mov ecx, dword [esp + 0x14]
mov dword [eax + 0xc], ecx
mov edi, dword [ebp + 0xe0]
call fcn.00069d80
mov edx, dword [esi + 0x94]
mov dword [edx + 0x10], eax
lea eax, [esi + 8]
mov ecx, ebx
call fcn.0006a150
mov esi, dword [0x4e73e0]
add esi, 8
mov ebx, 0xdd001050
mov eax, 7
call fcn.000b6530
mov eax, dword [0x4e73e0]
mov ecx, dword [eax + 0x94]
mov dword [ecx], 0xce30c
mov edx, dword [eax + 0x94]
mov dword [edx + 4], 1
mov ecx, dword [eax + 0x94]
mov esi, 0xffff0000
mov dword [ecx + 8], esi
mov edx, dword [eax + 0x94]
add eax, 8
mov ecx, 4
mov dword [edx + 0xc], esi
call fcn.0006a150
mov eax, dword [0x4e73e0]
mov dword [eax + 0x698], esi
jmp 0xd597b
mov esi, dword [0x4e73e0]
add esi, 8
mov ebx, 0xd3d05201
mov eax, 7
call fcn.000b6530
mov edi, dword [ebp + 0xe0]
call fcn.00069d80
push eax
mov eax, ebp
call fcn.000dea80
mov esi, eax
mov eax, ebp
and esi, 0xff
call fcn.000dea40
shl eax, 8
or esi, eax
mov eax, dword [0x4e73e0]
shl esi, 0x10
or esi, 4
push esi
push 0x300
add eax, 8
mov ecx, 7
call fcn.000a9d70
mov eax, dword [0x4e73e0]
test byte [ebp + 0x8d], 1
lea esi, [eax + 8]
mov eax, 7
mov ebx, 0xdd0015a0
jne 0xd5996
mov ebx, 0xd3d07701
call fcn.000b6530
mov eax, dword [0x4e73e0]
mov ecx, dword [eax + 0x2520]
mov edx, dword [ecx]
call dword [edx + 0x114]
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [0x4e73e0]
push 0x300
add eax, 8
mov ecx, 7
call fcn.0006a110
mov ecx, dword [ebp + 0xe8]
mov edx, dword [ecx + 0x60]
mov eax, dword [edx + 0x88]
and eax, 0xff
call fcn.00074240
push eax
mov eax, dword [0x4e73e0]
push 0x184
add eax, 8
mov ecx, 7
call fcn.0006a110
mov eax, dword [ebp + 0x8c]
and eax, 0x100
neg eax
sbb eax, eax
and eax, 0x92fecff
add eax, 0xd3d05201
push eax
mov eax, dword [0x4e73e0]
push 0x198
add eax, 8
mov ecx, 7
call fcn.0006a110
mov eax, ebp
call fcn.000747a0
mov esi, eax
mov eax, ebp
shl esi, 0x10
call fcn.00074770
and eax, 0xffff
or esi, eax
mov eax, dword [0x4e73e0]
push esi
push 0
push 0x308
add eax, 8
mov ecx, 7
call fcn.000a9d70
mov eax, ebp
call fcn.000747a0
mov esi, eax
mov eax, ebp
shl esi, 0x10
call fcn.00074770
and eax, 0xffff
or esi, eax
mov eax, dword [0x4e73e0]
push esi
push 0
push 0x310
add eax, 8
mov ecx, 7
call fcn.000a9d70
mov eax, dword [0x4e73e0]
push 0x100000
push 0x100000
push 0x318
add eax, 8
mov ecx, 7
call fcn.000a9d70
mov eax, ebp
call fcn.00074770
mov esi, eax
cmp esi, 0x10
jae 0xd5ac8
mov esi, 0x10
mov eax, ebp
call fcn.000747a0
shl eax, 0x10
add esi, 1
and esi, 0xfffe
or eax, esi
push eax
mov eax, dword [0x4e73e0]
push 0x400
add eax, 8
mov ecx, 7
call fcn.0006a110
mov ecx, dword [ebp + 0xdc]
mov edx, dword [ecx]
mov eax, dword [0x4e73e0]
and edx, 0xffff
or edx, 0x20000
push edx
push 0x404
add eax, 8
mov ecx, 7
call fcn.0006a110
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [0x4e73e0]
push 0x408
add eax, 8
mov ecx, 7
call fcn.0006a110
mov eax, dword [0x4e73e0]
push 0
push 0x40c
add eax, 8
mov ecx, 7
call fcn.0006a110
mov ecx, dword [0x4e73e0]
lea eax, [ecx + 8]
mov ebx, 8
test byte [eax + 0xb8], bl
jne 0xd5b95
mov esi, dword [eax + 0x90]
mov edx, dword [eax + 0x8c]
cmp esi, edx
je 0xd5b95
sub edx, esi
cmp edx, 0x400
sbb ecx, ecx
add ecx, 1
push ecx
call fcn.000b5bd0
mov ecx, dword [0x4e73e0]
or dword [ecx + 0x2354], ebx
mov ecx, dword [ecx + 0x2520]
or byte [ecx + 0x12], 8
mov edx, dword [ebp + 0xe8]
mov ebx, dword [edx + 0x60]
call fcn.000abe90
mov eax, dword [ebp + 0xe0]
mov ebx, dword [eax + 0x60]
call fcn.000abe90
mov ecx, dword [0x4e73e0]
mov ecx, dword [ecx + 0x2520]
mov edx, dword [ecx]
call dword [edx + 0x118]
jmp 0xd66b3
mov eax, dword [ebp + 0xdc]
cmp dword [eax + 0x44], 0x3241564e
jne 0xd5d14
mov ecx, dword [ebp + 0xe8]
mov edi, dword [ecx + 0x60]
push 0
push 0
mov eax, 1
call fcn.000abaf0
mov edx, dword [ebp + 0xe0]
push 0
push 0
push 1
mov ebx, 0x31
call fcn.000bf340
mov edx, dword [ebp + 0xe0]
mov edi, dword [edx + 0x60]
push 0
push 0
mov eax, 0x11
call fcn.000abaf0
mov edi, dword [ebp + 0xe8]
call fcn.00074360
mov edi, dword [ebp + 0xe0]
mov ebx, eax
mov dword [esp + 0x14], ebx
call fcn.00074360
test ebx, ebx
mov esi, eax
je 0xd6697
test esi, esi
je 0xd6697
movzx eax, byte [ebp + 0x87]
movzx ecx, byte [ebp + 0x86]
imul eax, ecx
xor ebx, ebx
test eax, eax
mov dword [esp + 0x18], ebx
jbe 0xd6697
mov edi, edi
mov ecx, ebx
mov eax, ebp
call fcn.000ded80
mov edx, dword [eax + 0xdc]
mov edi, dword [edx + 4]
mov ecx, ebx
mov eax, ebp
call fcn.000ded80
test byte [ebp + 0x8d], 1
mov eax, dword [eax + 0xdc]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
je 0xd5cc0
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov eax, esi
call fcn.000de0e0
jmp 0xd5cd2
mov edx, dword [esp + 0x14]
push edi
push edx
push esi
mov ebx, eax
call fcn.000de220
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
imul ecx, edi
mov eax, ecx
shr eax, 4
jne 0xd5ce5
mov eax, 1
shl eax, 4
add dword [esp + 0x14], eax
movzx eax, byte [ebp + 0x87]
lea esi, [esi + ecx*2]
movzx ecx, byte [ebp + 0x86]
imul eax, ecx
add ebx, 1
cmp ebx, eax
mov dword [esp + 0x18], ebx
jb 0xd5c80
jmp 0xd6697
mov eax, dword [ebp + 0xe8]
call fcn.000dea20
test eax, eax
je 0xd5d3a
mov eax, dword [ebp + 0xe0]
call fcn.000de9e0
test eax, eax
mov dword [esp + 0x30], 1
jne 0xd5d42
mov dword [esp + 0x30], 0
movzx ecx, byte [ebp + 0x87]
movzx edx, byte [ebp + 0x86]
imul ecx, edx
xor esi, esi
test ecx, ecx
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
mov dword [esp + 0x1c], esi
jbe 0xd66b9
jmp 0xd5d70
mov ecx, esi
mov eax, ebp
call fcn.000ded80
cmp byte [eax + 0x108], 0
je 0xd664b
test byte [ebx + 0x23bf], 0xf
je 0xd600b
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov eax, dword [eax + 0xe0]
mov ecx, dword [eax + 0x60]
test byte [ecx + 0x88], 8
je 0xd5e40
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov edx, dword [eax + 0xe8]
mov eax, dword [edx + 0x60]
test byte [eax + 0x88], 3
je 0xd5e40
cmp dword [ebx + 0x54b0], 0
je 0xd5e40
cmp byte [esp + 0x13], 0
mov dword [esp + 0x14], fcn.001976d0
jne 0xd5ebc
cmp byte [esp + 0x12], 0
je 0xd5e11
mov ecx, dword [ebp + 0xe8]
mov ebx, dword [ecx + 0x60]
call fcn.000abde0
mov edx, dword [ebp + 0xe0]
mov ebx, dword [edx + 0x60]
call fcn.000abde0
mov byte [esp + 0x12], 0
mov edx, dword [ebp + 0xe8]
push 0
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x44]
call fcn.000b8510
mov edx, dword [ebp + 0xe0]
push 1
or ecx, 0xffffffff
xor eax, eax
call fcn.000b8510
mov byte [esp + 0x13], 1
jmp 0xd5ebc
cmp byte [esp + 0x12], 0
mov dword [esp + 0x14], fcn.00196830
jne 0xd5ebc
cmp byte [esp + 0x13], 0
je 0xd5e77
mov eax, dword [ebp + 0xe8]
mov ebx, dword [eax + 0x60]
call fcn.000abe90
mov ecx, dword [ebp + 0xe0]
mov ebx, dword [ecx + 0x60]
call fcn.000abe90
mov byte [esp + 0x13], 0
mov edx, dword [ebp + 0xe8]
mov edi, dword [edx + 0x60]
push 0
push 0
xor eax, eax
call fcn.000abaf0
mov edx, dword [ebp + 0xe0]
push 0
push 0
push 1
mov ebx, 0x31
call fcn.000bf340
mov edx, dword [ebp + 0xe0]
push 0
push 0x11
xor eax, eax
mov ecx, 1
call fcn.000b8380
mov byte [esp + 0x12], 1
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov eax, dword [eax + 0xdc]
mov ecx, dword [eax + 8]
mov dword [esp + 0x1c], ecx
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov edx, dword [eax + 0xdc]
mov edi, dword [edx + 4]
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov eax, dword [eax + 0xdc]
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov edx, dword [eax + 0xe0]
mov eax, dword [edx + 0x5c]
mov dword [esp + 0x2c], eax
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov ecx, dword [eax + 0xe0]
mov dword [esp + 0x20], ecx
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov edx, dword [eax + 0xe0]
mov eax, dword [edx + 0x60]
mov eax, dword [eax]
test eax, eax
je 0xd5f43
add eax, 0x38
mov dword [esp + 0x18], eax
jmp 0xd5f4b
mov dword [esp + 0x18], 0
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov eax, dword [eax + 0xdc]
mov ebx, dword [eax]
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov ecx, dword [eax + 0xe8]
mov edx, dword [ecx + 0x5c]
mov ecx, esi
mov eax, ebp
mov dword [esp + 0x38], edx
call fcn.000ded80
mov eax, dword [eax + 0xe8]
mov dword [esp + 0x34], eax
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov ecx, dword [eax + 0xe8]
mov eax, dword [ecx + 0x60]
mov eax, dword [eax]
test eax, eax
je 0xd5fa6
add eax, 0x38
mov dword [esp + 0x28], eax
jmp 0xd5fae
mov dword [esp + 0x28], 0
mov edx, dword [ebp + 0xdc]
mov eax, dword [edx + 0x3c]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
and eax, 0xff
shr eax, cl
shl edi, cl
mov ecx, dword [esp + 0x24]
push eax
push eax
mov eax, dword [esp + 0x24]
push eax
push edi
mov edi, dword [esp + 0x30]
push 0
push 0
push ecx
push edx
call fcn.00074360
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x3c]
push eax
push 0
push 0
push ebx
push ecx
call fcn.00074360
mov edx, dword [esp + 0x60]
push eax
push edx
call dword [esp + 0x54]
jmp 0xd6635
mov edi, dword [esp + 0x30]
test edi, edi
je 0xd61cd
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov eax, dword [eax + 0xdc]
test byte [eax + 0x5c], 0x3f
jne 0xd61cd
cmp byte [esp + 0x13], 0
jne 0xd608c
cmp byte [esp + 0x12], 0
je 0xd605f
mov ecx, dword [ebp + 0xe8]
mov ebx, dword [ecx + 0x60]
call fcn.000abde0
mov edx, dword [ebp + 0xe0]
mov ebx, dword [edx + 0x60]
call fcn.000abde0
mov byte [esp + 0x12], 0
mov edx, dword [ebp + 0xe8]
push 0
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x44]
call fcn.000b8510
mov edx, dword [ebp + 0xe0]
push 1
or ecx, 0xffffffff
xor eax, eax
call fcn.000b8510
mov byte [esp + 0x13], 1
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov eax, dword [eax + 0xdc]
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], ecx
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov edx, dword [eax + 0xdc]
mov eax, dword [edx + 4]
mov dword [esp + 0x1c], eax
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov ecx, dword [eax + 0xdc]
movzx edx, byte [ecx + 0x3e]
mov ecx, esi
mov eax, ebp
mov dword [esp + 0x24], edx
call fcn.000ded80
mov eax, dword [eax + 0xdc]
movzx ecx, byte [eax + 0x3d]
mov dword [esp + 0x2c], ecx
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov edx, dword [eax + 0xe0]
mov eax, dword [edx + 0x60]
mov dword [esp + 0x20], eax
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov ecx, dword [eax + 0xe0]
mov edx, dword [ecx + 0x5c]
mov ecx, esi
mov eax, ebp
mov dword [esp + 0x20], edx
call fcn.000ded80
mov eax, dword [eax + 0xe0]
mov eax, dword [eax + 0x60]
mov eax, dword [eax]
test eax, eax
je 0xd6133
add eax, 0x38
mov dword [esp + 0x18], eax
jmp 0xd613b
mov dword [esp + 0x18], 0
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov ecx, dword [eax + 0xdc]
mov edx, dword [ebp + 0xe8]
mov eax, dword [edx + 0x60]
mov edi, dword [ecx]
mov dword [esp + 0x38], eax
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov ecx, dword [eax + 0xe8]
mov ebx, dword [ecx + 0x5c]
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov edx, dword [eax + 0xe8]
mov eax, dword [edx + 0x60]
mov eax, dword [eax]
test eax, eax
je 0xd6188
add eax, 0x38
jmp 0xd618a
xor eax, eax
mov ecx, dword [ebp + 0xdc]
mov edx, dword [ecx + 0x3c]
mov ecx, dword [esp + 0x34]
and edx, 0xff
push edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x2c]
push 0
push ecx
push edx
push 0
push 0
push edi
push ebx
push eax
xor edx, edx
call fcn.00197770
jmp 0xd6635
mov eax, dword [ebp + 0xdc]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0xd6399
mov dword [esp + 0x30], 0
cmp byte [esp + 0x12], 0
jne 0xd625b
cmp byte [esp + 0x13], 0
je 0xd6216
mov edx, dword [ebp + 0xe8]
mov ebx, dword [edx + 0x60]
call fcn.000abe90
mov eax, dword [ebp + 0xe0]
mov ebx, dword [eax + 0x60]
call fcn.000abe90
mov byte [esp + 0x13], 0
mov ecx, dword [ebp + 0xe8]
mov edi, dword [ecx + 0x60]
push 0
push 0
xor eax, eax
call fcn.000abaf0
mov edx, dword [ebp + 0xe0]
push 0
push 0
push 1
mov ebx, 0x31
call fcn.000bf340
mov edx, dword [ebp + 0xe0]
push 0
push 0x11
xor eax, eax
mov ecx, 1
call fcn.000b8380
mov byte [esp + 0x12], 1
mov edi, dword [ebp + 0xe0]
call fcn.00074360
test eax, eax
je 0xd6635
mov edi, dword [ebp + 0xe8]
call fcn.00074360
test eax, eax
je 0xd6635
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov edx, dword [eax + 0xdc]
mov eax, dword [edx + 8]
mov dword [esp + 0x18], eax
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov ecx, dword [eax + 0xdc]
movzx edx, byte [ecx + 0x3e]
mov ecx, esi
mov eax, ebp
mov dword [esp + 0x38], edx
call fcn.000ded80
mov eax, dword [eax + 0xe0]
mov dword [esp + 0x34], eax
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov ecx, dword [eax + 0xdc]
mov edx, dword [ecx]
mov ecx, esi
mov eax, ebp
mov dword [esp + 0x2c], edx
call fcn.000ded80
mov ecx, dword [ebp + 0xdc]
mov ebx, dword [ecx + 0x3c]
mov eax, dword [eax + 0xe8]
mov edi, dword [esp + 0x3c]
mov ecx, edi
and ebx, 0xff
mov dword [esp + 0x24], eax
shr ebx, cl
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov edx, dword [eax + 0xdc]
mov eax, dword [edx + 4]
mov ecx, edi
shl eax, cl
mov ecx, esi
mov dword [esp + 0x14], eax
mov eax, ebp
call fcn.000ded80
mov eax, dword [eax + 0xdc]
movzx eax, byte [eax + 0x3d]
add eax, edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x28], eax
call fcn.00074360
mov edi, dword [esp + 0x24]
mov dword [esp + 0x20], eax
call fcn.00074360
mov ecx, dword [esp + 0x28]
mov edx, 1
shl edx, cl
mov dword [esp + 0x24], eax
cmp dword [esp + 0x14], edx
jne 0xd65d1
mov eax, dword [esp + 0x38]
mov ecx, eax
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0x18]
cmp ecx, edx
jne 0xd65d5
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push ebx
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push ecx
mov ecx, dword [esp + 0x30]
call fcn.001958b0
jmp 0xd6635
test edi, edi
je 0xd61e7
test esi, esi
mov edx, dword [ebx + 0x2520]
mov eax, dword [edx + 0x3558]
mov dword [esp + 0x34], eax
je 0xd63ba
lea edi, [esi - 1]
jmp 0xd63bc
xor edi, edi
mov ecx, edi
mov eax, ebp
mov dword [esp + 0x14], edi
call fcn.000ded80
test edi, edi
mov ecx, dword [eax + 0xdc]
mov ebx, dword [ecx + 4]
mov dword [esp + 0x28], ebx
je 0xd61e7
mov edi, edi
mov ecx, edi
mov eax, ebp
call fcn.000ded80
mov edx, dword [eax + 0xdc]
mov eax, dword [esp + 0x34]
cmp dword [edx], eax
jae 0xd641d
sub edi, 1
mov ecx, edi
mov eax, ebp
call fcn.000ded80
mov ecx, dword [eax + 0xdc]
add ebx, dword [ecx + 4]
test edi, edi
jne 0xd63e0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], edi
jmp 0xd61e7
test edi, edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], edi
je 0xd61e7
cmp byte [esp + 0x13], 0
jne 0xd648d
cmp byte [esp + 0x12], 0
je 0xd645c
mov edx, dword [ebp + 0xe8]
mov ebx, dword [edx + 0x60]
call fcn.000abde0
mov eax, dword [ebp + 0xe0]
mov ebx, dword [eax + 0x60]
call fcn.000abde0
mov byte [esp + 0x12], 0
mov edx, dword [ebp + 0xe8]
push 0
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x44]
call fcn.000b8510
mov edx, dword [ebp + 0xe0]
push 1
or ecx, 0xffffffff
xor eax, eax
call fcn.000b8510
mov edi, dword [esp + 0x14]
mov byte [esp + 0x13], 1
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov ecx, dword [eax + 0xdc]
mov edx, dword [ecx + 8]
mov ecx, esi
mov eax, ebp
mov dword [esp + 0x34], edx
call fcn.000ded80
mov eax, dword [eax + 0xdc]
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov ecx, edi
mov eax, ebp
call fcn.000ded80
mov edx, dword [eax + 0xdc]
movzx eax, byte [edx + 0x3e]
mov dword [esp + 0x24], eax
mov ecx, edi
mov eax, ebp
call fcn.000ded80
mov ecx, dword [eax + 0xdc]
movzx edx, byte [ecx + 0x3d]
mov ecx, edi
mov eax, ebp
mov dword [esp + 0x2c], edx
call fcn.000ded80
mov eax, dword [eax + 0xe0]
mov ecx, dword [eax + 0x60]
mov dword [esp + 0x20], ecx
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov edx, dword [eax + 0xe0]
mov eax, dword [edx + 0x5c]
mov dword [esp + 0x20], eax
mov ecx, edi
mov eax, ebp
call fcn.000ded80
mov ecx, dword [eax + 0xe0]
mov eax, dword [ecx + 0x60]
mov eax, dword [eax]
test eax, eax
je 0xd6534
add eax, 0x38
mov dword [esp + 0x18], eax
jmp 0xd653c
mov dword [esp + 0x18], 0
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov edx, dword [eax + 0xdc]
mov eax, dword [ebp + 0xe8]
mov ecx, dword [eax + 0x60]
mov edi, dword [edx]
mov dword [esp + 0x38], ecx
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov edx, dword [eax + 0xe8]
mov ebx, dword [edx + 0x5c]
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov eax, dword [eax + 0xe8]
mov eax, dword [eax + 0x60]
mov eax, dword [eax]
test eax, eax
je 0xd6589
add eax, 0x38
jmp 0xd658b
xor eax, eax
mov ecx, dword [ebp + 0xdc]
mov edx, dword [ecx + 0x3c]
mov ecx, dword [esp + 0x34]
and edx, 0xff
push edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x38]
add edx, 1
push edx
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push ecx
push 0
push 0
push edi
push ebx
push eax
xor edx, edx
call fcn.00197770
jmp 0xd6635
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
imul esi, ebx
xor edx, edx
mov eax, 0x10000
div esi
test eax, eax
jne 0xd65ee
mov eax, 1
cmp eax, ecx
mov esi, eax
jb 0xd65f6
mov esi, ecx
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
push ebx
push edx
push eax
mov eax, dword [esp + 0x2c]
xor ecx, ecx
xor edx, edx
lea edi, [esp + 0xd0]
call fcn.00195250
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
push ebx
push esi
push ecx
push edx
push eax
mov eax, dword [esp + 0x2c]
mov esi, edi
call fcn.001963f0
mov esi, dword [esp + 0x1c]
mov ecx, esi
mov eax, ebp
call fcn.000ded80
mov ebx, dword [0x4e73e0]
mov byte [eax + 0x108], 0
movzx ecx, byte [ebp + 0x87]
movzx edx, byte [ebp + 0x86]
imul ecx, edx
add esi, 1
cmp esi, ecx
mov dword [esp + 0x1c], esi
jb 0xd5d70
cmp byte [esp + 0x13], 0
je 0xd6690
mov eax, dword [ebp + 0xe8]
mov ebx, dword [eax + 0x60]
call fcn.000abe90
mov ecx, dword [ebp + 0xe0]
mov ebx, dword [ecx + 0x60]
call fcn.000abe90
jmp 0xd66b3
cmp byte [esp + 0x12], 0
je 0xd66b9
mov edx, dword [ebp + 0xe8]
mov ebx, dword [edx + 0x60]
call fcn.000abde0
mov eax, dword [ebp + 0xe0]
mov ebx, dword [eax + 0x60]
call fcn.000abde0
mov ebx, dword [0x4e73e0]
mov ecx, dword [ebp + 0xe8]
mov ecx, dword [ecx + 0xb8]
test ch, 0xf
je 0xd66e4
mov eax, dword [ebp + 0xe0]
mov edx, dword [eax + 0xb8]
add eax, 0x70
xor edx, ecx
and edx, 0xf00
xor dword [eax + 0x48], edx
mov ecx, dword [ebx + 0x2520]
mov eax, dword [ecx]
push ebp
call dword [eax + 0x98]
test byte [ebp + 0x98], 0x40
mov ecx, dword [ebp + 0xe0]
mov dword [ebp + 0xdc], ecx
jne 0xd670e
mov ebp, dword [ebp + 0x100]
pop ebx
pop edi
mov eax, 1
pop esi
mov dword [ebp + 0x150], eax
pop ebp
add esp, 0xd8
ret 4
mov eax, 1
pop ebp
add esp, 0xd8
ret 4