Function at 0x1038040
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 0x103809b
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.0102ff60
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 0x10380b8
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], 1
jmp 0x1038497
cmp eax, 5
je 0x1038cec
cmp eax, 1
jne 0x1038b6d
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.01037790
push esi
push edi
push ebx
call fcn.01036690
test eax, eax
jne 0x103880e
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 0x103848b
cmp byte [ecx + ebx + 5], 0xc3
jne 0x10382bc
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 0x1038171
inc edi
cmp edi, 2
jl 0x1038130
cmp cl, byte [ebx + 1]
je 0x1038145
mov edx, 1
cmp cl, byte [ebx + 2]
je 0x103814b
inc edx
cmp cl, byte [ebx + 3]
je 0x1038151
inc edx
cmp cl, byte [ebx + 4]
je 0x1038157
inc edx
cmp cl, byte [ebx + 5]
je 0x103815d
inc edx
cmp cl, byte [ebx + 6]
je 0x1038163
inc edx
cmp cl, byte [ebx + 7]
je 0x1038169
inc edx
test edx, edx
jl 0x10382b6
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 0x10382dc
mov al, byte [ecx + ebx]
cmp al, 0x60
je 0x10382d7
cmp al, 0x66
je 0x10382d7
cmp al, 0x9c
je 0x10382d7
cmp al, 0x90
je 0x10382d7
cmp al, 0x65
jne 0x10382dc
inc ecx
cmp ecx, edi
jb 0x10382c0
add ecx, ebx
cmp byte [ecx], 0xe8
jne 0x103848b
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 0x103834a
inc edi
cmp edi, 2
mov dword [ebp + 0x24], edi
jl 0x1038300
mov edi, 1
cmp dl, byte [ecx + 1]
jne 0x103831e
mov edi, dword [ebp - 0x24]
cmp dl, byte [ecx + 2]
je 0x1038324
inc edi
cmp dl, byte [ecx + 3]
je 0x103832a
inc edi
cmp dl, byte [ecx + 4]
je 0x1038330
inc edi
cmp dl, byte [ecx + 5]
je 0x1038336
inc edi
cmp dl, byte [ecx + 6]
je 0x103833c
inc edi
cmp dl, byte [ecx + 7]
je 0x1038342
inc edi
test edi, edi
jl 0x103848b
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 0x103880e
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
sub edx, ebx
lea eax, [ecx - 0x80]
add ecx, edx
cmp ecx, eax
jbe 0x10384c3
mov edx, dword [ebp - 8]
jmp 0x10384b0
sub ecx, 0x200
sub edx, 0x200
cmp ecx, eax
ja 0x10384b0
mov dword [ebp - 8], edx
mov eax, dword [esi + 0x58]
cmp dword [eax + 4], 0
mov dword [ebp + 8], 0
jbe 0x10385b0
add eax, 8
mov dword [ebp + 0x24], eax
lea ecx, [ecx]
mov eax, dword [ebp - 8]
cmp eax, 0x100000
jbe 0x10384ef
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.01029710
mov edi, eax
sub edi, ebx
cmp edi, 0x14
jbe 0x1038599
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffc00
cmp edi, ecx
jae 0x1038599
mov edx, dword [ebp + 0x24]
mov eax, dword [edx + 0x1c]
test eax, eax
je 0x103854c
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.01029710
test eax, eax
je 0x1038599
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax + 0x18]
cmp ecx, 7
je 0x1038826
cmp ecx, 6
je 0x103885b
mov eax, dword [eax + 0x20]
test eax, eax
je 0x1038574
add eax, edi
cmp eax, dword [ebp + 0xc]
jae 0x1038574
mov edi, eax
cmp ecx, 2
je 0x103887d
mov eax, dword [ebp - 4]
cmp edi, eax
jbe 0x1038590
test eax, eax
jne 0x1038599
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
jmp 0x1038596
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 0x10384e0
cmp dword [ebp - 0x14], 0
jne 0x10387fa
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 0x10385d2
sub eax, ecx
add edi, eax
mov dword [ebp - 8], edi
cmp edi, 0x400
jbe 0x1038610
lea ebx, [ebx]
mov al, byte [ebx + edi - 1]
test al, al
je 0x1038604
cmp al, 0x50
je 0x1038604
cmp al, 0x41
je 0x1038604
cmp al, 0x44
je 0x1038604
cmp al, 0x49
je 0x1038604
cmp al, 0x4e
je 0x1038604
cmp al, 0x47
je 0x1038604
cmp al, 0x58
jne 0x103860d
dec edi
cmp edi, 0x400
ja 0x10385e0
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 0x1038636
mov edx, edi
imul edx, edx, 0xb
mov eax, 0xaaaaaaab
mul edx
shr edx, 3
cmp ecx, edx
jbe 0x103879c
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 0x103864b
inc edx
cmp byte [eax + 1], 0
jne 0x1038652
inc edx
cmp byte [eax], 0
jne 0x1038658
inc edx
cmp byte [eax - 1], 0
jne 0x103865f
inc edx
sub eax, 4
sub ecx, 1
jne 0x1038644
cmp edx, 0x10
jl 0x103879c
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 0x10386df
inc edi
cmp edi, 4
mov dword [ebp + 0x24], edi
jl 0x1038682
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 0x10386ab
inc dword [ebp + 8]
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi]
je 0x10386b5
inc dword [ebp + 8]
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi + 1]
je 0x10386c0
inc dword [ebp + 8]
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi + 2]
je 0x10386cb
inc dword [ebp + 8]
add dword [ebp + 0x24], 4
sub dword [ebp - 0x1c], 1
jne 0x10386a0
cmp dword [ebp + 8], 1
jl 0x1038799
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 0x10386e6
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 0x10387b4
mov eax, ecx
mov edx, dword [ebp + 0x1c]
cmp edx, eax
jbe 0x10387fa
mov ecx, 0xe
mov eax, 0x100c000
lea edi, [edx + ebx + 0xe]
lea esp, [esp]
mov edx, dword [edi]
cmp edx, dword [eax]
jne 0x10387f2
sub ecx, 4
add eax, 4
add edi, 4
cmp ecx, 4
jae 0x10387d0
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x10387f2
mov dl, byte [eax + 1]
cmp dl, byte [edi + 1]
je 0x10387fa
xor dword [esi + 8], 2
xor dword [esi + 0xc], 0
cmp dword [ebp - 0x20], 0xffffffff
jne 0x10388e3
cmp dword [ebp - 0x14], 0
jne 0x103968c
mov ecx, dword [ebp + 0xc]
push ecx
push esi
call fcn.01037180
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.0102ff60
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.010303d0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov ecx, dword [ebp + 0xc]
push 0x28
push 0x100bfd4
sub ecx, edi
push ecx
lea edx, [edi + ebx]
push edx
call fcn.010363f0
sub eax, ebx
cmp eax, dword [ebp + 0xc]
jae 0x10388e0
cmp eax, 0x14
jbe 0x10388e0
cmp eax, 0x800
jbe 0x10388ac
lea edi, [eax - 0x400]
mov eax, 3
cmp edi, 0x400
jbe 0x10388d2
lea esp, [esp]
mov cl, byte [edi + ebx]
cmp cl, byte [edi + ebx - 1]
jne 0x10388d2
dec edi
cmp edi, 0x400
ja 0x10388c0
sub edi, 0x10
sub eax, 1
jne 0x10388b1
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 0x10388fe
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 0x1038975
inc edi
cmp edi, 0x20
mov dword [ebp + 8], edi
jl 0x1038918
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 0x1038941
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi]
je 0x103894b
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 1]
je 0x1038956
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 2]
je 0x1038961
inc dword [ebp + 0x1c]
add dword [ebp + 8], 4
sub dword [ebp - 0x20], 1
jne 0x1038936
cmp dword [ebp + 0x1c], 8
jl 0x1038a3a
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 0x1038980
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 0x1038aa2
inc eax
cmp eax, 8
jl 0x1038a56
lea eax, [edx + 1]
mov dword [ebp + 0x18], 8
jmp 0x1038a70
cmp bl, byte [eax - 1]
je 0x1038a78
inc dword [ebp + 0x1c]
cmp bl, byte [eax]
je 0x1038a7f
inc dword [ebp + 0x1c]
cmp bl, byte [eax + 1]
je 0x1038a87
inc dword [ebp + 0x1c]
cmp bl, byte [eax + 2]
je 0x1038a8f
inc dword [ebp + 0x1c]
add eax, 4
sub dword [ebp + 0x18], 1
jne 0x1038a70
cmp dword [ebp + 0x1c], 2
jl 0x103977e
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 0x1038ab0
jmp 0x10398e8
cmp eax, 2
jne 0x103968c
mov eax, dword [esi + 0x28]
cmp eax, 0x100
jae 0x1038cd9
test eax, eax
jbe 0x1038cd9
add ecx, 0xffffffe0
cmp eax, ecx
jae 0x1038cd9
lea ecx, [eax + ebx]
mov al, byte [ecx]
cmp al, 0xe0
jb 0x1038cd9
cmp al, 0xf0
jae 0x1038cd9
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 0x1038bc0
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi + ecx]
jne 0x1038c1f
inc edi
cmp edi, 4
mov dword [ebp + 0x24], edi
jl 0x1038bc0
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 0x1038beb
inc dword [ebp + 8]
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi]
je 0x1038bf5
inc dword [ebp + 8]
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi + 1]
je 0x1038c00
inc dword [ebp + 8]
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi + 2]
je 0x1038c0b
inc dword [ebp + 8]
add dword [ebp + 0x24], 4
sub dword [ebp - 0x20], 1
jne 0x1038be0
cmp dword [ebp + 8], 1
jl 0x1038cd9
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 0x1038c26
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 0xc]
push esi
push eax
push ebx
call fcn.01036690
test eax, eax
jne 0x103880e
mov edi, dword [ebp + 0xc]
mov eax, edi
cmp edi, 0x100000
jbe 0x1038cfe
mov eax, 0x100000
push 3
push 0x100bfa0
push eax
push ebx
call fcn.01029710
mov ecx, dword [ebp + 0x1c]
sub eax, ebx
cmp eax, 0x14
jbe 0x1038d27
lea edx, [edi - 0x400]
cmp eax, edx
jae 0x1038d27
add eax, 0x100
jmp 0x1038d35
test ecx, ecx
je 0x1038d32
mov eax, ecx
mov dword [ebp + 0x24], ecx
jmp 0x1038d38
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x24], eax
lea ecx, [edi - 0x200]
cmp eax, ecx
jbe 0x1038d4a
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 0x1038d60
mov eax, 0x100000
push 9
push 0x100bfc8
push eax
push ebx
call fcn.01029710
test eax, eax
je 0x1038d7b
mov edi, dword [ebp + 0xc]
sub eax, ebx
sub edi, eax
jmp 0x1038d7e
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 0x1039177
mov eax, edi
cmp edi, 0x100000
jbe 0x1038da5
mov eax, 0x100000
push 3
push 0x100bfa0
push eax
push edx
call fcn.01029710
sub eax, ebx
mov dword [ebp - 8], eax
cmp eax, 0x14
jbe 0x1039177
cmp eax, dword [ebp + 0xc]
jae 0x1039177
push 5
push 0x100bfc0
lea edi, [eax + ebx]
push 0x20
push edi
call fcn.01029710
test eax, eax
jne 0x1038df3
push 5
push 0x100bfb8
push 0x20
push edi
call fcn.01029710
test eax, eax
je 0x1038e0e
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.0102ff60
jmp 0x103914a
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 0x1038e64
inc ecx
cmp ecx, 2
jl 0x1038e20
mov ecx, 1
cmp dl, byte [edi + 1]
jne 0x1038e38
mov ecx, dword [ebp - 0x24]
cmp dl, byte [edi + 2]
je 0x1038e3e
inc ecx
cmp dl, byte [edi + 3]
je 0x1038e44
inc ecx
cmp dl, byte [edi + 4]
je 0x1038e4a
inc ecx
cmp dl, byte [edi + 5]
je 0x1038e50
inc ecx
cmp dl, byte [edi + 6]
je 0x1038e56
inc ecx
cmp dl, byte [edi + 7]
je 0x1038e5c
inc ecx
test ecx, ecx
jl 0x1038fa4
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 0x103900a
inc edi
cmp edi, 2
mov dword [ebp - 0x20], edi
jl 0x1038fc0
mov edi, 1
cmp dl, byte [ecx + 1]
jne 0x1038fde
mov edi, dword [ebp - 0x24]
cmp dl, byte [ecx + 2]
je 0x1038fe4
inc edi
cmp dl, byte [ecx + 3]
je 0x1038fea
inc edi
cmp dl, byte [ecx + 4]
je 0x1038ff0
inc edi
cmp dl, byte [ecx + 5]
je 0x1038ff6
inc edi
cmp dl, byte [ecx + 6]
je 0x1038ffc
inc edi
cmp dl, byte [ecx + 7]
je 0x1039002
inc edi
test edi, edi
jl 0x103914a
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 0x1038d85
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
push ebx
jmp 0x10398fe
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 0x10391b5
lea esp, [esp]
mov al, byte [edi + ebx]
test al, al
je 0x10391ab
cmp al, 0x90
jne 0x10391b2
inc edi
cmp edi, ecx
jb 0x10391a0
jmp 0x10391b5
add edi, 0x10
sub edx, 1
jne 0x1039198
sub edi, 0x10
cmp edi, dword [ebp + 8]
ja 0x10391cc
lea eax, [ecx - 0x400]
cmp edi, eax
jbe 0x10391d2
mov edx, ecx
shr edx, 1
sub edi, edx
lea eax, [ecx - 0x200]
cmp edi, eax
jbe 0x10391e1
mov edi, ecx
shr edi, 2
push 0x200
lea eax, [edi + ebx]
push eax
call fcn.01036420
fcomp qword [0x100bfb0]
fnstsw ax
test ah, 5
jp 0x1039258
mov edi, dword [ebp + 0x1c]
test edi, edi
ja 0x1039206
mov edi, dword [ebp + 0x18]
add edi, 0xffffff80
cmp dword [ebp - 0x1c], 0
jne 0x103921b
mov dword [ebp - 0x1c], 1
jmp 0x1039190
mov eax, dword [ebp + 0xc]
shr eax, 1
cmp eax, 0x100000
jbe 0x103922c
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.0102ff60
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 0x103926a
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 0x10392df
inc edi
cmp edi, 4
mov dword [ebp + 8], edi
jl 0x1039280
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 0x10392ab
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi]
je 0x10392b5
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 1]
je 0x10392c0
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 2]
je 0x10392cb
inc dword [ebp + 0x1c]
add dword [ebp + 8], 4
sub dword [ebp + 0x18], 1
jne 0x10392a0
cmp dword [ebp + 0x1c], 1
jl 0x1039399
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 0x10392e6
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 0x1039425
inc edi
cmp edi, 3
mov dword [ebp + 8], edi
jl 0x10393b0
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 0x10393db
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi]
je 0x10393e5
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 1]
je 0x10393f0
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 2]
je 0x10393fb
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 3]
je 0x1039406
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 4]
je 0x1039411
inc dword [ebp + 0x1c]
add dword [ebp + 8], 6
sub dword [ebp + 0x18], 1
jne 0x10393d0
cmp dword [ebp + 0x1c], 0
jl 0x1039533
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 0x1039430
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 0x10395a5
inc edi
cmp edi, 0x10
mov dword [ebp + 8], edi
jl 0x1039548
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 0x1039571
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi]
je 0x103957b
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 1]
je 0x1039586
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 2]
je 0x1039591
inc dword [ebp + 0x1c]
add dword [ebp + 8], 4
sub dword [ebp + 0x18], 1
jne 0x1039566
cmp dword [ebp + 0x1c], 4
jl 0x1039663
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 0x10395b0
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.01037270
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 0x10396b4
mov edi, ecx
shr edi, 2
cmp edi, 0x1000
jbe 0x10396b4
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 0x10396e1
lea ebx, [ebx]
mov dl, byte [eax + ebx]
test dl, dl
je 0x10396dc
cmp dl, 0x90
jne 0x10396e1
inc eax
cmp eax, ecx
jb 0x10396d0
add eax, 0x10
cmp eax, ecx
jb 0x10396f8
mov eax, ecx
shr eax, 1
cmp eax, 0x400
jbe 0x10396f8
mov eax, 0x400
mov edi, eax
cmp eax, ecx
jae 0x1039710
mov edi, edi
mov al, byte [edi + ebx]
test al, al
je 0x103970b
cmp al, 0x90
jne 0x1039710
inc edi
cmp edi, ecx
jb 0x1039700
mov dword [ebp - 4], edi
cmp edi, dword [ebp + 8]
jbe 0x103972d
cmp dword [ebp - 0xc], 0
jne 0x1039770
mov eax, ecx
shr eax, 1
sub edi, eax
mov dword [ebp - 0xc], 1
jmp 0x10396c4
mov ecx, dword [ebp + 0xc]
sub ecx, edi
push ecx
lea edx, [edi + ebx]
push edx
call fcn.01036420
fcomp qword [0x100b6b8]
fnstsw ax
test ah, 5
jp 0x10388e3
cmp dword [ebp - 0xc], 0
jne 0x1039770
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 0x10396c4
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 0x10397c4
mov eax, 0xaaaaaaab
mul ebx
mov eax, dword [ebp + 0xc]
shr edx, 1
sub eax, edx
cmp eax, 0x100000
jbe 0x10397b1
mov eax, 0x100000
push ecx
mov ecx, dword [ebp + 0x20]
push eax
add edx, ecx
push edx
push edi
call fcn.0102ff60
jmp 0x10398e8
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 0x1039822
inc eax
cmp eax, 0x10
jl 0x10397d4
lea eax, [edx + 1]
mov dword [ebp + 0x18], 0x10
lea esp, [esp]
cmp bl, byte [eax - 1]
je 0x10397f8
inc dword [ebp + 0x1c]
cmp bl, byte [eax]
je 0x10397ff
inc dword [ebp + 0x1c]
cmp bl, byte [eax + 1]
je 0x1039807
inc dword [ebp + 0x1c]
cmp bl, byte [eax + 2]
je 0x103980f
inc dword [ebp + 0x1c]
add eax, 4
sub dword [ebp + 0x18], 1
jne 0x10397f0
cmp dword [ebp + 0x1c], 4
jl 0x10398e8
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 0x1039830
cmp dword [ebp - 0x14], 0
jne 0x103990c
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.01037270
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x28