Function at 0x596e50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0193
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x692c00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2d4], edi
mov ecx, dword [ebp + 0x24]
xorps xmm0, xmm0
mov eax, dword [ebp + 0x20]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x2d0], eax
movzx eax, byte [ecx + 0x12a]
push eax
push str.gcm_process
mov dword [ebp - 0x2a0], ecx
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x2a8], esi
mov dword [ebp - 0x29c], ebx
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
call fcn.00448220
cmp dword [ebp + 0x1c], 0
mov dword [ebp - 4], 0
je 0x596f1a
test ebx, ebx
jne 0x596f1a
mov ecx, dword [ebp - 0x2a0]
push str.NULL_input.
mov eax, dword [ecx]
call dword [eax + 0x14]
xor bl, bl
lea ecx, [ebp - 0x1c]
call fcn.004482f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [ebp - 0x2d0]
call fcn.00402fb0
mov ecx, eax
mov eax, dword [ebp + 0x1c]
add eax, ecx
mov dword [ebp - 0x2b0], ecx
mov dword [ebp - 0x2e8], eax
lea ecx, [eax + 0x20]
push ecx
mov ecx, dword [ebp - 0x2d0]
call fcn.00438990
test al, al
jne 0x596f5a
mov ecx, dword [ebp - 0x2a0]
push str.Unable_to_allocate_GCM_output_buffer.
mov eax, dword [ecx]
jmp 0x596eed
cmp byte [ebp + 8], 0
push dword [ebp - 0x2b0]
mov ecx, dword [ebp - 0x2d0]
je 0x596f7f
mov dword [ebp - 0x2cc], ebx
call fcn.00438e80
mov dword [ebp - 0x29c], eax
jmp 0x596f8a
call fcn.00438e80
mov dword [ebp - 0x2cc], eax
mov al, byte [0x695048]
mov byte [ebp - 0x291], al
mov eax, dword [esi + 0x538]
cmp eax, 0x10
ja 0x596ef0
mov ecx, dword [esi + 0x534]
cmp ecx, 1
jne 0x59705b
test eax, eax
je 0x597015
mov ecx, 8
imul ecx
push 0x138
add dword [esi + 0x540], eax
lea eax, [ebp - 0x28c]
push 0
adc dword [esi + 0x544], edx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x28c]
call fcn.00449bd0
lea eax, [ebp - 0x28c]
mov byte [ebp - 4], 1
push eax
lea eax, [esi + 0x4f0]
push eax
push esi
call fcn.00596b50
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28c]
call fcn.00449bf0
mov edx, 0xfffffb00
lea ecx, [esi + 0x50f]
sub edx, esi
add byte [ecx], 1
jne 0x597030
dec ecx
lea eax, [edx + ecx]
cmp eax, 0xc
jge 0x597022
mov edx, dword [edi]
lea eax, [esi + 0x520]
push eax
lea eax, [esi + 0x500]
mov ecx, edi
push eax
call dword [edx + 0x10]
mov dword [esi + 0x538], 0
mov dword [esi + 0x534], 2
jmp 0x597064
cmp ecx, 2
jne 0x596ef0
push 0x138
lea eax, [ebp - 0x154]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x154]
call fcn.00449bd0
xor ebx, ebx
mov byte [ebp - 4], 2
cmp dword [esi + 0x538], ebx
jne 0x597a48
mov eax, dword [ebp + 0x1c]
and eax, 0xfffffff0
mov dword [ebp - 0x2b0], eax
cmp byte [ebp + 8], bl
je 0x597597
cmp byte [ebp - 0x291], bl
je 0x59746e
mov dword [ebp - 0x298], ebx
test eax, eax
je 0x597a48
mov ecx, dword [ebp - 0x29c]
lea eax, [esi + 0x526]
mov edx, dword [ebp - 0x2cc]
mov dword [ebp - 0x2d8], eax
mov eax, ecx
sub eax, edx
mov dword [ebp - 0x2dc], eax
lea eax, [esi + 0x50f]
mov dword [ebp - 0x2e0], eax
mov eax, 0xfffffb00
sub eax, esi
mov dword [ebp - 0x2b8], eax
lea eax, [esi + 0x520]
mov dword [ebp - 0x2bc], eax
lea eax, [esi + 0x500]
mov dword [ebp - 0x2c0], eax
lea eax, [ecx + 5]
lea ecx, [edx + 6]
mov dword [ebp - 0x2c4], eax
mov dword [ebp - 0x2c8], ecx
nop dword [eax + eax]
mov esi, dword [ebp - 0x2d8]
lea edi, [ecx + ebx]
add eax, ebx
mov dword [ebp - 0x290], edi
mov dword [ebp - 0x2a4], eax
mov dword [ebp - 0x2ac], 2
movzx eax, byte [esi + 1]
cdq
mov ebx, eax
mov ecx, edx
shld ecx, ebx, 8
movzx eax, byte [esi]
cdq
or ecx, edx
shl ebx, 8
or ebx, eax
movzx eax, byte [esi - 1]
shld ecx, ebx, 8
cdq
or ecx, edx
shl ebx, 8
or ebx, eax
movzx eax, byte [esi - 2]
shld ecx, ebx, 8
cdq
or ecx, edx
shl ebx, 8
or ebx, eax
movzx eax, byte [esi - 3]
shld ecx, ebx, 8
cdq
or ecx, edx
shl ebx, 8
or ebx, eax
movzx eax, byte [esi - 4]
shld ecx, ebx, 8
cdq
or ecx, edx
shl ebx, 8
or ebx, eax
movzx eax, byte [esi - 5]
shld ecx, ebx, 8
cdq
or ecx, edx
shl ebx, 8
or ebx, eax
movzx eax, byte [esi - 6]
shld ecx, ebx, 8
cdq
or ecx, edx
shl ebx, 8
or ebx, eax
mov dword [ebp - 0x2a0], ecx
movzx eax, byte [edi + 1]
cdq
mov ecx, eax
mov edi, edx
mov eax, dword [ebp - 0x290]
shld edi, ecx, 8
shl ecx, 8
movzx eax, byte [eax]
cdq
or ecx, eax
or edi, edx
mov eax, dword [ebp - 0x290]
shld edi, ecx, 8
shl ecx, 8
movzx eax, byte [eax - 1]
cdq
or ecx, eax
or edi, edx
mov eax, dword [ebp - 0x290]
shld edi, ecx, 8
shl ecx, 8
movzx eax, byte [eax - 2]
cdq
or ecx, eax
or edi, edx
mov eax, dword [ebp - 0x290]
shld edi, ecx, 8
shl ecx, 8
movzx eax, byte [eax - 3]
cdq
or ecx, eax
or edi, edx
shld edi, ecx, 8
shl ecx, 8
mov eax, dword [ebp - 0x290]
movzx eax, byte [eax - 4]
cdq
or ecx, eax
or edi, edx
mov eax, dword [ebp - 0x290]
shld edi, ecx, 8
shl ecx, 8
movzx eax, byte [eax - 5]
cdq
or ecx, eax
or edi, edx
mov eax, dword [ebp - 0x290]
shld edi, ecx, 8
shl ecx, 8
movzx eax, byte [eax - 6]
cdq
or ecx, eax
or edi, edx
mov edx, dword [ebp - 0x2a0]
xor ebx, ecx
mov ecx, dword [ebp - 0x2a4]
xor edx, edi
mov edi, dword [ebp - 0x290]
mov eax, edx
shr eax, 0x18
mov dword [ebp - 0x2b4], ebx
mov byte [ecx + 2], al
mov eax, edx
mov ebx, dword [ebp - 0x2dc]
shr eax, 0x10
mov byte [ecx - 1], dl
mov dword [ebp - 0x2a0], edx
mov byte [ebx + edi], al
mov eax, edx
mov ebx, dword [ebp - 0x2b4]
shr eax, 8
mov byte [ecx], al
mov ecx, ebx
mov eax, edx
shrd ecx, eax, 0x18
mov eax, dword [ebp - 0x2a4]
mov byte [eax - 2], cl
mov ecx, ebx
mov eax, edx
shrd ecx, eax, 0x10
mov eax, dword [ebp - 0x2a4]
mov byte [eax - 3], cl
mov ecx, ebx
mov eax, edx
shrd ecx, eax, 8
mov eax, dword [ebp - 0x2a4]
mov byte [eax - 4], cl
mov byte [eax - 5], bl
movzx eax, byte [esi - 0x2f]
cdq
mov ecx, eax
mov ebx, edx
movzx eax, byte [esi - 0x30]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
movzx eax, byte [esi - 0x31]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
movzx eax, byte [esi - 0x32]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
movzx eax, byte [esi - 0x33]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ecx, eax
movzx eax, byte [esi - 0x34]
lea esi, [esi + 8]
or ebx, edx
add dword [ebp - 0x2a4], 8
shld ebx, ecx, 8
cdq
add edi, 8
shl ecx, 8
or ebx, edx
or ecx, eax
mov dword [ebp - 0x290], edi
movzx eax, byte [esi - 0x3d]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
movzx eax, byte [esi - 0x3e]
cdq
shld ebx, ecx, 8
shl ecx, 8
or ebx, edx
xor ebx, dword [ebp - 0x2a0]
or ecx, eax
xor ecx, dword [ebp - 0x2b4]
mov eax, ebx
shr eax, 0x18
mov byte [esi - 0x37], al
mov eax, ebx
shr eax, 0x10
mov byte [esi - 0x38], al
mov eax, ebx
shr eax, 8
mov byte [esi - 0x39], al
mov eax, ebx
mov dword [ebp - 0x2b4], ecx
mov edx, dword [ebp - 0x2b4]
shrd ecx, eax, 0x18
mov eax, ebx
mov byte [esi - 0x3a], bl
mov byte [esi - 0x3b], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov eax, edx
mov byte [esi - 0x3e], dl
shrd eax, ebx, 8
sub dword [ebp - 0x2ac], 1
mov byte [esi - 0x3c], cl
mov byte [esi - 0x3d], al
jne 0x597151
mov esi, dword [ebp - 0x2a8]
lea eax, [ebp - 0x154]
push eax
add dword [esi + 0x548], 0x80
lea eax, [esi + 0x4f0]
push eax
adc dword [esi + 0x54c], 0
push esi
call fcn.00596b50
mov ecx, dword [ebp - 0x2e0]
add esp, 0xc
mov esi, dword [ebp - 0x2b8]
add byte [ecx], 1
jne 0x597423
dec ecx
lea eax, [esi + ecx]
cmp eax, 0xc
jge 0x597415
mov edi, dword [ebp - 0x2d4]
mov ecx, edi
push dword [ebp - 0x2bc]
push dword [ebp - 0x2c0]
mov eax, dword [edi]
call dword [eax + 0x10]
mov ebx, dword [ebp - 0x298]
mov esi, dword [ebp - 0x2a8]
add ebx, 0x10
mov eax, dword [ebp - 0x2c4]
mov ecx, dword [ebp - 0x2c8]
mov dword [ebp - 0x298], ebx
cmp ebx, dword [ebp - 0x2b0]
jb 0x597130
jmp 0x597a48
xor ebx, ebx
mov dword [ebp - 0x298], ebx
test eax, eax
je 0x597a48
mov edx, dword [ebp - 0x2cc]
lea eax, [esi + 0x50f]
mov ecx, dword [ebp - 0x29c]
sub edx, ecx
mov dword [ebp - 0x2c4], eax
mov eax, 0xfffffb00
sub eax, esi
mov dword [ebp - 0x2c8], edx
mov dword [ebp - 0x2c0], eax
lea edx, [esi + 0x4f0]
lea eax, [esi + 0x520]
mov dword [ebp - 0x2bc], eax
lea eax, [esi + 0x500]
mov dword [ebp - 0x2b8], eax
nop dword [eax]
lea edi, [ebx + ecx]
mov esi, 2
mov ebx, dword [ebp - 0x2c8]
nop
mov ecx, dword [ebx + edi]
lea edi, [edi + 8]
mov eax, dword [ebx + edi - 4]
lea edx, [edx + 8]
xor ecx, dword [edx + 0x28]
xor eax, dword [edx + 0x2c]
mov dword [edi - 8], ecx
mov dword [edi - 4], eax
xor dword [edx - 8], ecx
xor dword [edx - 4], eax
sub esi, 1
jne 0x5974e0
mov esi, dword [ebp - 0x2a8]
lea eax, [ebp - 0x154]
push eax
add dword [esi + 0x548], 0x80
lea eax, [esi + 0x4f0]
push eax
adc dword [esi + 0x54c], 0
push esi
call fcn.00596b50
mov ecx, dword [ebp - 0x2c4]
add esp, 0xc
mov ebx, dword [ebp - 0x298]
mov esi, dword [ebp - 0x2c0]
add byte [ecx], 1
jne 0x597552
dec ecx
lea eax, [ecx + esi]
cmp eax, 0xc
jge 0x597544
mov edi, dword [ebp - 0x2d4]
mov ecx, edi
push dword [ebp - 0x2bc]
push dword [ebp - 0x2b8]
mov eax, dword [edi]
call dword [eax + 0x10]
mov esi, dword [ebp - 0x2a8]
add ebx, 0x10
mov ecx, dword [ebp - 0x29c]
mov dword [ebp - 0x298], ebx
lea edx, [esi + 0x4f0]
cmp ebx, dword [ebp - 0x2b0]
jb 0x5974d0
jmp 0x597a48
cmp byte [ebp - 0x291], bl
je 0x59791e
xor ebx, ebx
mov dword [ebp - 0x298], ebx
test eax, eax
je 0x597a48
mov edx, dword [ebp - 0x2cc]
lea eax, [esi + 0x4f6]
mov ecx, dword [ebp - 0x29c]
mov dword [ebp - 0x2c8], eax
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x2c0], eax
lea eax, [esi + 0x50f]
mov dword [ebp - 0x2bc], eax
mov eax, 0xfffffb00
sub eax, esi
add ecx, 6
mov dword [ebp - 0x2b8], eax
lea eax, [esi + 0x520]
mov dword [ebp - 0x2e0], eax
lea eax, [esi + 0x500]
mov dword [ebp - 0x2dc], eax
lea eax, [edx + 5]
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2e4], ecx
nop dword [eax + eax]
mov esi, dword [ebp - 0x2c8]
add eax, ebx
add ebx, ecx
mov dword [ebp - 0x2a4], eax
mov dword [ebp - 0x2a0], ebx
mov dword [ebp - 0x290], 2
movzx eax, byte [ebx + 1]
cdq
mov edi, eax
mov ecx, edx
shld ecx, edi, 8
movzx eax, byte [ebx]
cdq
or ecx, edx
shl edi, 8
or edi, eax
movzx eax, byte [ebx - 1]
shld ecx, edi, 8
cdq
or ecx, edx
shl edi, 8
or edi, eax
movzx eax, byte [ebx - 2]
shld ecx, edi, 8
cdq
or ecx, edx
shl edi, 8
or edi, eax
movzx eax, byte [ebx - 3]
shld ecx, edi, 8
cdq
or ecx, edx
shl edi, 8
or edi, eax
movzx eax, byte [ebx - 4]
shld ecx, edi, 8
cdq
or ecx, edx
shl edi, 8
or edi, eax
movzx eax, byte [ebx - 5]
shld ecx, edi, 8
cdq
or ecx, edx
shl edi, 8
or edi, eax
movzx eax, byte [ebx - 6]
shld ecx, edi, 8
cdq
or ecx, edx
shl edi, 8
or edi, eax
mov dword [ebp - 0x2ac], ecx
movzx eax, byte [esi + 1]
cdq
mov ecx, eax
mov ebx, edx
movzx eax, byte [esi]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
movzx eax, byte [esi - 1]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
movzx eax, byte [esi - 2]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
movzx eax, byte [esi - 3]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
movzx eax, byte [esi - 4]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ecx, eax
or ebx, edx
shld ebx, ecx, 8
movzx eax, byte [esi - 5]
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
movzx eax, byte [esi - 6]
shld ebx, ecx, 8
cdq
or ebx, edx
shl ecx, 8
xor ebx, dword [ebp - 0x2ac]
or ecx, eax
mov eax, ebx
mov byte [esi - 2], bl
shr eax, 0x18
xor ecx, edi
mov byte [esi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [esi], al
mov eax, ebx
shr eax, 8
mov dword [ebp - 0x2c4], ecx
mov edx, dword [ebp - 0x2c4]
mov byte [esi - 1], al
mov eax, ebx
shrd ecx, eax, 0x18
mov eax, ebx
mov byte [esi - 6], dl
mov byte [esi - 3], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov eax, edx
shrd eax, ebx, 8
mov byte [esi - 4], cl
mov byte [esi - 5], al
movzx eax, byte [esi + 0x31]
cdq
mov ecx, eax
mov ebx, edx
movzx eax, byte [esi + 0x30]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
movzx eax, byte [esi + 0x2f]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
movzx eax, byte [esi + 0x2e]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
movzx eax, byte [esi + 0x2d]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
movzx eax, byte [esi + 0x2c]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
movzx eax, byte [esi + 0x2b]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
movzx eax, byte [esi + 0x2a]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ecx, eax
lea esi, [esi + 8]
or ebx, edx
xor ecx, edi
xor ebx, dword [ebp - 0x2ac]
mov edi, dword [ebp - 0x2a4]
mov eax, ebx
mov edx, dword [ebp - 0x2a0]
shr eax, 0x18
mov dword [ebp - 0x2b4], ecx
mov ecx, dword [ebp - 0x2c0]
mov byte [edi + 2], al
mov eax, ebx
shr eax, 0x10
mov byte [edi - 1], bl
mov byte [ecx + edx], al
mov eax, ebx
mov ecx, dword [ebp - 0x2b4]
mov edx, dword [ebp - 0x2b4]
shr eax, 8
mov byte [edi], al
mov eax, ebx
shrd ecx, eax, 0x18
mov eax, ebx
mov byte [edi - 5], dl
mov byte [edi - 2], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov eax, edx
shrd eax, ebx, 8
mov ebx, dword [ebp - 0x2a0]
mov byte [edi - 3], cl
add ebx, 8
mov byte [edi - 4], al
add edi, 8
sub dword [ebp - 0x290], 1
mov dword [ebp - 0x2a0], ebx
mov dword [ebp - 0x2a4], edi
jne 0x597640
mov esi, dword [ebp - 0x2a8]
lea eax, [ebp - 0x154]
push eax
add dword [esi + 0x548], 0x80
lea eax, [esi + 0x4f0]
push eax
adc dword [esi + 0x54c], 0
push esi
call fcn.00596b50
mov ecx, dword [ebp - 0x2bc]
add esp, 0xc
mov esi, dword [ebp - 0x2b8]
add byte [ecx], 1
jne 0x5978d3
dec ecx
lea eax, [esi + ecx]
cmp eax, 0xc
jge 0x5978c5
mov edi, dword [ebp - 0x2d4]
mov ecx, edi
push dword [ebp - 0x2e0]
push dword [ebp - 0x2dc]
mov eax, dword [edi]
call dword [eax + 0x10]
mov ebx, dword [ebp - 0x298]
mov esi, dword [ebp - 0x2a8]
add ebx, 0x10
mov eax, dword [ebp - 0x2d8]
mov ecx, dword [ebp - 0x2e4]
mov dword [ebp - 0x298], ebx
cmp ebx, dword [ebp - 0x2b0]
jb 0x597620
jmp 0x597a48
xor ebx, ebx
mov dword [ebp - 0x298], ebx
test eax, eax
je 0x597a48
mov edx, dword [ebp - 0x2cc]
lea eax, [esi + 0x4f0]
mov ecx, dword [ebp - 0x29c]
sub edx, ecx
mov dword [ebp - 0x2e4], eax
lea eax, [esi + 0x50f]
mov dword [ebp - 0x2c4], eax
mov eax, 0xfffffb00
sub eax, esi
mov dword [ebp - 0x2c8], edx
mov dword [ebp - 0x2c0], eax
lea eax, [esi + 0x520]
mov dword [ebp - 0x2bc], eax
lea eax, [esi + 0x500]
mov dword [ebp - 0x2b8], eax
nop
mov edi, dword [ebp - 0x2e4]
lea edx, [ebx + ecx]
mov ebx, dword [ebp - 0x2c8]
mov esi, 2
mov eax, dword [edx]
lea edi, [edi + 8]
xor dword [edi - 8], eax
lea edx, [edx + 8]
mov eax, dword [edx - 4]
xor dword [edi - 4], eax
mov ecx, dword [edi + 0x28]
mov eax, dword [edi + 0x2c]
xor ecx, dword [edx - 8]
xor eax, dword [edx - 4]
mov dword [ebx + edx - 8], ecx
mov dword [ebx + edx - 4], eax
sub esi, 1
jne 0x597994
mov esi, dword [ebp - 0x2a8]
lea eax, [ebp - 0x154]
push eax
add dword [esi + 0x548], 0x80
lea eax, [esi + 0x4f0]
push eax
adc dword [esi + 0x54c], 0
push esi
call fcn.00596b50
mov ecx, dword [ebp - 0x2c4]
add esp, 0xc
mov ebx, dword [ebp - 0x298]
mov esi, dword [ebp - 0x2c0]
nop
add byte [ecx], 1
jne 0x597a0e
dec ecx
lea eax, [ecx + esi]
cmp eax, 0xc
jge 0x597a00
mov edi, dword [ebp - 0x2d4]
mov ecx, edi
push dword [ebp - 0x2bc]
push dword [ebp - 0x2b8]
mov eax, dword [edi]
call dword [eax + 0x10]
mov esi, dword [ebp - 0x2a8]
add ebx, 0x10
mov ecx, dword [ebp - 0x29c]
mov dword [ebp - 0x298], ebx
cmp ebx, dword [ebp - 0x2b0]
jb 0x597980
mov eax, dword [ebp + 0x1c]
cmp ebx, eax
jae 0x597b2e
mov ecx, dword [ebp - 0x2cc]
sub dword [ebp - 0x29c], ecx
sub eax, ebx
mov dword [ebp + 0x1c], eax
lea edx, [ebx + ecx]
mov ebx, dword [ebp - 0x29c]
mov dword [ebp - 0x2ac], edx
mov eax, dword [esi + 0x538]
cmp eax, 0x10
jne 0x597ae8
add dword [esi + 0x548], 0x80
lea eax, [ebp - 0x154]
push eax
adc dword [esi + 0x54c], 0
lea eax, [esi + 0x4f0]
push eax
push esi
call fcn.00596b50
mov edx, 0xfffffb00
lea ecx, [esi + 0x50f]
add esp, 0xc
sub edx, esi
add byte [ecx], 1
jne 0x597ac1
dec ecx
lea eax, [ecx + edx]
cmp eax, 0xc
jge 0x597ab3
mov edx, dword [edi]
lea eax, [esi + 0x520]
push eax
lea eax, [esi + 0x500]
mov ecx, edi
push eax
call dword [edx + 0x10]
mov edx, dword [ebp - 0x2ac]
xor eax, eax
mov dword [esi + 0x538], 0
cmp byte [ebp + 8], 0
je 0x597afc
mov cl, byte [eax + esi + 0x520]
xor cl, byte [edx]
mov byte [edx + ebx], cl
jmp 0x597b0a
mov cl, byte [edx + ebx]
mov al, byte [eax + esi + 0x520]
xor al, cl
mov byte [edx], al
mov eax, dword [esi + 0x538]
inc edx
mov dword [ebp - 0x2ac], edx
xor byte [esi + eax + 0x4f0], cl
inc dword [esi + 0x538]
sub dword [ebp + 0x1c], 1
jne 0x597a73
push dword [ebp - 0x2e8]
mov ecx, dword [ebp - 0x2d0]
call fcn.0043ac90
lea ecx, [ebp - 0x154]
mov bl, 1
call fcn.00449bf0
jmp 0x596ef2