Function at 0x57d928
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov esi, eax
xor eax, eax
push ebp
push 0x57e71a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [esi + 0x398], 1
mov dl, 1
mov eax, dword [0x42b114]
call fcn.00431a60
mov dword [ebp - 0x14], eax
mov dl, 6
mov eax, dword [ebp - 0x14]
call fcn.00433074
mov edx, 0x1f4
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, 0x320
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x14]
call fcn.00432034
mov eax, dword [eax + 0xc]
xor edx, edx
call fcn.005a75a4
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [0x5befd8]
call fcn.004e1d1c
test al, al
jne 0x57d9d7
mov eax, dword [0x5befdc]
call fcn.004e1d1c
test al, al
jne 0x57d9d7
xor eax, eax
jmp 0x57d9d9
mov al, 1
mov byte [ebp - 0x31], al
cmp dword [0x5befd8], 0
jne 0x57d9f2
cmp dword [0x5befdc], 0
je 0x57de00
cmp dword [0x5befd8], 0
je 0x57db44
mov eax, dword [0x5befd8]
call fcn.004e1d1c
mov edx, eax
xor dl, 1
mov eax, dword [esi + 0x370]
call fcn.004e1b80
cmp byte [ebp - 0x31], 0
je 0x57da4f
xor edx, edx
mov eax, dword [esi + 0x370]
call fcn.004e1ba0
mov eax, dword [esi + 0x364]
mov edx, dword [eax + 0x40]
mov eax, dword [esi + 0x370]
call fcn.00462224
mov dl, 3
mov eax, dword [esi + 0x370]
call fcn.004e1ab4
jmp 0x57da92
mov dl, 1
mov eax, dword [esi + 0x370]
call fcn.004e1ba0
mov edx, 0x3c
mov eax, dword [esi + 0x370]
call fcn.00462224
mov dl, 1
mov eax, dword [esi + 0x370]
call fcn.004e1ab4
mov eax, dword [esi + 0x370]
mov edx, 0x120
sub edx, dword [eax + 0x40]
mov eax, dword [esi + 0x370]
call fcn.0046228c
mov eax, dword [esi + 0x370]
call fcn.004e1af0
mov edx, dword [0x5befd8]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea ecx, [ebp - 0x44]
mov eax, dword [esi + 0x370]
mov edx, dword [eax + 0x4c]
mov eax, dword [esi + 0x370]
mov eax, dword [eax + 0x48]
call fcn.0041c6f0
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x388], eax
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x38c], eax
mov eax, dword [esi + 0x370]
mov ecx, dword [eax + 0x4c]
add ecx, dword [ebp - 0x24]
add ecx, 0x14
mov edx, dword [ebp - 0x24]
mov eax, 0x32
call fcn.005a115c
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x370]
mov edx, dword [eax + 0x40]
mov eax, dword [esi + 0x370]
add edx, dword [eax + 0x48]
mov eax, dword [ebp - 0x1c]
call fcn.005a1154
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x370]
mov edx, dword [ebp - 0x24]
sub edx, dword [eax + 0x4c]
sar edx, 1
jns 0x57db23
adc edx, 0
mov eax, dword [esi + 0x364]
add edx, dword [eax + 0x44]
mov eax, dword [esi + 0x370]
call fcn.00462258
mov dl, 1
mov eax, dword [esi + 0x370]
call fcn.00462ac4
cmp dword [0x5befdc], 0
je 0x57dd1d
mov eax, dword [0x5befdc]
call fcn.004e1d1c
test al, al
jne 0x57db9a
lea eax, [ebp - 0x48]
push eax
mov eax, dword [0x5befdc]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0xb
mov eax, dword [0x5befdc]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0xb
lea edx, [ebp - 0x58]
mov ecx, 1
mov eax, 0x57e730
call fcn.0040c038
mov edx, dword [ebp - 0x48]
mov eax, 0x5befdc
call fcn.004054e4
cmp byte [ebp - 0x31], 0
je 0x57dbd0
xor edx, edx
mov eax, dword [esi + 0x374]
call fcn.004e1ba0
mov eax, dword [esi + 0x364]
mov edx, dword [eax + 0x40]
mov eax, dword [esi + 0x374]
call fcn.00462224
mov dl, 3
mov eax, dword [esi + 0x374]
call fcn.004e1ab4
jmp 0x57dc13
mov dl, 1
mov eax, dword [esi + 0x374]
call fcn.004e1ba0
mov edx, 0x3c
mov eax, dword [esi + 0x374]
call fcn.00462224
mov dl, 1
mov eax, dword [esi + 0x374]
call fcn.004e1ab4
mov eax, dword [esi + 0x374]
mov edx, 0x120
sub edx, dword [eax + 0x40]
mov eax, dword [esi + 0x374]
call fcn.0046228c
mov eax, dword [esi + 0x374]
call fcn.004e1af0
mov edx, dword [0x5befdc]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea ecx, [ebp - 0x44]
mov eax, dword [esi + 0x374]
mov edx, dword [eax + 0x4c]
mov eax, dword [esi + 0x374]
mov eax, dword [eax + 0x48]
call fcn.0041c6f0
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x390], eax
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x394], eax
mov eax, dword [esi + 0x374]
mov ecx, dword [eax + 0x4c]
add ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x24]
mov eax, 0x32
call fcn.005a115c
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x374]
mov edx, dword [eax + 0x40]
mov eax, dword [esi + 0x374]
add edx, dword [eax + 0x48]
mov eax, dword [ebp - 0x1c]
call fcn.005a1154
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x370]
cmp byte [eax + 0x57], 0
je 0x57dcbc
mov eax, dword [esi + 0x370]
mov edx, dword [eax + 0x44]
mov eax, dword [esi + 0x370]
add edx, dword [eax + 0x4c]
add edx, 5
mov eax, dword [esi + 0x374]
call fcn.00462258
jmp 0x57dce3
mov eax, dword [esi + 0x374]
mov edx, dword [ebp - 0x24]
sub edx, dword [eax + 0x4c]
sar edx, 1
jns 0x57dccf
adc edx, 0
mov eax, dword [esi + 0x364]
add edx, dword [eax + 0x44]
mov eax, dword [esi + 0x374]
call fcn.00462258
mov eax, dword [esi + 0x374]
cmp dword [eax + 0x44], 0x1e
jge 0x57dd10
mov eax, dword [esi + 0x374]
mov edx, 0x1e
sub edx, dword [eax + 0x44]
add dword [ebp - 0x24], edx
mov edx, 0x1e
mov eax, dword [esi + 0x374]
call fcn.00462258
mov dl, 1
mov eax, dword [esi + 0x374]
call fcn.00462ac4
cmp dword [ebp - 0x24], 0x15e
jle 0x57de0e
add dword [ebp - 0x1c], 0xf
mov ecx, esi
mov dl, 1
mov eax, dword [0x57d38c]
call fcn.00452654
mov ebx, eax
mov eax, dword [esi + 0x364]
mov dword [ebx + 0x270], eax
xor edx, edx
mov eax, ebx
call fcn.00452710
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x6c]
mov eax, dword [esi + 0x370]
mov edx, dword [eax + 0x40]
mov eax, ebx
call fcn.00462224
mov eax, dword [esi + 0x370]
mov edx, dword [eax + 0x44]
mov eax, ebx
call fcn.00462258
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebx + 0x40]
mov eax, ebx
call fcn.0046228c
mov edx, 0x14f
mov eax, ebx
call fcn.004622c0
xor edx, edx
mov eax, dword [esi + 0x370]
call fcn.00462224
mov eax, dword [esi + 0x370]
mov edx, dword [eax + 0x44]
sub edx, dword [ebx + 0x44]
mov eax, dword [esi + 0x370]
call fcn.00462258
mov edx, ebx
mov eax, dword [esi + 0x370]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
xor edx, edx
mov eax, dword [esi + 0x374]
call fcn.00462224
mov eax, dword [esi + 0x374]
mov edx, dword [eax + 0x44]
sub edx, dword [ebx + 0x44]
mov eax, dword [esi + 0x374]
call fcn.00462258
mov edx, ebx
mov eax, dword [esi + 0x374]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
mov dword [ebp - 0x24], 0x15e
jmp 0x57de0e
mov dword [ebp - 0x24], 0x4d
mov dword [ebp - 0x1c], 0x116
mov edx, dword [ebp - 0x1c]
mov eax, 0x116
call fcn.005a1154
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x24]
dec eax
test eax, eax
jl 0x57de8f
inc eax
mov dword [ebp - 0x38], eax
xor ebx, ebx
mov eax, dword [ebp - 0x14]
call fcn.00432034
mov eax, dword [eax + 0x14]
push eax
lea eax, [ebx + ebx*2]
lea eax, [eax + eax*8]
mov edx, dword [ebp - 0x24]
dec edx
mov ecx, edx
cdq
idiv ecx
add eax, 0xe4
imul edx, eax, 0x10101
pop eax
call fcn.0042ca50
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, ebx
xor eax, eax
call fcn.0041c73c
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00432034
pop edx
call fcn.0042ce50
inc ebx
dec dword [ebp - 0x38]
jne 0x57de37
cmp dword [0x5befd8], 0
jne 0x57dea5
cmp dword [0x5befdc], 0
je 0x57df4e
cmp byte [ebp - 0x31], 0
jne 0x57e07a
mov eax, dword [0x5bf874]
call fcn.0059bef8
mov dword [ebp - 0x20], eax
mov eax, dword [0x5bf874]
call fcn.0059c050
mov ebx, eax
mov eax, dword [0x5bf874]
call fcn.005a0610
mov dword [ebp - 0x2c], eax
dec ebx
test ebx, ebx
jl 0x57e07a
inc ebx
mov dword [ebp - 0x38], ebx
xor ebx, ebx
mov eax, dword [ebp - 0x20]
dec eax
test eax, eax
jl 0x57df43
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x18], 0
mov edx, dword [0x5bf874]
mov edx, dword [edx + 4]
add edx, ebx
mov eax, dword [0x5bf874]
mov eax, dword [eax]
add eax, dword [ebp - 0x18]
call fcn.005a05f4
mov edi, eax
cmp edi, dword [ebp - 0x2c]
je 0x57df3b
push edi
mov eax, dword [ebp - 0x14]
call fcn.00432034
mov ecx, dword [ebp - 0x24]
sub ecx, 0x20
sar ecx, 1
jns 0x57df2e
adc ecx, 0
add ecx, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xa
call fcn.0042d398
inc dword [ebp - 0x18]
dec dword [ebp - 0x3c]
jne 0x57def7
inc ebx
dec dword [ebp - 0x38]
jne 0x57dee4
jmp 0x57e07a
mov eax, dword [0x5c04f4]
call fcn.0059bef8
mov dword [ebp - 0x20], eax
mov eax, dword [0x5c04f4]
call fcn.0059c050
mov ebx, eax
add ebx, 0xa
dec ebx
sub ebx, 0xa
jl 0x57e07a
inc ebx
mov dword [ebp - 0x38], ebx
mov ebx, 0xa
lea eax, [ebx + ebx*2]
lea eax, [eax + eax*8]
mov edx, dword [ebp - 0x24]
dec edx
mov ecx, edx
cdq
idiv ecx
add eax, 0xe4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
call fcn.00432034
mov eax, dword [eax + 0x14]
imul edx, dword [ebp - 0x2c], 0x10101
call fcn.0042ca50
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, ebx
xor eax, eax
call fcn.0041c73c
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00432034
pop edx
call fcn.0042ce50
mov eax, dword [ebp - 0x20]
dec eax
test eax, eax
jl 0x57e070
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x18], 0
mov edx, dword [0x5c04f4]
mov edx, dword [edx + 4]
add edx, ebx
sub edx, 0xa
mov eax, dword [0x5c04f4]
mov eax, dword [eax]
add eax, dword [ebp - 0x18]
call fcn.005a05f4
mov edi, eax
mov eax, edi
and eax, 0xff
imul dword [ebp - 0x2c]
and eax, 0xff00
mov edx, edi
and edx, 0xff00
imul edx, dword [ebp - 0x2c]
and edx, 0xff0000
or eax, edx
and edi, 0xff0000
imul edi, dword [ebp - 0x2c]
and edi, 0xff000000
or eax, edi
mov edi, eax
shr edi, 8
push edi
mov eax, dword [ebp - 0x14]
call fcn.00432034
mov edx, dword [ebp - 0x1c]
sub edx, 0xf0
sar edx, 1
jns 0x57e05a
adc edx, 0
add edx, dword [ebp - 0x18]
mov ecx, ebx
call fcn.0042d398
inc dword [ebp - 0x18]
dec dword [ebp - 0x3c]
jne 0x57dfe8
inc ebx
dec dword [ebp - 0x38]
jne 0x57df7d
xor ebx, ebx
mov edi, 0xc
mov eax, dword [0x5bf9c8]
mov eax, dword [eax]
cmp byte [eax + 0xa1], 0
je 0x57e0d5
mov eax, dword [0x5bf9c8]
mov eax, dword [eax]
fld qword [eax + 0x298]
fcomp dword [0x57e744]
wait
fnstsw ax
sahf
jbe 0x57e0d5
call fcn.0040cf80
mov eax, dword [0x5bf9c8]
mov eax, dword [eax]
fsub qword [eax + 0x298]
fmul dword [0x57e748]
fmul dword [0x57e74c]
fmul dword [0x57e74c]
call fcn.004034e0
mov ebx, eax
mov eax, dword [0x5bf9c8]
mov eax, dword [eax]
cmp byte [eax + 0x19b], 0
je 0x57e116
mov eax, dword [0x5bf718]
cmp byte [eax], 0
je 0x57e116
mov eax, dword [0x5bf5d8]
cmp dword [eax], 0
je 0x57e116
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [0x5bf5d8]
mov ecx, dword [ecx]
mov edx, 0x57e758
mov eax, 0x57e778
call fcn.005a1720
jmp 0x57e123
lea eax, [ebp - 0x10]
mov edx, 0x57e7a0
call fcn.00405528
mov dl, 1
mov eax, dword [esi + 0x380]
call fcn.004e1ba0
mov edx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x380]
call fcn.0046228c
mov eax, dword [esi + 0x364]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0x24]
add eax, 6
add edx, eax
mov eax, dword [esi + 0x380]
call fcn.00462258
mov eax, dword [esi + 0x364]
mov edx, dword [eax + 0x40]
mov eax, dword [esi + 0x380]
call fcn.00462224
mov eax, dword [esi + 0x380]
call fcn.004e1af0
push eax
push 0x57e7c0
push dword [ebp - 0x10]
push 0x57e7dc
lea eax, [ebp - 0x5c]
mov edx, 3
call fcn.00405814
mov edx, dword [ebp - 0x5c]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov dl, 1
mov eax, dword [esi + 0x380]
call fcn.00462ac4
mov eax, dword [esi + 0x380]
mov edx, dword [eax]
call dword [edx + 0x80]
mov eax, dword [esi + 0x380]
add edi, dword [eax + 0x4c]
test ebx, ebx
jle 0x57e2bb
mov dl, 1
mov eax, dword [esi + 0x384]
call fcn.004e1ba0
mov edx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x384]
call fcn.0046228c
mov eax, dword [esi + 0x380]
mov edx, dword [eax + 0x44]
add edx, dword [eax + 0x4c]
mov eax, dword [esi + 0x384]
call fcn.00462258
mov eax, dword [esi + 0x364]
mov edx, dword [eax + 0x40]
mov eax, dword [esi + 0x384]
call fcn.00462224
push 0x57e7ec
mov eax, ebx
mov ecx, 0xe10
cdq
idiv ecx
lea edx, [ebp - 0x60]
call fcn.0040a634
push dword [ebp - 0x60]
push 0x57e800
mov eax, ebx
mov ecx, 0xe10
cdq
idiv ecx
mov eax, edx
mov ecx, 0x3c
cdq
idiv ecx
lea edx, [ebp - 0x64]
call fcn.0057c9a0
push dword [ebp - 0x64]
push 0x57e800
mov eax, ebx
mov ecx, 0x3c
cdq
idiv ecx
mov eax, edx
lea edx, [ebp - 0x68]
call fcn.0057c9a0
push dword [ebp - 0x68]
lea eax, [ebp - 4]
mov edx, 6
call fcn.00405814
mov eax, dword [esi + 0x384]
call fcn.004e1af0
push eax
push 0x57e7c0
push dword [ebp - 4]
push 0x57e7dc
lea eax, [ebp - 0x6c]
mov edx, 3
call fcn.00405814
mov edx, dword [ebp - 0x6c]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov dl, 1
mov eax, dword [esi + 0x384]
call fcn.00462ac4
mov eax, dword [esi + 0x384]
add edi, dword [eax + 0x4c]
mov eax, dword [ebp - 0x14]
call fcn.00432034
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.0042cb6c
mov eax, dword [ebp - 0x14]
call fcn.00432034
mov eax, dword [eax + 0x14]
mov edx, 0x999999
call fcn.0042ca50
mov eax, dword [ebp - 0x24]
inc eax
push eax
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
xor eax, eax
call fcn.0041c73c
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00432034
pop edx
call fcn.0042ce50
mov eax, dword [ebp - 0x14]
call fcn.00432034
mov eax, dword [eax + 0x14]
mov edx, 0xe8e8e8
call fcn.0042ca50
mov ebx, dword [ebp - 0x24]
add ebx, edi
mov eax, ebx
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
mov edx, dword [ebp - 0x24]
inc edx
mov ecx, dword [ebp - 0x1c]
xor eax, eax
call fcn.0041c73c
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00432034
pop edx
call fcn.0042ce50
mov eax, dword [ebp - 0x14]
call fcn.00432034
mov eax, dword [eax + 0x14]
mov edx, 0x999999
call fcn.0042ca50
push ebx
lea eax, [ebp - 0x58]
push eax
mov edx, dword [ebp - 0x24]
add edx, edi
dec edx
mov ecx, dword [ebp - 0x1c]
xor eax, eax
call fcn.0041c73c
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00432034
pop edx
call fcn.0042ce50
mov dword [ebp - 0x28], 0x28
lea eax, [ebp - 8]
call fcn.00405490
mov edx, 0x57e80c
mov eax, dword [esi + 0x360]
call fcn.00462bd4
mov edx, ebx
add edx, 0x1d
mov eax, dword [esi + 0x360]
call fcn.00462258
mov eax, dword [esi + 0x360]
mov edx, dword [ebp - 0x1c]
sub edx, dword [eax + 0x48]
sar edx, 1
jns 0x57e3ca
adc edx, 0
add edx, 8
call fcn.00462224
cmp dword [ebp - 8], 0
je 0x57e522
mov eax, dword [esi + 0x37c]
call fcn.004e1af0
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esi + 0x378]
call fcn.004e1af0
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esi + 0x37c]
mov edx, dword [eax + 0x48]
add edx, 6
mov ecx, dword [esi + 0x378]
add edx, dword [ecx + 0x48]
sar edx, 1
jns 0x57e41e
adc edx, 0
push edx
mov edx, dword [ebp - 0x1c]
add edx, 0x10
sar edx, 1
jns 0x57e42c
adc edx, 0
pop ecx
sub edx, ecx
call fcn.00462224
mov eax, dword [esi + 0x37c]
cmp dword [eax + 0x40], 0x10
jle 0x57e470
mov edx, dword [esi + 0x37c]
mov edx, dword [edx + 0x40]
add edx, dword [eax + 0x48]
add edx, 6
mov eax, dword [esi + 0x378]
call fcn.00462224
mov eax, dword [esi + 0x378]
mov edx, dword [eax + 0x44]
mov eax, dword [esi + 0x37c]
call fcn.00462258
jmp 0x57e4ea
mov edx, dword [ebp - 0x1c]
add edx, 0x10
sar edx, 1
jns 0x57e47d
adc edx, 0
mov ecx, dword [eax + 0x48]
sar ecx, 1
jns 0x57e487
adc ecx, 0
sub edx, ecx
call fcn.00462224
mov edx, dword [ebp - 0x1c]
add edx, 0x10
sar edx, 1
jns 0x57e49b
adc edx, 0
mov eax, dword [esi + 0x378]
mov eax, dword [eax + 0x48]
sar eax, 1
jns 0x57e4ab
adc eax, 0
sub edx, eax
mov eax, dword [esi + 0x378]
call fcn.00462224
mov eax, dword [esi + 0x37c]
mov edx, dword [eax + 0x44]
mov eax, dword [esi + 0x37c]
sub edx, dword [eax + 0x4c]
sub edx, 4
mov eax, dword [esi + 0x37c]
call fcn.00462258
mov eax, dword [esi + 0x37c]
mov eax, dword [eax + 0x4c]
add eax, dword [ebp - 0x28]
add eax, 4
mov dword [ebp - 0x28], eax
mov dl, 1
mov eax, dword [esi + 0x37c]
call fcn.00462ac4
mov dl, 1
mov eax, dword [esi + 0x378]
call fcn.00462ac4
mov eax, dword [esi + 0x37c]
mov edx, dword [eax]
call dword [edx + 0x80]
mov eax, dword [esi + 0x378]
mov edx, dword [eax]
call dword [edx + 0x80]
jmp 0x57e53c
xor edx, edx
mov eax, dword [esi + 0x37c]
call fcn.00462ac4
xor edx, edx
mov eax, dword [esi + 0x378]
call fcn.00462ac4
mov eax, dword [ebp - 0x28]
dec eax
test eax, eax
jl 0x57e5ae
inc eax
mov dword [ebp - 0x38], eax
xor ebx, ebx
mov eax, dword [ebp - 0x14]
call fcn.00432034
mov eax, dword [eax + 0x14]
push eax
lea eax, [ebx + ebx*2]
lea eax, [eax + eax*8]
mov edx, dword [ebp - 0x28]
dec edx
mov ecx, edx
cdq
idiv ecx
mov edx, 0xff
sub edx, eax
imul edx, edx, 0x10101
pop eax
call fcn.0042ca50
mov eax, dword [ebp - 0x24]
add eax, edi
add eax, ebx
inc eax
push eax
lea eax, [ebp - 0x58]
push eax
mov edx, dword [ebp - 0x24]
add edx, edi
add edx, ebx
mov ecx, dword [ebp - 0x1c]
xor eax, eax
call fcn.0041c73c
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00432034
pop edx
call fcn.0042ce50
inc ebx
dec dword [ebp - 0x38]
jne 0x57e54a
mov edx, dword [esi + 0x370]
mov ecx, dword [edx + 0x40]
add ecx, dword [edx + 0x48]
push ecx
mov eax, dword [esi + 0x374]
mov edx, dword [eax + 0x40]
add edx, dword [eax + 0x48]
mov eax, dword [ebp - 0x1c]
pop ecx
call fcn.005a115c
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x360]
mov edx, dword [eax + 0x44]
mov ecx, dword [ebp - 0x1c]
mov eax, esi
call fcn.0057c858
mov edx, dword [ebp - 0x24]
add edx, edi
add edx, dword [ebp - 0x28]
add edx, 0x1c
mov eax, esi
call fcn.004622c0
mov edx, dword [ebp - 0x1c]
add edx, 8
mov eax, esi
call fcn.0046228c
cmp byte [ebp - 0x31], 0
je 0x57e624
mov eax, dword [esi + 0x370]
mov ecx, dword [eax + 0x48]
mov ebx, dword [ebp - 0x1c]
sub ebx, 0x10
cmp ecx, ebx
jge 0x57e624
cmp byte [eax + 0x57], 0
jne 0x57e63d
mov edx, dword [esi + 0x374]
mov eax, dword [edx + 0x48]
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10
cmp eax, ecx
jge 0x57e685
cmp byte [edx + 0x57], 0
je 0x57e685
mov eax, dword [esi + 0x374]
mov edx, dword [eax + 0x48]
mov eax, dword [esi + 0x370]
mov eax, dword [eax + 0x48]
call fcn.005a1154
mov ebx, eax
mov eax, dword [esi + 0x48]
sar eax, 1
jns 0x57e660
adc eax, 0
sar ebx, 1
jns 0x57e667
adc ebx, 0
sub eax, ebx
mov ebx, eax
mov edx, ebx
mov eax, dword [esi + 0x370]
call fcn.00462224
mov edx, ebx
mov eax, dword [esi + 0x374]
call fcn.00462224
call fcn.005a1174
mov edx, eax
sar edx, 1
jns 0x57e693
adc edx, 0
mov eax, dword [esi + 0x48]
sar eax, 1
jns 0x57e69d
adc eax, 0
sub edx, eax
mov eax, esi
call fcn.00457d64
call fcn.005a1194
mov edx, eax
sar edx, 1
jns 0x57e6b4
adc edx, 0
mov eax, dword [esi + 0x4c]
sar eax, 1
jns 0x57e6be
adc eax, 0
sub edx, eax
mov eax, esi
call fcn.00457da0
mov eax, dword [esi + 0x364]
mov eax, dword [eax + 0x198]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
call fcn.00404574
mov byte [esi + 0x398], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57e721
lea eax, [ebp - 0x6c]
mov edx, 5
call fcn.004054b4
lea eax, [ebp - 0x48]
call fcn.00405490
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004054b4
ret