Function at 0x1039170
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 0xc]
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0xffffffff
cmp ecx, 0x400
jae 0x10391cb
lea eax, [esi + 8]
push eax
add ecx, ecx
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax]
shr edx, 1
push edx
mov edx, dword [ebp + 0x20]
push edx
push ecx
call fcn.01031080
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov eax, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x20]
cmp eax, 4
jne 0x10391e8
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], 1
jmp 0x10395c7
cmp eax, 5
je 0x1039e1c
cmp eax, 1
jne 0x1039c9d
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 0x2c]
push eax
mov eax, dword [ebp + 0x28]
push ecx
push edi
push ebx
push edx
push eax
push esi
call fcn.010388c0
push esi
push edi
push ebx
call fcn.010377c0
test eax, eax
jne 0x103993e
lea ecx, [ebx + 0x100]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x1c]
lea edx, [edi - 0x20]
mov dword [ebp - 8], edi
cmp ecx, edx
jae 0x10395bb
cmp byte [ecx + ebx + 5], 0xc3
jne 0x10393ec
mov eax, dword [esi + 0x5c]
mov eax, dword [eax]
mov cl, byte [ebx]
xor edx, edx
xor edi, edi
lea esp, [esp]
cmp cl, byte [edi + ebx]
jne 0x10392a1
inc edi
cmp edi, 2
jl 0x1039260
cmp cl, byte [ebx + 1]
je 0x1039275
mov edx, 1
cmp cl, byte [ebx + 2]
je 0x103927b
inc edx
cmp cl, byte [ebx + 3]
je 0x1039281
inc edx
cmp cl, byte [ebx + 4]
je 0x1039287
inc edx
cmp cl, byte [ebx + 5]
je 0x103928d
inc edx
cmp cl, byte [ebx + 6]
je 0x1039293
inc edx
cmp cl, byte [ebx + 7]
je 0x1039299
inc edx
test edx, edx
jl 0x10393e6
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov ebx, edx
shld edx, ecx, 8
shr ebx, 0x18
movzx edi, bl
mov ebx, dword [ebp + 0x20]
movzx ebx, byte [ebx]
xor edi, ebx
xor edx, dword [eax + edi*8 + 4]
mov ebx, dword [ebp + 0x20]
shl ecx, 8
xor ecx, dword [eax + edi*8]
mov dword [esi + 0xc], edx
mov dword [esi + 8], ecx
mov edi, edx
mov dword [ebp - 0x24], edi
movzx edi, byte [ebx + 1]
shr edx, 0x18
movzx edx, dl
xor edx, edi
mov edi, dword [ebp - 0x24]
shld edi, ecx, 8
xor edi, dword [eax + edx*8 + 4]
shl ecx, 8
xor ecx, dword [eax + edx*8]
mov dword [esi + 0xc], edi
mov dword [esi + 8], ecx
mov edx, edi
mov dword [ebp - 0x24], edi
movzx edi, byte [ebx + 2]
shr edx, 0x18
movzx edx, dl
xor edx, edi
mov edi, dword [ebp - 0x24]
shld edi, ecx, 8
xor edi, dword [eax + edx*8 + 4]
shl ecx, 8
xor ecx, dword [eax + edx*8]
mov dword [esi + 0xc], edi
mov edx, edi
mov dword [esi + 8], ecx
mov dword [ebp - 0x24], edi
movzx edi, byte [ebx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, edi
mov edi, dword [ebp - 0x24]
shld edi, ecx, 8
xor edi, dword [eax + edx*8 + 4]
shl ecx, 8
xor ecx, dword [eax + edx*8]
mov dword [esi + 0xc], edi
mov edx, edi
mov dword [esi + 8], ecx
mov dword [ebp - 0x24], edi
movzx edi, byte [ebx + 4]
shr edx, 0x18
movzx edx, dl
xor edx, edi
mov edi, dword [ebp - 0x24]
shld edi, ecx, 8
xor edi, dword [eax + edx*8 + 4]
shl ecx, 8
xor ecx, dword [eax + edx*8]
mov edx, edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], ecx
mov dword [ebp - 0x24], edi
movzx edi, byte [ebx + 5]
shr edx, 0x18
movzx edx, dl
xor edx, edi
mov edi, dword [ebp - 0x24]
shld edi, ecx, 8
shl ecx, 8
xor ecx, dword [eax + edx*8]
xor edi, dword [eax + edx*8 + 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edi
mov dword [ebp - 0x24], edi
mov edx, edi
movzx edi, byte [ebx + 6]
shr edx, 0x18
movzx edx, dl
xor edx, edi
mov edi, dword [ebp - 0x24]
shld edi, ecx, 8
xor edi, dword [eax + edx*8 + 4]
shl ecx, 8
xor ecx, dword [eax + edx*8]
mov edx, edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], ecx
mov dword [ebp - 0x24], edi
movzx edi, byte [ebx + 7]
shr edx, 0x18
movzx edx, dl
xor edx, edi
mov edi, dword [ebp - 0x24]
shld edi, ecx, 8
shl ecx, 8
xor ecx, dword [eax + edx*8]
xor edi, dword [eax + edx*8 + 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edi
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0xc]
cmp ecx, edi
jae 0x103940c
mov al, byte [ecx + ebx]
cmp al, 0x60
je 0x1039407
cmp al, 0x66
je 0x1039407
cmp al, 0x9c
je 0x1039407
cmp al, 0x90
je 0x1039407
cmp al, 0x65
jne 0x103940c
inc ecx
cmp ecx, edi
jb 0x10393f0
add ecx, ebx
cmp byte [ecx], 0xe8
jne 0x10395bb
mov eax, dword [esi + 0x5c]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp + 0x24], edx
mov dl, byte [ecx]
mov byte [ebp + 0xb], dl
lea esp, [esp]
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi + ecx]
jne 0x103947a
inc edi
cmp edi, 2
mov dword [ebp + 0x24], edi
jl 0x1039430
mov edi, 1
cmp dl, byte [ecx + 1]
jne 0x103944e
mov edi, dword [ebp - 0x24]
cmp dl, byte [ecx + 2]
je 0x1039454
inc edi
cmp dl, byte [ecx + 3]
je 0x103945a
inc edi
cmp dl, byte [ecx + 4]
je 0x1039460
inc edi
cmp dl, byte [ecx + 5]
je 0x1039466
inc edi
cmp dl, byte [ecx + 6]
je 0x103946c
inc edi
cmp dl, byte [ecx + 7]
je 0x1039472
inc edi
test edi, edi
jl 0x10395bb
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 8]
movzx ebx, byte [ebp + 0xb]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 1]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 2]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [ebp - 0x24], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x24], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 4]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [ebp - 0x24], edx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 5]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
shl edi, 8
xor edi, dword [eax + edx*8]
xor ebx, dword [eax + edx*8 + 4]
mov dword [esi + 8], edi
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x24], edx
movzx ebx, byte [ecx + 6]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], edi
movzx ecx, byte [ecx + 7]
shr edx, 0x18
shld ebx, edi, 8
movzx edx, dl
xor edx, ecx
shl edi, 8
xor edi, dword [eax + edx*8]
xor ebx, dword [eax + edx*8 + 4]
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
mov ebx, dword [ebp + 0x20]
mov edx, dword [ebp + 0xc]
cmp dword [ebp + 0x14], edx
ja 0x103993e
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
sub edx, ebx
lea eax, [ecx - 0x80]
add ecx, edx
cmp ecx, eax
jbe 0x10395f3
mov edx, dword [ebp - 8]
jmp 0x10395e0
sub ecx, 0x200
sub edx, 0x200
cmp ecx, eax
ja 0x10395e0
mov dword [ebp - 8], edx
mov eax, dword [esi + 0x58]
cmp dword [eax + 4], 0
mov dword [ebp + 8], 0
jbe 0x10396e0
add eax, 8
mov dword [ebp + 0x24], eax
lea ecx, [ecx]
mov eax, dword [ebp - 8]
cmp eax, 0x100000
jbe 0x103961f
mov eax, 0x100000
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx + 0x14]
push edx
push ecx
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0102a7f0
mov edi, eax
sub edi, ebx
cmp edi, 0x14
jbe 0x10396c9
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffc00
cmp edi, ecx
jae 0x10396c9
mov edx, dword [ebp + 0x24]
mov eax, dword [edx + 0x1c]
test eax, eax
je 0x103967c
lea ecx, [eax + eax*8]
mov eax, dword [esi + 0x58]
mov edx, dword [eax + ecx*4 + 0xe2c]
lea eax, [eax + ecx*4]
push edx
add eax, 0xe18
push eax
push 0x54
lea eax, [edi + ebx - 0x20]
push eax
call fcn.0102a7f0
test eax, eax
je 0x10396c9
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax + 0x18]
cmp ecx, 7
je 0x1039956
cmp ecx, 6
je 0x103998b
mov eax, dword [eax + 0x20]
test eax, eax
je 0x10396a4
add eax, edi
cmp eax, dword [ebp + 0xc]
jae 0x10396a4
mov edi, eax
cmp ecx, 2
je 0x10399ad
mov eax, dword [ebp - 4]
cmp edi, eax
jbe 0x10396c0
test eax, eax
jne 0x10396c9
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
jmp 0x10396c6
mov edx, dword [ebp + 8]
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x58]
add dword [ebp + 0x24], 0x24
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [ecx + 4]
jb 0x1039610
cmp dword [ebp - 0x14], 0
jne 0x103992a
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp + 0x10]
dec edi
mov dword [ebp - 8], edi
cmp ecx, eax
jbe 0x1039702
sub eax, ecx
add edi, eax
mov dword [ebp - 8], edi
cmp edi, 0x400
jbe 0x1039740
lea ebx, [ebx]
mov al, byte [ebx + edi - 1]
test al, al
je 0x1039734
cmp al, 0x50
je 0x1039734
cmp al, 0x41
je 0x1039734
cmp al, 0x44
je 0x1039734
cmp al, 0x49
je 0x1039734
cmp al, 0x4e
je 0x1039734
cmp al, 0x47
je 0x1039734
cmp al, 0x58
jne 0x103973d
dec edi
cmp edi, 0x400
ja 0x1039710
mov dword [ebp - 8], edi
mov edx, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x1c]
shr edx, 1
add edx, dword [ebp + 0x28]
cmp ecx, edx
ja 0x1039766
mov edx, edi
imul edx, edx, 0xb
mov eax, 0xaaaaaaab
mul edx
shr edx, 3
cmp ecx, edx
jbe 0x10398cc
lea eax, [ecx + ebx]
xor edx, edx
mov dword [ebp + 8], eax
add eax, 0xfffffffe
lea ecx, [edx + 8]
cmp byte [eax + 2], 0
jne 0x103977b
inc edx
cmp byte [eax + 1], 0
jne 0x1039782
inc edx
cmp byte [eax], 0
jne 0x1039788
inc edx
cmp byte [eax - 1], 0
jne 0x103978f
inc edx
sub eax, 4
sub ecx, 1
jne 0x1039774
cmp edx, 0x10
jl 0x10398cc
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x5c]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp + 8], edx
mov dword [ebp + 0x24], edx
mov dl, byte [ecx]
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi + ecx]
jne 0x103980f
inc edi
cmp edi, 4
mov dword [ebp + 0x24], edi
jl 0x10397b2
lea edi, [ecx + 1]
mov dword [ebp + 0x24], edi
mov dword [ebp - 0x1c], 4
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi - 1]
je 0x10397db
inc dword [ebp + 8]
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi]
je 0x10397e5
inc dword [ebp + 8]
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi + 1]
je 0x10397f0
inc dword [ebp + 8]
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi + 2]
je 0x10397fb
inc dword [ebp + 8]
add dword [ebp + 0x24], 4
sub dword [ebp - 0x1c], 1
jne 0x10397d0
cmp dword [ebp + 8], 1
jl 0x10398c9
mov dword [ebp + 8], 4
mov edx, dword [esi + 0xc]
movzx ebx, byte [ecx]
mov edi, dword [esi + 8]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 1]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x24], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 2]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x24], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
add ecx, 4
sub dword [ebp + 8], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
jne 0x1039816
mov ebx, dword [ebp + 0x20]
mov edi, dword [ebp - 8]
lea eax, [edi*8]
sub eax, edi
shr eax, 3
lea ecx, [edi - 0x200]
cmp ecx, eax
jbe 0x10398e4
mov eax, ecx
mov edx, dword [ebp + 0x1c]
cmp edx, eax
jbe 0x103992a
mov ecx, 0xe
mov eax, 0x100c9a0
lea edi, [edx + ebx + 0xe]
lea esp, [esp]
mov edx, dword [edi]
cmp edx, dword [eax]
jne 0x1039922
sub ecx, 4
add eax, 4
add edi, 4
cmp ecx, 4
jae 0x1039900
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x1039922
mov dl, byte [eax + 1]
cmp dl, byte [edi + 1]
je 0x103992a
xor dword [esi + 8], 2
xor dword [esi + 0xc], 0
cmp dword [ebp - 0x20], 0xffffffff
jne 0x1039a13
cmp dword [ebp - 0x14], 0
jne 0x103a7bc
mov ecx, dword [ebp + 0xc]
push ecx
push esi
call fcn.010382b0
pop edi
pop esi
mov eax, 0x9641
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov ecx, dword [esi + 0x44]
mov edx, dword [ebp + 0xc]
sub edx, ecx
mov eax, 0xcccccccd
mul edx
shr edx, 3
lea eax, [esi + 8]
push eax
add ecx, edx
push edx
add ecx, ebx
push ecx
mov ecx, dword [esi + 0x5c]
mov edx, dword [ecx]
push edx
call fcn.01031080
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x5c]
lea eax, [esi + 8]
push eax
mov eax, dword [edx]
push ecx
push ebx
push eax
call fcn.010314f0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov ecx, dword [ebp + 0xc]
push 0x28
push 0x100c974
sub ecx, edi
push ecx
lea edx, [edi + ebx]
push edx
call fcn.01037520
sub eax, ebx
cmp eax, dword [ebp + 0xc]
jae 0x1039a10
cmp eax, 0x14
jbe 0x1039a10
cmp eax, 0x800
jbe 0x10399dc
lea edi, [eax - 0x400]
mov eax, 3
cmp edi, 0x400
jbe 0x1039a02
lea esp, [esp]
mov cl, byte [edi + ebx]
cmp cl, byte [edi + ebx - 1]
jne 0x1039a02
dec edi
cmp edi, 0x400
ja 0x10399f0
sub edi, 0x10
sub eax, 1
jne 0x10399e1
sub edi, 0x200
mov dword [ebp - 4], edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
lea edx, [ecx - 0x200]
mov dword [ebp + 0x24], eax
cmp eax, edx
jbe 0x1039a2e
mov eax, ecx
shr eax, 2
mov dword [ebp + 0x24], eax
add ebx, eax
mov eax, dword [esi + 0x5c]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp + 0x1c], edx
mov dword [ebp + 8], edx
mov dl, byte [ebx]
lea ecx, [esi + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0x18], ebx
mov edi, dword [ebp + 8]
cmp dl, byte [edi + ebx]
jne 0x1039aa5
inc edi
cmp edi, 0x20
mov dword [ebp + 8], edi
jl 0x1039a48
lea edi, [ebx + 1]
mov dword [ebp + 8], edi
mov dword [ebp - 0x20], 0x20
mov edi, dword [ebp + 8]
cmp dl, byte [edi - 1]
je 0x1039a71
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi]
je 0x1039a7b
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 1]
je 0x1039a86
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 2]
je 0x1039a91
inc dword [ebp + 0x1c]
add dword [ebp + 8], 4
sub dword [ebp - 0x20], 1
jne 0x1039a66
cmp dword [ebp + 0x1c], 8
jl 0x1039b6a
mov dword [ebp + 0x1c], 0x20
lea esp, [esp]
movzx ebx, byte [ebx]
mov edx, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [ecx + 4], ebx
mov edx, ebx
mov ebx, dword [ebp + 0x18]
mov dword [ecx], edi
movzx ebx, byte [ebx + 1]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [ecx + 4], ebx
mov edx, ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x24], edx
mov dword [ecx], edi
movzx ebx, byte [ebx + 2]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [ecx + 4], ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x24], edx
mov dword [ecx], edi
movzx ebx, byte [ebx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [ecx + 4], ebx
mov ebx, dword [ebp + 0x18]
add ebx, 4
sub dword [ebp + 0x1c], 1
mov dword [ecx], edi
mov dword [ebp + 0x18], ebx
jne 0x1039ab0
mov eax, dword [esi + 0x5c]
mov edx, dword [ebp - 0xc]
mov edi, dword [eax]
mov bl, byte [edx + 0xc0]
add edx, 0xc0
xor eax, eax
mov dword [ebp + 8], edx
mov dword [ebp + 0x1c], eax
cmp bl, byte [eax + edx]
jne 0x1039bd2
inc eax
cmp eax, 8
jl 0x1039b86
lea eax, [edx + 1]
mov dword [ebp + 0x18], 8
jmp 0x1039ba0
cmp bl, byte [eax - 1]
je 0x1039ba8
inc dword [ebp + 0x1c]
cmp bl, byte [eax]
je 0x1039baf
inc dword [ebp + 0x1c]
cmp bl, byte [eax + 1]
je 0x1039bb7
inc dword [ebp + 0x1c]
cmp bl, byte [eax + 2]
je 0x1039bbf
inc dword [ebp + 0x1c]
add eax, 4
sub dword [ebp + 0x18], 1
jne 0x1039ba0
cmp dword [ebp + 0x1c], 2
jl 0x103a8ae
mov dword [ebp + 0x1c], 8
lea esp, [esp]
mov edx, dword [ecx + 4]
mov ebx, dword [ebp + 8]
movzx ebx, byte [ebx]
mov eax, dword [ecx]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, eax, 8
xor ebx, dword [edi + edx*8 + 4]
shl eax, 8
xor eax, dword [edi + edx*8]
mov dword [ecx + 4], ebx
mov edx, ebx
mov ebx, dword [ebp + 8]
mov dword [ecx], eax
movzx ebx, byte [ebx + 1]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, eax, 8
xor ebx, dword [edi + edx*8 + 4]
shl eax, 8
xor eax, dword [edi + edx*8]
mov dword [ecx + 4], ebx
mov edx, ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24], edx
mov dword [ecx], eax
movzx ebx, byte [ebx + 2]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, eax, 8
xor ebx, dword [edi + edx*8 + 4]
shl eax, 8
xor eax, dword [edi + edx*8]
mov edx, ebx
mov dword [ecx + 4], ebx
mov ebx, dword [ebp + 8]
add dword [ebp + 8], 4
mov dword [ebp - 0x24], edx
mov dword [ecx], eax
movzx ebx, byte [ebx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, eax, 8
xor ebx, dword [edi + edx*8 + 4]
shl eax, 8
xor eax, dword [edi + edx*8]
sub dword [ebp + 0x1c], 1
mov dword [ecx], eax
mov dword [ecx + 4], ebx
jne 0x1039be0
jmp 0x103aa18
cmp eax, 2
jne 0x103a7bc
mov eax, dword [esi + 0x28]
cmp eax, 0x100
jae 0x1039e09
test eax, eax
jbe 0x1039e09
add ecx, 0xffffffe0
cmp eax, ecx
jae 0x1039e09
lea ecx, [eax + ebx]
mov al, byte [ecx]
cmp al, 0xe0
jb 0x1039e09
cmp al, 0xf0
jae 0x1039e09
mov edx, dword [esi + 0x5c]
mov eax, dword [edx]
xor edx, edx
mov dword [ebp + 8], edx
mov dword [ebp + 0x24], edx
mov dl, byte [ecx]
jmp 0x1039cf0
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi + ecx]
jne 0x1039d4f
inc edi
cmp edi, 4
mov dword [ebp + 0x24], edi
jl 0x1039cf0
lea edi, [ecx + 1]
mov dword [ebp + 0x24], edi
mov dword [ebp - 0x20], 4
mov edi, edi
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi - 1]
je 0x1039d1b
inc dword [ebp + 8]
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi]
je 0x1039d25
inc dword [ebp + 8]
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi + 1]
je 0x1039d30
inc dword [ebp + 8]
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi + 2]
je 0x1039d3b
inc dword [ebp + 8]
add dword [ebp + 0x24], 4
sub dword [ebp - 0x20], 1
jne 0x1039d10
cmp dword [ebp + 8], 1
jl 0x1039e09
mov dword [ebp + 8], 4
mov edx, dword [esi + 0xc]
movzx ebx, byte [ecx]
mov edi, dword [esi + 8]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 1]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x24], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 2]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x24], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
add ecx, 4
sub dword [ebp + 8], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
jne 0x1039d56
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 0xc]
push esi
push eax
push ebx
call fcn.010377c0
test eax, eax
jne 0x103993e
mov edi, dword [ebp + 0xc]
mov eax, edi
cmp edi, 0x100000
jbe 0x1039e2e
mov eax, 0x100000
push 3
push 0x100c940
push eax
push ebx
call fcn.0102a7f0
mov ecx, dword [ebp + 0x1c]
sub eax, ebx
cmp eax, 0x14
jbe 0x1039e57
lea edx, [edi - 0x400]
cmp eax, edx
jae 0x1039e57
add eax, 0x100
jmp 0x1039e65
test ecx, ecx
je 0x1039e62
mov eax, ecx
mov dword [ebp + 0x24], ecx
jmp 0x1039e68
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x24], eax
lea ecx, [edi - 0x200]
cmp eax, ecx
jbe 0x1039e7a
mov eax, edi
shr eax, 2
mov dword [ebp + 0x24], eax
mov ecx, edi
sub edi, eax
mov dword [ebp + 8], eax
lea eax, [ecx - 0xa]
cmp eax, 0x100000
jbe 0x1039e90
mov eax, 0x100000
push 9
push 0x100c968
push eax
push ebx
call fcn.0102a7f0
test eax, eax
je 0x1039eab
mov edi, dword [ebp + 0xc]
sub eax, ebx
sub edi, eax
jmp 0x1039eae
mov eax, dword [ebp + 8]
mov dword [ebp + 8], 0
mov ecx, dword [ebp + 0xc]
add ecx, 0xffffffe0
lea edx, [eax + ebx]
cmp eax, ecx
ja 0x103a2a7
mov eax, edi
cmp edi, 0x100000
jbe 0x1039ed5
mov eax, 0x100000
push 3
push 0x100c940
push eax
push edx
call fcn.0102a7f0
sub eax, ebx
mov dword [ebp - 8], eax
cmp eax, 0x14
jbe 0x103a2a7
cmp eax, dword [ebp + 0xc]
jae 0x103a2a7
push 5
push 0x100c960
lea edi, [eax + ebx]
push 0x20
push edi
call fcn.0102a7f0
test eax, eax
jne 0x1039f23
push 5
push 0x100c958
push 0x20
push edi
call fcn.0102a7f0
test eax, eax
je 0x1039f3e
sub eax, dword [ebp - 8]
mov edx, dword [esi + 0x5c]
lea ecx, [esi + 8]
push ecx
sub eax, ebx
push eax
mov eax, dword [edx]
push edi
push eax
call fcn.01031080
jmp 0x103a27a
mov ecx, dword [esi + 0x5c]
mov eax, dword [ecx]
mov dl, byte [edi]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
lea ebx, [ebx]
cmp dl, byte [ecx + edi]
jne 0x1039f94
inc ecx
cmp ecx, 2
jl 0x1039f50
mov ecx, 1
cmp dl, byte [edi + 1]
jne 0x1039f68
mov ecx, dword [ebp - 0x24]
cmp dl, byte [edi + 2]
je 0x1039f6e
inc ecx
cmp dl, byte [edi + 3]
je 0x1039f74
inc ecx
cmp dl, byte [edi + 4]
je 0x1039f7a
inc ecx
cmp dl, byte [edi + 5]
je 0x1039f80
inc ecx
cmp dl, byte [edi + 6]
je 0x1039f86
inc ecx
cmp dl, byte [edi + 7]
je 0x1039f8c
inc ecx
test ecx, ecx
jl 0x103a0d4
movzx ebx, byte [edi]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov dword [ebp - 0x14], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x14]
shld ebx, ecx, 8
xor ebx, dword [eax + edx*8 + 4]
shl ecx, 8
xor ecx, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [esi + 8], ecx
movzx ebx, byte [edi + 1]
mov dword [ebp - 0x14], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x14]
shld ebx, ecx, 8
xor ebx, dword [eax + edx*8 + 4]
shl ecx, 8
xor ecx, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [esi + 8], ecx
movzx ebx, byte [edi + 2]
mov dword [ebp - 0x14], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x14]
shld ebx, ecx, 8
xor ebx, dword [eax + edx*8 + 4]
shl ecx, 8
xor ecx, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [ebp - 0x14], edx
mov dword [esi + 8], ecx
movzx ebx, byte [edi + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x14]
shld ebx, ecx, 8
xor ebx, dword [eax + edx*8 + 4]
shl ecx, 8
xor ecx, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x14], edx
mov dword [esi + 8], ecx
movzx ebx, byte [edi + 4]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x14]
shld ebx, ecx, 8
xor ebx, dword [eax + edx*8 + 4]
shl ecx, 8
xor ecx, dword [eax + edx*8]
mov edx, ebx
mov dword [ebp - 0x14], edx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ecx
movzx ebx, byte [edi + 5]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x14]
shld ebx, ecx, 8
shl ecx, 8
xor ecx, dword [eax + edx*8]
xor ebx, dword [eax + edx*8 + 4]
mov dword [esi + 8], ecx
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x14], edx
movzx ebx, byte [edi + 6]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x14]
shld ebx, ecx, 8
xor ebx, dword [eax + edx*8 + 4]
shl ecx, 8
xor ecx, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ecx
movzx edi, byte [edi + 7]
shr edx, 0x18
shld ebx, ecx, 8
movzx edx, dl
xor edx, edi
shl ecx, 8
xor ecx, dword [eax + edx*8]
xor ebx, dword [eax + edx*8 + 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebx
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp - 8]
mov edx, dword [esi + 0x5c]
lea ecx, [eax + ebx + 0x10]
mov eax, dword [edx]
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dl, byte [ecx]
lea ebx, [ebx]
mov edi, dword [ebp - 0x20]
cmp dl, byte [edi + ecx]
jne 0x103a13a
inc edi
cmp edi, 2
mov dword [ebp - 0x20], edi
jl 0x103a0f0
mov edi, 1
cmp dl, byte [ecx + 1]
jne 0x103a10e
mov edi, dword [ebp - 0x24]
cmp dl, byte [ecx + 2]
je 0x103a114
inc edi
cmp dl, byte [ecx + 3]
je 0x103a11a
inc edi
cmp dl, byte [ecx + 4]
je 0x103a120
inc edi
cmp dl, byte [ecx + 5]
je 0x103a126
inc edi
cmp dl, byte [ecx + 6]
je 0x103a12c
inc edi
cmp dl, byte [ecx + 7]
je 0x103a132
inc edi
test edi, edi
jl 0x103a27a
movzx ebx, byte [ecx]
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 8]
mov dword [ebp - 0xc], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0xc]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 1]
mov dword [ebp - 0xc], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0xc]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 2]
mov dword [ebp - 0xc], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0xc]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [ebp - 0xc], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0xc]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0xc], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 4]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0xc]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [ebp - 0xc], edx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 5]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0xc]
shld ebx, edi, 8
shl edi, 8
xor edi, dword [eax + edx*8]
xor ebx, dword [eax + edx*8 + 4]
mov dword [esi + 8], edi
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0xc], edx
movzx ebx, byte [ecx + 6]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0xc]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], edi
movzx ecx, byte [ecx + 7]
shr edx, 0x18
shld ebx, edi, 8
movzx edx, dl
xor edx, ecx
shl edi, 8
xor edi, dword [eax + edx*8]
xor ebx, dword [eax + edx*8 + 4]
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
add eax, 0x18
inc ecx
sub edi, eax
mov dword [ebp + 8], ecx
cmp ecx, 0xa
jb 0x1039eb5
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
push ebx
jmp 0x103aa2e
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x24]
lea edx, [eax + eax*4]
mov eax, 0xaaaaaaab
mul edx
shr edx, 2
mov dword [ebp + 8], edx
lea ecx, [ecx]
mov ecx, dword [ebp + 0xc]
mov edx, 2
cmp edi, ecx
jae 0x103a2e5
lea esp, [esp]
mov al, byte [edi + ebx]
test al, al
je 0x103a2db
cmp al, 0x90
jne 0x103a2e2
inc edi
cmp edi, ecx
jb 0x103a2d0
jmp 0x103a2e5
add edi, 0x10
sub edx, 1
jne 0x103a2c8
sub edi, 0x10
cmp edi, dword [ebp + 8]
ja 0x103a2fc
lea eax, [ecx - 0x400]
cmp edi, eax
jbe 0x103a302
mov edx, ecx
shr edx, 1
sub edi, edx
lea eax, [ecx - 0x200]
cmp edi, eax
jbe 0x103a311
mov edi, ecx
shr edi, 2
push 0x200
lea eax, [edi + ebx]
push eax
call fcn.01037550
fcomp qword [0x100c950]
fnstsw ax
test ah, 5
jp 0x103a388
mov edi, dword [ebp + 0x1c]
test edi, edi
ja 0x103a336
mov edi, dword [ebp + 0x18]
add edi, 0xffffff80
cmp dword [ebp - 0x1c], 0
jne 0x103a34b
mov dword [ebp - 0x1c], 1
jmp 0x103a2c0
mov eax, dword [ebp + 0xc]
shr eax, 1
cmp eax, 0x100000
jbe 0x103a35c
mov eax, 0x100000
lea ecx, [esi + 8]
push ecx
push eax
mov eax, 0xaaaaaaab
mul dword [ebp + 0xc]
shr edx, 2
add edx, ebx
push edx
mov edx, dword [esi + 0x5c]
mov eax, dword [edx]
push eax
call fcn.01031080
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov ecx, dword [ebp + 0xc]
lea eax, [ecx - 0x200]
cmp edi, eax
jbe 0x103a39a
mov edi, ecx
shr edi, 2
mov edx, dword [esi + 0x5c]
mov eax, dword [edx]
xor edx, edx
lea ecx, [edi + ebx]
mov dword [ebp + 0x1c], edx
mov dword [ebp + 8], edx
mov dl, byte [ecx]
mov dword [ebp - 0xc], ecx
nop
mov edi, dword [ebp + 8]
cmp dl, byte [edi + ecx]
jne 0x103a40f
inc edi
cmp edi, 4
mov dword [ebp + 8], edi
jl 0x103a3b0
lea edi, [ecx + 1]
mov dword [ebp + 8], edi
mov dword [ebp + 0x18], 4
mov edi, edi
mov edi, dword [ebp + 8]
cmp dl, byte [edi - 1]
je 0x103a3db
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi]
je 0x103a3e5
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 1]
je 0x103a3f0
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 2]
je 0x103a3fb
inc dword [ebp + 0x1c]
add dword [ebp + 8], 4
sub dword [ebp + 0x18], 1
jne 0x103a3d0
cmp dword [ebp + 0x1c], 1
jl 0x103a4c9
mov dword [ebp + 0x1c], 4
mov edx, dword [esi + 0xc]
movzx ebx, byte [ecx]
mov edi, dword [esi + 8]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 1]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x24], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 2]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x24], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
add ecx, 4
sub dword [ebp + 0x1c], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
jne 0x103a416
mov ebx, dword [ebp + 0x20]
mov ecx, dword [ebp - 0xc]
mov eax, dword [esi + 0x5c]
mov eax, dword [eax]
add ecx, 0x40
xor edx, edx
mov dword [ebp + 0x1c], edx
mov dword [ebp + 8], edx
mov dl, byte [ecx]
mov edi, edi
mov edi, dword [ebp + 8]
cmp dl, byte [edi + ecx]
jne 0x103a555
inc edi
cmp edi, 3
mov dword [ebp + 8], edi
jl 0x103a4e0
lea edi, [ecx + 1]
mov dword [ebp + 8], edi
mov dword [ebp + 0x18], 2
mov edi, edi
mov edi, dword [ebp + 8]
cmp dl, byte [edi - 1]
je 0x103a50b
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi]
je 0x103a515
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 1]
je 0x103a520
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 2]
je 0x103a52b
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 3]
je 0x103a536
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 4]
je 0x103a541
inc dword [ebp + 0x1c]
add dword [ebp + 8], 6
sub dword [ebp + 0x18], 1
jne 0x103a500
cmp dword [ebp + 0x1c], 0
jl 0x103a663
mov dword [ebp + 0x1c], 2
lea esp, [esp]
movzx ebx, byte [ecx]
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 8]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 1]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 2]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 3]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x24], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 4]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x24], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 5]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
add ecx, 6
sub dword [ebp + 0x1c], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
jne 0x103a560
mov ebx, dword [ebp + 0x20]
mov edx, dword [esi + 0x5c]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx]
sub ecx, 0xffffff80
xor edx, edx
mov dword [ebp + 0x1c], edx
mov dword [ebp + 8], edx
mov dl, byte [ecx]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + ecx]
jne 0x103a6d5
inc edi
cmp edi, 0x10
mov dword [ebp + 8], edi
jl 0x103a678
lea edi, [ecx + 1]
mov dword [ebp + 8], edi
mov dword [ebp + 0x18], 0x10
mov edi, dword [ebp + 8]
cmp dl, byte [edi - 1]
je 0x103a6a1
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi]
je 0x103a6ab
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 1]
je 0x103a6b6
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 2]
je 0x103a6c1
inc dword [ebp + 0x1c]
add dword [ebp + 8], 4
sub dword [ebp + 0x18], 1
jne 0x103a696
cmp dword [ebp + 0x1c], 4
jl 0x103a793
mov dword [ebp + 0x1c], 0x10
lea esp, [esp]
mov edx, dword [esi + 0xc]
movzx ebx, byte [ecx]
mov edi, dword [esi + 8]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 1]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x24], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 2]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x24], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
add ecx, 4
sub dword [ebp + 0x1c], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
jne 0x103a6e0
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x2c]
push ecx
mov ecx, dword [ebp + 0x28]
push edx
push ebx
push eax
push ecx
push esi
call fcn.010383a0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
lea edx, [ecx - 0x400]
lea edi, [eax + 0x200]
cmp eax, edx
jbe 0x103a7e4
mov edi, ecx
shr edi, 2
cmp edi, 0x1000
jbe 0x103a7e4
mov edi, 0x1000
lea edx, [ecx + ecx*4]
mov eax, 0xaaaaaaab
mul edx
shr edx, 2
mov dword [ebp + 8], edx
mov eax, edi
cmp edi, ecx
jae 0x103a811
lea ebx, [ebx]
mov dl, byte [eax + ebx]
test dl, dl
je 0x103a80c
cmp dl, 0x90
jne 0x103a811
inc eax
cmp eax, ecx
jb 0x103a800
add eax, 0x10
cmp eax, ecx
jb 0x103a828
mov eax, ecx
shr eax, 1
cmp eax, 0x400
jbe 0x103a828
mov eax, 0x400
mov edi, eax
cmp eax, ecx
jae 0x103a840
mov edi, edi
mov al, byte [edi + ebx]
test al, al
je 0x103a83b
cmp al, 0x90
jne 0x103a840
inc edi
cmp edi, ecx
jb 0x103a830
mov dword [ebp - 4], edi
cmp edi, dword [ebp + 8]
jbe 0x103a85d
cmp dword [ebp - 0xc], 0
jne 0x103a8a0
mov eax, ecx
shr eax, 1
sub edi, eax
mov dword [ebp - 0xc], 1
jmp 0x103a7f4
mov ecx, dword [ebp + 0xc]
sub ecx, edi
push ecx
lea edx, [edi + ebx]
push edx
call fcn.01037550
fcomp qword [0x100c058]
fnstsw ax
test ah, 5
jp 0x1039a13
cmp dword [ebp - 0xc], 0
jne 0x103a8a0
lea ecx, [edi + edi]
mov eax, 0xaaaaaaab
mul ecx
mov ecx, dword [ebp + 0xc]
shr edx, 1
sub edi, edx
mov dword [ebp - 0xc], 1
jmp 0x103a7f4
pop edi
pop esi
mov eax, 5
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov ebx, dword [ebp + 0x24]
lea edx, [ebx + ebx]
mov eax, 0xaaaaaaab
mul edx
mov eax, dword [ebp + 0xc]
shr edx, 1
add eax, 0xffffffc0
cmp edx, eax
jbe 0x103a8f4
mov eax, 0xaaaaaaab
mul ebx
mov eax, dword [ebp + 0xc]
shr edx, 1
sub eax, edx
cmp eax, 0x100000
jbe 0x103a8e1
mov eax, 0x100000
push ecx
mov ecx, dword [ebp + 0x20]
push eax
add edx, ecx
push edx
push edi
call fcn.01031080
jmp 0x103aa18
mov eax, dword [ebp + 0x20]
mov bl, byte [edx + eax]
add edx, eax
xor eax, eax
mov dword [ebp + 8], edx
mov dword [ebp + 0x1c], eax
cmp bl, byte [eax + edx]
jne 0x103a952
inc eax
cmp eax, 0x10
jl 0x103a904
lea eax, [edx + 1]
mov dword [ebp + 0x18], 0x10
lea esp, [esp]
cmp bl, byte [eax - 1]
je 0x103a928
inc dword [ebp + 0x1c]
cmp bl, byte [eax]
je 0x103a92f
inc dword [ebp + 0x1c]
cmp bl, byte [eax + 1]
je 0x103a937
inc dword [ebp + 0x1c]
cmp bl, byte [eax + 2]
je 0x103a93f
inc dword [ebp + 0x1c]
add eax, 4
sub dword [ebp + 0x18], 1
jne 0x103a920
cmp dword [ebp + 0x1c], 4
jl 0x103aa18
mov dword [ebp + 0x1c], 0x10
lea esp, [esp]
mov edx, dword [ecx + 4]
mov ebx, dword [ebp + 8]
movzx ebx, byte [ebx]
mov eax, dword [ecx]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, eax, 8
xor ebx, dword [edi + edx*8 + 4]
shl eax, 8
xor eax, dword [edi + edx*8]
mov dword [ecx + 4], ebx
mov edx, ebx
mov ebx, dword [ebp + 8]
mov dword [ecx], eax
movzx ebx, byte [ebx + 1]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, eax, 8
xor ebx, dword [edi + edx*8 + 4]
shl eax, 8
xor eax, dword [edi + edx*8]
mov dword [ecx + 4], ebx
mov edx, ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24], edx
mov dword [ecx], eax
movzx ebx, byte [ebx + 2]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, eax, 8
xor ebx, dword [edi + edx*8 + 4]
shl eax, 8
xor eax, dword [edi + edx*8]
mov edx, ebx
mov dword [ecx + 4], ebx
mov ebx, dword [ebp + 8]
add dword [ebp + 8], 4
mov dword [ebp - 0x24], edx
mov dword [ecx], eax
movzx ebx, byte [ebx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, eax, 8
xor ebx, dword [edi + edx*8 + 4]
shl eax, 8
xor eax, dword [edi + edx*8]
sub dword [ebp + 0x1c], 1
mov dword [ecx], eax
mov dword [ecx + 4], ebx
jne 0x103a960
cmp dword [ebp - 0x14], 0
jne 0x103aa3c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x20]
push edx
push eax
push ecx
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x28]
push edx
push eax
push esi
call fcn.010383a0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x28