Function at 0x5241e0
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0x20]
sub esp, 0xa0
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
jne 0x524205
mov eax, dword [esp + 0xc0]
add eax, 0xc
mov dword [esp + 0xd0], eax
mov esi, dword [esp + 0xcc]
mov ebp, dword [esp + 0xd8]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0xa0], ecx
mov edx, ecx
mov ecx, 1
mov eax, edi
cmp ebp, ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
jle 0x5242ab
lea eax, [esi + 8]
mov edx, dword [eax + 4]
cmp edx, edi
jge 0x524256
mov edx, dword [eax]
mov edi, dword [eax + 4]
mov ebx, ecx
mov dword [esp + 0xa0], edx
jmp 0x524298
jne 0x524273
mov ebp, dword [eax]
cmp ebp, dword [esp + 0xa0]
jge 0x524273
mov edi, dword [eax + 4]
mov edx, ebp
mov ebx, ecx
mov dword [esp + 0xa0], edx
jmp 0x524298
mov ebp, dword [esp + 0x6c]
cmp ebp, edx
jl 0x524287
jne 0x524298
mov edx, dword [esp + 0x68]
mov ebp, dword [eax]
cmp edx, ebp
jge 0x524298
mov edx, dword [eax]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x68], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x6c], edx
mov ebp, dword [esp + 0xd8]
inc ecx
add eax, 8
cmp ecx, ebp
jl 0x52423f
mov dword [esp + 0x54], ebx
lea edi, [ebx - 1]
lea edx, [ebx + 1]
test ebx, ebx
mov dword [esp + 0x18], edi
jne 0x5242c0
lea edi, [ebp - 1]
mov dword [esp + 0x18], edi
lea eax, [ebp - 1]
cmp ebx, eax
mov dword [esp + 0x28], eax
jne 0x5242cd
xor edx, edx
xor eax, eax
mov ecx, dword [esi + ebx*8 + 4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
mov ebp, dword [esi + edx*8 + 4]
mov edi, dword [esi + edi*8]
mov dword [esp + 0x10], eax
lea eax, [esi + ebx*8 + 4]
mov edx, dword [esi + edx*8]
mov dword [esp + 0x48], eax
mov eax, dword [esi + ebx*8]
sub ebp, ecx
sub edi, eax
imul ebp, edi
mov edi, dword [esp + 0x18]
sub edx, eax
mov dword [esp + 0x14], ebx
mov edi, dword [esi + edi*8 + 4]
sub edi, ecx
imul edi, edx
sub ebp, edi
test ebp, ebp
jle 0x52450f
mov ebp, dword [esp + 0x1c]
test ebp, ebp
jne 0x52433e
mov edx, dword [esp + 0xd8]
mov eax, dword [esi + 4]
cmp eax, dword [esi + edx*8 - 4]
jne 0x524353
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], edx
jmp 0x524357
mov eax, dword [esi + ebp*8 + 4]
mov edx, dword [esi + ebp*8 - 4]
cmp eax, edx
jne 0x524353
lea edx, [ebp - 1]
mov dword [esp + 0x10], edx
jmp 0x524357
mov edx, dword [esp + 0x10]
cmp ebx, edx
mov eax, ebx
je 0x524376
mov edi, dword [esp + 0x24]
inc eax
cmp eax, dword [esp + 0xd8]
jne 0x52436d
xor eax, eax
inc edi
cmp eax, edx
jne 0x524361
mov dword [esp + 0x24], edi
test ebx, ebx
jne 0x524394
mov edx, dword [esp + 0xd8]
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + edx*8 - 4]
jne 0x5243a3
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
jmp 0x5243a7
cmp ecx, dword [esi + ebx*8 - 4]
jne 0x5243a3
lea eax, [ebx - 1]
mov dword [esp + 0x14], eax
jmp 0x5243a7
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x5243c4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
dec eax
cmp eax, 0xffffffff
jne 0x5243bb
mov eax, edx
inc ecx
cmp eax, ebp
jne 0x5243b3
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x24]
lea edi, [eax + 1]
shl edi, 4
push edi
call fcn.0054a1d0
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x50], eax
lea ebp, [ecx + 1]
shl ebp, 4
push ebp
call fcn.0054a1d0
push edi
mov dword [esp + 0x3c], eax
call fcn.0054a1d0
mov edi, eax
push ebp
mov dword [esp + 0x48], edi
call fcn.0054a1d0
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp ebx, eax
mov eax, dword [esp + 0xc8]
mov edx, ebx
je 0x524488
mov ebx, dword [esp + 0x4c]
lea ecx, [edi + 8]
mov ebp, ebx
mov dword [esp + 0x18], ebx
sub ebp, edi
mov dword [esp + 0x2c], ebp
mov edi, dword [esp + 0xd8]
mov ebp, edx
inc edx
cmp edx, edi
jne 0x524439
xor edx, edx
mov edi, dword [esi + ebp*8]
add ecx, 0x10
mov dword [ebx], edi
mov edi, dword [esi + ebp*8 + 4]
mov dword [ebx + 4], edi
mov edi, dword [esp + 0x2c]
mov ebx, dword [esi + edx*8]
mov dword [edi + ecx - 0x10], ebx
mov ebx, dword [esi + edx*8 + 4]
mov dword [edi + ecx - 0xc], ebx
mov edi, dword [eax + ebp*8]
mov dword [ecx - 0x18], edi
mov edi, dword [eax + ebp*8 + 4]
mov ebx, dword [esp + 0x18]
mov dword [ecx - 0x14], edi
mov edi, dword [eax + edx*8]
add ebx, 0x10
mov dword [ecx - 0x10], edi
mov edi, dword [eax + edx*8 + 4]
mov dword [ecx - 0xc], edi
mov edi, dword [esp + 0x10]
cmp edx, edi
mov dword [esp + 0x18], ebx
jne 0x524429
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
cmp edx, ecx
je 0x5246e9
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ebp, ebx
mov dword [esp + 0x18], ebx
sub ebp, edi
lea ecx, [edi + 8]
mov dword [esp + 0x2c], ebp
mov edi, edx
dec edx
cmp edx, 0xffffffff
jne 0x5244bb
mov edx, dword [esp + 0x28]
mov ebp, dword [esi + edi*8]
add ecx, 0x10
mov dword [ebx], ebp
mov ebp, dword [esi + edi*8 + 4]
mov dword [ebx + 4], ebp
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esi + edx*8]
mov dword [ebx + ecx - 0x10], ebp
mov ebp, dword [esi + edx*8 + 4]
mov dword [ebx + ecx - 0xc], ebp
mov ebx, dword [eax + edi*8]
mov dword [ecx - 0x18], ebx
mov edi, dword [eax + edi*8 + 4]
mov ebx, dword [esp + 0x18]
mov dword [ecx - 0x14], edi
mov edi, dword [eax + edx*8]
add ebx, 0x10
mov dword [ecx - 0x10], edi
mov edi, dword [eax + edx*8 + 4]
mov dword [ecx - 0xc], edi
mov edi, dword [esp + 0x1c]
cmp edx, edi
mov dword [esp + 0x18], ebx
jne 0x5244af
jmp 0x5246e9
mov ebp, dword [esp + 0x28]
cmp ebx, ebp
jne 0x524524
cmp ecx, dword [esi + 4]
jne 0x524533
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x524537
cmp ecx, dword [esi + ebx*8 + 0xc]
jne 0x524533
lea eax, [ebx + 1]
mov dword [esp + 0x14], eax
jmp 0x524537
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
je 0x52455a
mov edi, dword [esp + 0xd8]
mov edx, dword [esp + 0x20]
inc eax
cmp eax, edi
jne 0x524551
xor eax, eax
inc edx
cmp eax, ecx
jne 0x52454a
mov dword [esp + 0x20], edx
cmp ecx, ebp
jne 0x524571
mov edx, dword [esi + ecx*8 + 4]
mov eax, dword [esi + 4]
cmp edx, eax
jne 0x524584
xor ecx, ecx
mov dword [esp + 0x10], ecx
jmp 0x524588
mov eax, dword [esi + ecx*8 + 4]
mov edx, dword [esi + ecx*8 + 0xc]
cmp eax, edx
jne 0x524584
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x524588
mov ecx, dword [esp + 0x10]
cmp ebx, ecx
mov eax, ebx
je 0x5245a3
mov edx, dword [esp + 0x24]
dec eax
cmp eax, 0xffffffff
jne 0x52459a
mov eax, ebp
inc edx
cmp eax, ecx
jne 0x524592
mov dword [esp + 0x24], edx
mov ecx, dword [esp + 0x24]
lea ebp, [ecx + 1]
shl ebp, 4
push ebp
call fcn.0054a1d0
mov edx, dword [esp + 0x24]
mov dword [esp + 0x50], eax
lea edi, [edx + 1]
shl edi, 4
push edi
call fcn.0054a1d0
push ebp
mov dword [esp + 0x3c], eax
call fcn.0054a1d0
mov ebp, eax
push edi
mov dword [esp + 0x48], ebp
call fcn.0054a1d0
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
add esp, 0x10
cmp edi, ecx
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x34], eax
je 0x524671
mov ebx, dword [esp + 0x30]
lea edx, [eax + 8]
mov ebp, ebx
mov dword [esp + 0x18], ebx
sub ebp, eax
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0xd8]
mov eax, edi
inc edi
cmp edi, ebp
jne 0x52461a
xor edi, edi
mov ebp, dword [esi + eax*8]
add edx, 0x10
mov dword [ebx], ebp
mov ebp, dword [esi + eax*8 + 4]
mov dword [ebx + 4], ebp
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esi + edi*8]
mov dword [edx + ebx - 0x10], ebp
mov ebp, dword [esi + edi*8 + 4]
mov dword [edx + ebx - 0xc], ebp
mov ebx, dword [ecx + eax*8]
mov dword [edx - 0x18], ebx
mov eax, dword [ecx + eax*8 + 4]
mov ebx, dword [esp + 0x18]
mov dword [edx - 0x14], eax
mov eax, dword [ecx + edi*8]
add ebx, 0x10
mov dword [edx - 0x10], eax
mov eax, dword [ecx + edi*8 + 4]
mov dword [edx - 0xc], eax
mov eax, dword [esp + 0x1c]
cmp edi, eax
mov dword [esp + 0x18], ebx
jne 0x52460a
mov ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x10]
mov edx, ebx
cmp ebx, eax
je 0x5246e9
mov edi, dword [esp + 0x4c]
lea eax, [ebp + 8]
mov ebx, edi
sub edi, ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], edi
mov edi, edx
dec edx
cmp edx, 0xffffffff
jne 0x52469a
mov edx, dword [esp + 0x28]
mov ebp, dword [esi + edi*8]
add eax, 0x10
mov dword [ebx], ebp
mov ebp, dword [esi + edi*8 + 4]
mov dword [ebx + 4], ebp
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esi + edx*8]
mov dword [eax + ebx - 0x10], ebp
mov ebp, dword [esi + edx*8 + 4]
mov dword [eax + ebx - 0xc], ebp
mov ebx, dword [ecx + edi*8]
mov dword [eax - 0x18], ebx
mov edi, dword [ecx + edi*8 + 4]
mov ebx, dword [esp + 0x18]
mov dword [eax - 0x14], edi
mov edi, dword [ecx + edx*8]
add ebx, 0x10
mov dword [eax - 0x10], edi
mov edi, dword [ecx + edx*8 + 4]
mov dword [eax - 0xc], edi
mov edi, dword [esp + 0x10]
cmp edx, edi
mov dword [esp + 0x18], ebx
jne 0x52468e
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
shl eax, 4
add ecx, eax
lea edx, [ecx - 0x10]
mov edi, dword [ecx - 0x10]
mov dword [ecx], edi
mov edi, dword [edx + 4]
mov dword [ecx + 4], edi
mov edi, dword [edx + 8]
mov dword [ecx + 8], edi
mov edi, dword [esp + 0x24]
mov edx, dword [edx + 0xc]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x34]
add eax, ecx
lea edx, [eax - 0x10]
mov ecx, dword [eax - 0x10]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x4c]
mov eax, edi
shl eax, 4
lea ecx, [eax + edx - 0x10]
mov ebx, dword [eax + edx - 0x10]
mov dword [eax + edx], ebx
mov ebx, dword [ecx + 4]
mov dword [eax + edx + 4], ebx
mov ebx, dword [ecx + 8]
mov dword [eax + edx + 8], ebx
mov ebx, dword [esp + 0x38]
mov ecx, dword [ecx + 0xc]
mov dword [eax + edx + 0xc], ecx
add eax, ebx
lea ecx, [eax - 0x10]
mov ebp, dword [eax - 0x10]
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [eax + 4], ebp
mov ebp, dword [ecx + 8]
mov dword [eax + 8], ebp
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x9c], eax
xor eax, eax
mov ecx, dword [ecx + 8]
mov dword [esp + 0x54], ecx
xor ecx, ecx
cmp byte [esp + 0xd4], al
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
setne al
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xd0]
cmp eax, ecx
jne 0x5247df
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x1c]
mov ecx, dword [ecx]
mov esi, dword [esi + edx*8 + 4]
mov dword [esp + 0x24], ecx
jmp 0x524a06
mov ecx, dword [eax]
mov ebp, dword [esp + 0x1c]
shl ecx, 0x14
add ecx, 0x80000
mov esi, dword [esi + ebp*8 + 4]
mov dword [esp + 0xa0], ecx
mov ecx, dword [eax + 8]
mov ebp, dword [eax + 4]
mov eax, dword [eax + 0xc]
shl ecx, 0x14
sub ecx, 0x80000
dec eax
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], eax
mov ecx, dword [ecx]
cmp eax, ecx
jl 0x524eab
cmp esi, ebp
jl 0x524eab
cmp ebp, ecx
jg 0x52483e
mov dword [esp + 0x24], ecx
jmp 0x524a00
mov dword [esp + 0x24], ebp
mov ecx, 1
dec ebp
cmp edi, ecx
mov dword [esp + 0x14], ecx
jle 0x524868
lea eax, [edx + 0xc]
cmp dword [eax - 8], ebp
jg 0x52485c
cmp ebp, dword [eax]
jl 0x524864
inc ecx
add eax, 0x10
cmp ecx, edi
jl 0x524853
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x20]
mov ecx, 1
cmp esi, ecx
mov dword [esp + 0x10], ecx
jle 0x524895
mov eax, dword [esp + 0x30]
add eax, 0xc
cmp dword [eax - 8], ebp
jg 0x524889
cmp ebp, dword [eax]
jl 0x524891
inc ecx
add eax, 0x10
cmp ecx, esi
jl 0x524880
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x14]
shl ecx, 4
mov eax, dword [ecx + edx - 0xc]
mov edi, dword [ecx + edx - 4]
mov ebx, dword [ecx + edx - 0x10]
mov dword [esp + 0x50], eax
sub edi, eax
mov eax, dword [ecx + edx - 8]
sub eax, ebx
shl eax, 0x14
cdq
idiv edi
mov edx, dword [esp + 0x38]
shl ebx, 0x14
mov esi, dword [ecx + edx - 0x10]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x5c]
add edi, eax
mov eax, dword [ecx + edx - 8]
sub eax, esi
mov dword [esp + 0x40], edi
shl eax, 0x14
cdq
idiv edi
shl esi, 0x14
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x38]
mov edx, eax
mov edi, dword [ecx + eax - 0xc]
mov eax, dword [ecx + edx - 4]
mov ecx, dword [esp + 0x50]
sub eax, edi
shl eax, 0x14
cdq
idiv dword [esp + 0x40]
shl edi, 0x14
mov dword [esp + 0x70], eax
mov eax, ebp
sub eax, ecx
mov ecx, eax
imul ecx, dword [esp + 0x80]
lea edx, [ecx + ebx + 0x80000]
mov ecx, eax
imul ecx, dword [esp + 0x78]
imul eax, dword [esp + 0x70]
mov dword [esp + 0x28], edx
lea edx, [ecx + esi + 0x80000]
mov ecx, dword [esp + 0x10]
lea eax, [eax + edi + 0x80000]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x30]
shl ecx, 4
mov dword [esp + 0x60], edx
mov edx, dword [ecx + eax - 0xc]
mov esi, dword [ecx + eax - 4]
mov edi, dword [ecx + eax - 0x10]
mov eax, dword [ecx + eax - 8]
sub eax, edi
mov dword [esp + 0x50], edx
shl eax, 0x14
sub esi, edx
cdq
idiv esi
mov edx, dword [esp + 0x5c]
add esi, edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x34]
mov ebx, dword [ecx + eax - 0x10]
mov eax, dword [ecx + eax - 8]
sub eax, ebx
shl eax, 0x14
cdq
idiv esi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x34]
mov esi, dword [ecx + eax - 0xc]
mov eax, dword [ecx + eax - 4]
sub eax, esi
shl eax, 0x14
cdq
idiv dword [esp + 0x40]
mov ecx, dword [esp + 0x50]
sub ebp, ecx
mov ecx, dword [esp + 0x7c]
imul ecx, ebp
shl edi, 0x14
shl ebx, 0x14
lea edx, [ecx + edi + 0x80000]
mov ecx, dword [esp + 0x74]
imul ecx, ebp
mov dword [esp + 0x8c], eax
imul eax, ebp
shl esi, 0x14
mov dword [esp + 0x20], edx
lea edx, [ecx + ebx + 0x80000]
mov ecx, dword [esp + 0x24]
lea eax, [eax + esi + 0x80000]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], edx
cmp esi, eax
jle 0x524a06
mov esi, eax
mov eax, ecx
mov edx, dword [esp + 0xc0]
imul eax, dword [esp + 0x54]
mov edi, dword [edx + 4]
mov dword [esp + 0x18], esi
add eax, edi
cmp ecx, esi
mov dword [esp + 0x58], eax
jg 0x524e86
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x4c]
shl eax, 4
shl edi, 4
lea ebp, [eax + ecx]
mov ecx, dword [esp + 0x34]
lea edx, [edi + esi]
mov dword [esp + 0x94], ebp
lea eax, [eax + ecx - 0xc]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
lea edi, [edi + ecx - 0xc]
sub ecx, esi
mov esi, dword [esp + 0x30]
add ebp, 0xfffffff0
lea ebx, [edx - 0x10]
sub eax, esi
mov dword [esp + 0x98], edx
mov dword [esp + 0x88], ebp
mov dword [esp + 0x90], edi
mov dword [esp + 0x50], ebx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
jmp 0x524ab7
mov ecx, dword [esp + 0xa8]
mov edi, dword [esp + 0x90]
mov ebp, dword [esp + 0x88]
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
cmp dword [edx + 4], eax
je 0x524b0d
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x70]
add eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x64]
add eax, edx
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x78]
mov dword [esp + 0x64], eax
sar eax, 0x14
imul eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x9c]
add ecx, edi
mov dword [esp + 0x60], ecx
sar ecx, 0x14
add edx, eax
lea edi, [edx + ecx*4]
jmp 0x524bb5
mov edx, dword [ebx + 0x10]
add ebx, 0x10
mov eax, edx
add edi, 0x10
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x90], edi
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x50], ebx
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 4]
sub esi, eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x98], eax
mov eax, dword [ebx + 8]
sub eax, edx
shl eax, 0x14
cdq
idiv esi
mov edx, dword [ebx + ecx]
mov ecx, dword [edi]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x80], eax
mov eax, edx
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x60], eax
mov eax, ecx
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x5c]
add esi, eax
mov eax, dword [edi + 4]
sub eax, edx
shl eax, 0x14
cdq
idiv esi
mov dword [esp + 0x78], eax
mov eax, dword [edi + 8]
sub eax, ecx
imul ecx, dword [esp + 0x2c]
shl eax, 0x14
cdq
idiv esi
mov edx, dword [esp + 0x9c]
mov esi, dword [esp + 0x1c]
add edx, ecx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x3c]
lea edi, [edx + eax*4]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x24]
cmp dword [ecx + 4], edx
je 0x524bf3
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x74]
add edx, eax
mov eax, dword [esp + 0x40]
add esi, ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x20], edx
add eax, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x40], eax
jmp 0x524c93
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0x10]
add ebp, 0x10
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, edx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x88], ebp
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 4]
sub ecx, eax
lea eax, [ebp + 0x10]
mov dword [esp + 0x94], eax
mov eax, dword [ebp + 8]
sub eax, edx
shl eax, 0x14
cdq
idiv ecx
mov edx, dword [esp + 0xac]
mov edx, dword [edx + ebp]
mov ebp, dword [esp + 0x14]
mov esi, edx
shl esi, 0x14
add esi, 0x80000
mov dword [esp + 0x1c], esi
mov dword [esp + 0x7c], eax
mov eax, dword [ebp]
mov dword [esp + 0x3c], eax
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x5c]
add ecx, eax
mov eax, dword [ebp + 4]
sub eax, edx
shl eax, 0x14
cdq
idiv ecx
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 8]
sub eax, dword [esp + 0x3c]
shl eax, 0x14
cdq
idiv ecx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
sar eax, 0x14
sar ecx, 0x14
mov dword [esp + 0x44], eax
sub eax, ecx
je 0x524cec
mov edx, dword [esp + 0x5c]
lea ebp, [eax + edx]
mov eax, dword [esp + 0x60]
sar eax, 0x14
shl eax, 0x14
mov edx, eax
mov eax, esi
and eax, 0xfff00000
sub eax, edx
cdq
idiv ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
sar eax, 0x14
shl eax, 0x14
mov edx, eax
mov eax, dword [esp + 0x40]
and eax, 0xfff00000
sub eax, edx
cdq
idiv ebp
mov dword [esp + 0x3c], eax
jmp 0x524cf6
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0xd0]
xor ebp, ebp
cmp edx, ebp
mov dword [esp + 0x68], edi
mov dword [esp + 0x48], ebp
jne 0x524d16
mov eax, dword [esp + 0x44]
mov edx, ecx
jmp 0x524d96
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x84]
cmp esi, edx
jl 0x524e63
mov esi, dword [esp + 0xa0]
cmp dword [esp + 0x20], esi
jl 0x524e63
cmp esi, edx
jg 0x524d42
mov edx, ecx
jmp 0x524d76
mov ecx, dword [esp + 0xd0]
mov ebp, dword [esp + 0x28]
mov edx, dword [ecx]
mov ecx, esi
sub ecx, ebp
sar ecx, 0x14
mov ebp, ecx
imul ecx, eax
imul ebp, dword [esp + 0x10]
mov dword [esp + 0x48], ecx
mov eax, ebp
sar ecx, 0x14
imul ecx, dword [esp + 0x2c]
sar eax, 0x14
add ecx, edi
lea edi, [ecx + eax*4]
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x20]
cmp eax, ecx
jg 0x524d8b
mov eax, dword [esp + 0x44]
jmp 0x524d96
mov eax, dword [esp + 0xd0]
mov eax, dword [eax + 8]
dec eax
cmp edx, eax
jg 0x524e53
mov ecx, dword [esp + 0x58]
sub eax, edx
inc eax
lea ecx, [ecx + edx*4 + 2]
mov dword [esp + 0x44], eax
xor edx, edx
xor ebx, ebx
mov dl, byte [edi + 3]
mov bl, byte [edi]
mov esi, edx
mov dl, byte [ecx - 2]
mov eax, edx
add ecx, 4
and eax, 0xff
shl esi, 9
sub ebx, eax
mov al, byte [ebx + esi + 0x60ef03]
add al, dl
xor edx, edx
mov byte [ecx - 6], al
mov al, byte [ecx - 5]
mov dl, byte [edi + 1]
mov ebx, eax
and ebx, 0xff
sub edx, ebx
mov dl, byte [edx + esi + 0x60ef03]
add dl, al
mov al, byte [ecx - 4]
mov byte [ecx - 5], dl
xor edx, edx
mov dl, byte [edi + 2]
mov edi, eax
and edi, 0xff
sub edx, edi
mov edi, dword [esp + 0x10]
add ebp, edi
mov dl, byte [edx + esi + 0x60ef03]
mov esi, dword [esp + 0x3c]
add dl, al
mov eax, dword [esp + 0x48]
add eax, esi
mov esi, dword [esp + 0x68]
mov dword [esp + 0x48], eax
mov byte [ecx - 4], dl
sar eax, 0x14
imul eax, dword [esp + 0x2c]
mov edx, ebp
add esi, eax
mov eax, dword [esp + 0x44]
mov byte [ecx - 3], 0
sar edx, 0x14
dec eax
lea edi, [esi + edx*4]
mov dword [esp + 0x44], eax
jne 0x524dad
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
add ecx, eax
mov dword [esp + 0x58], ecx
jmp 0x524e71
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
add eax, ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jle 0x524a9b
mov edx, dword [esp + 0x4c]
push edx
call fcn.0054a2d0
mov eax, dword [esp + 0x34]
push eax
call fcn.0054a2d0
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0054a2d0
mov edx, dword [esp + 0x40]
push edx
jmp 0x524ec6
push edx
call fcn.0054a2d0
mov eax, dword [esp + 0x34]
push eax
call fcn.0054a2d0
push ebx
call fcn.0054a2d0
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0054a2d0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret