Function at 0x598260
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x643770
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x6db1a4]
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 ebx, ecx
mov dword [ebp - 0x68], ebx
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x74], edi
mov eax, dword [edi]
mov eax, dword [eax + 4]
call eax
lea esi, [ebx + 4]
test al, al
je 0x5982fb
push 0x659198
call dword [0x64c2e4]
push 0x659198
push eax
mov ecx, esi
call fcn.004fccc0
mov ecx, dword [0x6e19b0]
push 0xff
call fcn.00519090
mov dword [ebx + 8], eax
lea eax, [ebp - 0x20]
push eax
call dword [0x64c0c4]
mov ax, word [ebp - 0x20]
mov word [ebx + 0x18], ax
mov al, byte [ebp - 0x1e]
mov byte [ebx + 0x1a], al
mov al, byte [ebp - 0x1a]
mov byte [ebx + 0x1b], al
mov al, byte [ebp - 0x18]
mov byte [ebx + 0x1c], al
mov al, byte [ebp - 0x16]
mov byte [ebx + 0x1d], al
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x48]
mov eax, dword [edi]
lea ecx, [ebx + 8]
mov dword [ebp - 0x78], ecx
push ecx
mov ecx, edi
call dword [eax + 0x60]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x598357
mov eax, dword [ebx + 4]
mov ecx, edi
mov esi, dword [eax - 8]
mov eax, dword [edi]
add esi, 5
call dword [eax + 0x14]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
cmp esi, ecx
jge 0x598357
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
mov ecx, dword [eax]
mov al, byte [ebx + 8]
xor byte [ecx + esi], al
mov ecx, edi
mov eax, dword [edi]
inc esi
call dword [eax + 0x14]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
cmp esi, ecx
jl 0x598337
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x598459
mov eax, dword [0x6e19b0]
lea ecx, [ebp - 0x30]
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
push dword [eax + 0x104]
call fcn.00524e00
lea eax, [ebp - 0x64]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x30]
call fcn.005253d0
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 1
cmp dword [eax - 8], 7
jge 0x5983db
lea ecx, [eax - 0xc]
cmp ecx, dword [0x6ce010]
je 0x5983cc
lea ecx, [eax - 0xc]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x5983cc
mov eax, dword [ebp - 0x64]
add eax, 0xfffffff4
push eax
call fcn.005b9a8a
add esp, 4
lea ecx, [ebp - 0x30]
call fcn.00524ee0
xor eax, eax
jmp 0x598ef7
movzx ecx, byte [eax]
lea esi, [ebp - 0x18]
mov byte [ebp - 0x18], cl
movzx ecx, byte [eax + 1]
mov byte [ebp - 0x17], cl
movzx ecx, byte [eax + 2]
mov byte [ebp - 0x16], cl
movzx ecx, byte [eax + 3]
mov byte [ebp - 0x15], cl
movzx ecx, byte [eax + 4]
mov byte [ebp - 0x14], cl
movzx ecx, byte [eax + 5]
mov byte [ebp - 0x13], cl
mov ecx, edi
mov al, byte [eax + 6]
mov byte [ebp - 0x12], al
mov eax, dword [edi]
mov eax, dword [eax + 4]
call eax
mov ebx, 8
test al, al
je 0x598440
nop
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x54]
inc esi
sub ebx, 1
jne 0x598420
mov ebx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
jmp 0x59853f
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x54]
inc esi
sub ebx, 1
jne 0x598440
mov ebx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
jmp 0x59853f
mov eax, dword [edi]
lea esi, [ebx + 0xc]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
mov ebx, 8
test al, al
je 0x598480
nop
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x54]
inc esi
sub ebx, 1
jne 0x598470
jmp 0x59848e
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x54]
inc esi
sub ebx, 1
jne 0x598480
mov eax, dword [0x6e19b0]
lea ecx, [ebp - 0x30]
mov ebx, dword [ebp - 0x68]
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
push dword [eax + 0x104]
call fcn.00524e00
lea eax, [ebp - 0x64]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x30]
call fcn.005253d0
mov eax, dword [ebp - 0x64]
cmp dword [eax - 8], 7
jl 0x5983a3
movzx ecx, byte [eax]
lea edx, [ebp - 0x18]
mov byte [ebp - 0x18], cl
movzx ecx, byte [eax + 1]
mov byte [ebp - 0x17], cl
movzx ecx, byte [eax + 2]
mov byte [ebp - 0x16], cl
movzx ecx, byte [eax + 3]
mov byte [ebp - 0x15], cl
movzx ecx, byte [eax + 4]
mov byte [ebp - 0x14], cl
movzx ecx, byte [eax + 5]
mov byte [ebp - 0x13], cl
movzx ecx, byte [eax + 6]
mov byte [ebp - 0x12], cl
lea ecx, [ebx + 0xc]
mov al, byte [edx]
cmp al, byte [ecx]
mov byte [ebp - 0x69], al
mov eax, dword [ebp - 0x64]
jne 0x598532
cmp byte [ebp - 0x69], 0
je 0x59852e
mov bl, byte [edx + 1]
cmp bl, byte [ecx + 1]
mov byte [ebp - 0x69], bl
mov ebx, dword [ebp - 0x68]
jne 0x598532
add edx, 2
add ecx, 2
cmp byte [ebp - 0x69], 0
jne 0x598502
xor ecx, ecx
jmp 0x598537
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x5983a3
lea ecx, [eax - 0xc]
cmp ecx, dword [0x6ce010]
je 0x598568
lea ecx, [eax - 0xc]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x598568
mov eax, dword [ebp - 0x64]
add eax, 0xfffffff4
push eax
call fcn.005b9a8a
add esp, 4
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.00524ee0
mov edx, dword [edi]
lea eax, [ebx + 0x14]
push eax
mov ecx, edi
call dword [edx + 0x60]
mov edx, dword [edi]
lea eax, [ebx + 0x18]
push eax
mov ecx, edi
call dword [edx + 0x44]
mov edx, dword [edi]
lea eax, [ebx + 0x1a]
push eax
mov ecx, edi
call dword [edx + 0x54]
mov edx, dword [edi]
lea eax, [ebx + 0x1b]
push eax
mov ecx, edi
call dword [edx + 0x54]
mov edx, dword [edi]
lea eax, [ebx + 0x1c]
push eax
mov ecx, edi
call dword [edx + 0x54]
mov edx, dword [edi]
lea eax, [ebx + 0x1d]
push eax
mov ecx, edi
call dword [edx + 0x54]
mov edx, dword [edi]
lea eax, [ebx + 0x20]
push eax
mov ecx, edi
call dword [edx + 0x48]
mov edx, dword [edi]
lea eax, [ebx + 0x24]
push eax
mov ecx, edi
call dword [edx + 0x48]
mov edx, dword [edi]
lea eax, [ebx + 0x28]
push eax
mov ecx, edi
call dword [edx + 0x60]
mov edx, dword [edi]
lea eax, [ebx + 0x2c]
push eax
mov ecx, edi
call dword [edx + 0x60]
mov edx, dword [edi]
lea eax, [ebx + 0x30]
push eax
mov ecx, edi
call dword [edx + 0x60]
mov edx, dword [edi]
lea eax, [ebx + 0x34]
push eax
mov ecx, edi
call dword [edx + 0x60]
mov edx, dword [edi]
lea eax, [ebx + 0x38]
push eax
mov ecx, edi
call dword [edx + 0x60]
mov edx, dword [edi]
lea eax, [ebx + 0x3c]
push eax
mov ecx, edi
call dword [edx + 0x40]
mov edx, dword [edi]
lea eax, [ebx + 0x40]
push eax
mov ecx, edi
call dword [edx + 0x40]
mov edx, dword [edi]
lea eax, [ebx + 0x44]
push eax
mov ecx, edi
call dword [edx + 0x60]
mov edx, dword [edi]
lea eax, [ebx + 0x48]
push eax
mov ecx, edi
call dword [edx + 0x60]
mov edx, dword [edi]
lea eax, [ebx + 0x4c]
push eax
mov ecx, edi
call dword [edx + 0x60]
mov edx, dword [edi]
lea eax, [ebx + 0x50]
push eax
mov ecx, edi
call dword [edx + 0x40]
mov edx, dword [edi]
lea eax, [ebx + 0x54]
push eax
mov ecx, edi
call dword [edx + 0x48]
mov edx, dword [edi]
lea eax, [ebx + 0x58]
push eax
mov ecx, edi
call dword [edx + 0x48]
mov edx, dword [edi]
lea eax, [ebx + 0x5c]
push eax
mov ecx, edi
call dword [edx + 0x48]
mov edx, dword [edi]
lea eax, [ebx + 0x60]
push eax
mov ecx, edi
call dword [edx + 0x48]
mov edx, dword [edi]
lea eax, [ebx + 0x64]
push eax
mov ecx, edi
call dword [edx + 0x48]
mov edx, dword [edi]
lea eax, [ebx + 0x68]
push eax
mov ecx, edi
call dword [edx + 0x60]
mov edx, dword [edi]
lea eax, [ebx + 0x6c]
push eax
mov ecx, edi
call dword [edx + 0x48]
mov eax, dword [edi]
lea esi, [ebx + 0x70]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
mov ebx, 3
test al, al
je 0x5986c2
nop word [eax + eax]
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x48]
add esi, 4
sub ebx, 1
jne 0x5986b0
jmp 0x5986d2
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x48]
add esi, 4
sub ebx, 1
jne 0x5986c2
mov eax, dword [edi]
mov ecx, edi
mov ebx, dword [ebp - 0x68]
mov eax, dword [eax + 4]
lea esi, [ebx + 0x7c]
call eax
mov ebx, 5
test al, al
je 0x598702
nop word [eax + eax]
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x64]
add esi, 0x30
sub ebx, 1
jne 0x5986f0
jmp 0x598712
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x64]
add esi, 0x30
sub ebx, 1
jne 0x598702
mov ebx, dword [ebp - 0x68]
mov ecx, edi
mov edx, dword [edi]
lea eax, [ebx + 0x16c]
push eax
call dword [edx + 0x3c]
mov edx, dword [edi]
lea eax, [ebx + 0x174]
push eax
mov ecx, edi
call dword [edx + 0x3c]
mov edx, dword [edi]
lea eax, [ebx + 0x17c]
push eax
mov ecx, edi
call dword [edx + 0x60]
mov edx, dword [edi]
lea eax, [ebx + 0x180]
push eax
mov ecx, edi
call dword [edx + 0x64]
mov edx, dword [edi]
lea eax, [ebx + 0x190]
push eax
mov ecx, edi
call dword [edx + 0x64]
mov eax, dword [edi]
lea esi, [ebx + 0x1a0]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
mov ebx, 5
test al, al
je 0x598785
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x64]
add esi, 0x10
sub ebx, 1
jne 0x598773
jmp 0x598795
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x64]
add esi, 0x10
sub ebx, 1
jne 0x598785
mov ebx, dword [ebp - 0x68]
mov ecx, edi
mov edx, dword [edi]
lea eax, [ebx + 0x1f0]
push eax
call dword [edx + 0x64]
mov edx, dword [edi]
lea eax, [ebx + 0x200]
push eax
mov ecx, edi
call dword [edx + 0x64]
mov eax, dword [edi]
lea esi, [ebx + 0x210]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
mov ebx, 5
test al, al
je 0x5987e2
nop dword [eax]
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x64]
add esi, 0x10
sub ebx, 1
jne 0x5987d0
jmp 0x5987f2
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x64]
add esi, 0x10
sub ebx, 1
jne 0x5987e2
mov ebx, dword [ebp - 0x68]
mov ecx, edi
mov edx, dword [edi]
lea eax, [ebx + 0x260]
push eax
call dword [edx + 0x48]
mov edx, dword [edi]
lea eax, [ebx + 0x264]
push eax
mov ecx, edi
call dword [edx + 0x60]
mov edx, dword [edi]
lea eax, [ebx + 0x268]
push eax
mov ecx, edi
call dword [edx + 0x60]
mov eax, dword [edi]
lea esi, [ebx + 0x26c]
mov ecx, edi
mov dword [ebp - 0x70], esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x59885b
mov ecx, dword [esi + 4]
mov eax, 0x38e38e39
sub ecx, dword [esi]
imul ecx
lea ecx, [ebp - 0x64]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x64], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x60]
jmp 0x598871
mov eax, dword [edi]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, edi
call dword [eax + 0x60]
push esi
push dword [ebp - 0x64]
mov ecx, esi
call fcn.00597070
xor esi, esi
cmp dword [ebp - 0x64], esi
jle 0x59889b
xor ebx, ebx
nop word [eax + eax]
mov eax, dword [ebp - 0x70]
mov ecx, edi
mov edx, dword [edi]
mov eax, dword [eax]
add eax, ebx
push eax
call dword [edx + 0x64]
inc esi
add ebx, 0x24
cmp esi, dword [ebp - 0x64]
jl 0x598880
mov ebx, dword [ebp - 0x68]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x5988fc
mov ecx, dword [ebx + 0x27c]
mov eax, 0x2aaaaaab
sub ecx, dword [ebx + 0x278]
imul ecx
lea ecx, [ebp - 0x70]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x70], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x60]
mov esi, dword [ebx + 0x278]
cmp esi, dword [ebx + 0x27c]
je 0x5989ca
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x64]
add esi, 0xc
cmp esi, dword [ebx + 0x27c]
jne 0x5988e4
jmp 0x5989ca
mov ecx, dword [ebx + 0x27c]
lea esi, [ebx + 0x278]
mov eax, dword [esi]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x70], eax
cmp eax, ecx
je 0x59892f
mov ebx, eax
mov edi, ecx
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
add ebx, 0xc
cmp ebx, edi
jne 0x598918
mov eax, dword [esi]
mov edi, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x68]
mov dword [esi + 4], eax
lea ecx, [ebp - 0x64]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x60]
mov ecx, dword [0x6ce014]
mov dword [ebp - 0x1c], vtable.CSaveData::ScenairoFgFmt.0
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x64], 0
mov dword [ebp - 4], 3
jle 0x59899a
xor ebx, ebx
nop dword [eax]
mov eax, dword [edi]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, edi
call dword [eax + 0x64]
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x1c]
push ecx
push eax
cmp dword [esi + 8], eax
je 0x598987
push esi
call fcn.005974a0
add esp, 0xc
add dword [esi + 4], 0xc
jmp 0x59898e
mov ecx, esi
call fcn.00596b00
inc ebx
cmp ebx, dword [ebp - 0x64]
jl 0x598960
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x68]
lea eax, [ecx - 0xc]
mov dword [ebp - 4], 0xffffffff
cmp eax, dword [0x6ce010]
je 0x5989ca
add ecx, 0xfffffff4
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x5989ca
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
push eax
call fcn.005b9a8a
add esp, 4
mov edx, dword [edi]
lea eax, [ebx + 0x284]
push eax
mov ecx, edi
call dword [edx + 0x64]
mov eax, dword [edi]
lea esi, [ebx + 0x294]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
mov ebx, 0x7d0
test al, al
je 0x598a02
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x5c]
add esi, 4
sub ebx, 1
jne 0x5989f0
jmp 0x598a12
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x5c]
add esi, 4
sub ebx, 1
jne 0x598a02
mov ebx, dword [ebp - 0x68]
mov ecx, edi
mov edx, dword [edi]
lea eax, [ebx + 0x21d4]
push eax
call dword [edx + 0x40]
mov edx, dword [edi]
lea eax, [ebx + 0x21d8]
push eax
mov ecx, edi
call dword [edx + 0x40]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x598a4b
cmp dword [ebx + 0x2204], 0
jne 0x598ef2
mov edx, dword [edi]
lea esi, [ebx + 0x21dc]
mov ecx, edi
mov dword [ebp - 0x74], esi
mov edx, dword [edx + 4]
call edx
test al, al
je 0x598a86
mov ecx, dword [esi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [esi]
imul ecx
lea ecx, [ebp - 0x64]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x64], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x60]
jmp 0x598a9c
mov eax, dword [edi]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, edi
call dword [eax + 0x60]
push esi
push dword [ebp - 0x64]
mov ecx, esi
call fcn.00596db0
xor esi, esi
cmp dword [ebp - 0x64], esi
jle 0x598ac0
xor ebx, ebx
mov eax, dword [ebp - 0x74]
mov ecx, edi
mov edx, dword [edi]
mov eax, dword [eax]
add eax, ebx
push eax
call dword [edx + 0x64]
inc esi
add ebx, 0xc
cmp esi, dword [ebp - 0x64]
jl 0x598aa5
mov ebx, dword [ebp - 0x68]
mov edx, dword [edi]
lea eax, [ebx + 0x21ec]
push eax
mov ecx, edi
call dword [edx + 0x60]
mov edx, dword [edi]
lea eax, [ebx + 0x21f0]
push eax
mov ecx, edi
call dword [edx + 0x60]
mov edx, dword [edi]
lea eax, [ebx + 0x21f4]
push eax
mov ecx, edi
call dword [edx + 0x60]
mov eax, dword [edi]
lea esi, [ebx + 0x21f8]
mov ecx, edi
mov dword [ebp - 0x74], esi
mov eax, dword [eax + 4]
call eax
lea ecx, [ebp - 0x64]
push ecx
mov ecx, edi
test al, al
je 0x598b18
mov eax, dword [esi + 4]
sub eax, dword [esi]
sar eax, 4
mov dword [ebp - 0x64], eax
mov eax, dword [edi]
call dword [eax + 0x60]
jmp 0x598b28
mov eax, dword [edi]
call dword [eax + 0x60]
push esi
push dword [ebp - 0x64]
mov ecx, esi
call fcn.00597200
xor esi, esi
cmp dword [ebp - 0x64], esi
jle 0x598b4c
xor ebx, ebx
mov eax, dword [ebp - 0x74]
mov ecx, edi
mov edx, dword [edi]
mov eax, dword [eax]
add eax, ebx
push eax
call dword [edx + 0x64]
inc esi
add ebx, 0x10
cmp esi, dword [ebp - 0x64]
jl 0x598b31
mov ebx, dword [ebp - 0x68]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x598cef
mov eax, dword [0x6ce51c]
lea esi, [ebx + 0x21e8]
mov dword [esi], eax
mov ecx, edi
mov eax, dword [edi]
push esi
mov dword [ebp - 0x70], esi
call dword [eax + 0x60]
xor eax, eax
mov dword [ebp - 0x64], eax
cmp dword [esi], eax
jle 0x598ea3
push 0
shl eax, 5
mov ecx, 0x6ce50c
push eax
call fcn.00598130
mov esi, dword [0x6ce514]
mov ebx, esi
mov eax, dword [0x6ce510]
mov dword [ebp - 0x74], eax
lea ecx, [ebx + 4]
test ebx, ebx
je 0x598bb8
mov eax, 1
lock xadd dword [ecx], eax
mov esi, dword [0x6ce514]
mov dword [ebp - 4], 4
test ebx, ebx
je 0x598bf2
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x598bec
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
lea eax, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
cmp edx, 1
jne 0x598bec
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
mov esi, dword [0x6ce514]
cmp dword [ebp - 0x74], 0
mov dword [ebp - 4], 0xffffffff
je 0x598c71
mov edx, dword [0x6ce510]
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x7c], esi
test esi, esi
je 0x598c1b
lea ecx, [esi + 4]
mov eax, 1
lock xadd dword [ecx], eax
mov eax, dword [edx]
lea ecx, [ebp - 0x14]
push ecx
push 0x20
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 5
push ecx
mov ecx, edx
call dword [eax + 8]
mov dword [ebp - 4], 6
test esi, esi
je 0x598c6a
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x598c6a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
cmp edx, 1
jne 0x598c6a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x598cb2
xor esi, esi
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
mov edx, eax
mov ebx, dword [edx + 4]
cmp dword [edx + 8], ebx
je 0x598c9c
mov cl, byte [ebp + esi - 0x40]
mov byte [ebx], cl
inc dword [edx + 4]
jmp 0x598caa
lea eax, [ebp - 0x40]
mov ecx, edx
add eax, esi
push eax
push ebx
call fcn.00522810
inc esi
cmp esi, 0x20
jl 0x598c80
jmp 0x598cd8
xor ebx, ebx
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x74]
mov esi, dword [eax]
lea ecx, [esi + 1]
mov dword [eax], ecx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x14]
mov eax, dword [eax]
mov al, byte [esi + eax]
mov byte [ebp + ebx - 0x40], al
inc ebx
cmp ebx, 0x20
jl 0x598cb4
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x70]
inc eax
mov dword [ebp - 0x64], eax
cmp eax, dword [ecx]
jl 0x598b82
jmp 0x598ea0
mov ecx, 0x6ce50c
call fcn.00597fb0
mov ecx, 0x6ce50c
call fcn.00596460
mov dword [0x6ce51c], 0
lea esi, [ebx + 0x21e8]
mov eax, dword [edi]
mov ecx, edi
push esi
mov dword [ebp - 0x70], esi
call dword [eax + 0x60]
mov eax, dword [esi]
dec eax
mov dword [ebp - 0x64], 0
test eax, eax
jle 0x598ea3
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x598d72
xor esi, esi
nop
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
mov edx, eax
mov ebx, dword [edx + 4]
cmp dword [edx + 8], ebx
je 0x598d5c
mov cl, byte [ebp + esi - 0x60]
mov byte [ebx], cl
inc dword [edx + 4]
jmp 0x598d6a
lea eax, [ebp - 0x60]
mov ecx, edx
add eax, esi
push eax
push ebx
call fcn.00522810
inc esi
cmp esi, 0x20
jl 0x598d40
jmp 0x598d98
xor ebx, ebx
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x74]
mov esi, dword [eax]
lea ecx, [esi + 1]
mov dword [eax], ecx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x14]
mov eax, dword [eax]
mov al, byte [esi + eax]
mov byte [ebp + ebx - 0x60], al
inc ebx
cmp ebx, 0x20
jl 0x598d74
push 2
push 0
mov ecx, 0x6ce50c
call fcn.00598130
mov esi, dword [0x6ce514]
mov ebx, esi
mov eax, dword [0x6ce510]
mov dword [ebp - 0x74], eax
lea ecx, [ebx + 4]
test ebx, ebx
je 0x598dcc
mov eax, 1
lock xadd dword [ecx], eax
mov esi, dword [0x6ce514]
mov dword [ebp - 4], 7
test ebx, ebx
je 0x598e06
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x598e00
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
lea eax, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
cmp edx, 1
jne 0x598e00
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
mov esi, dword [0x6ce514]
cmp dword [ebp - 0x74], 0
mov dword [ebp - 4], 0xffffffff
je 0x598e85
mov edx, dword [0x6ce510]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], esi
test esi, esi
je 0x598e2f
lea ecx, [esi + 4]
mov eax, 1
lock xadd dword [ecx], eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 4], 8
push eax
push 0x20
lea eax, [ebp - 0x60]
mov ecx, edx
push eax
call fcn.0051ea00
mov dword [ebp - 4], 9
test esi, esi
je 0x598e7e
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x598e7e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
cmp edx, 1
jne 0x598e7e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x70]
inc dword [0x6ce51c]
mov esi, dword [ebp - 0x64]
inc esi
mov eax, dword [eax]
dec eax
mov dword [ebp - 0x64], esi
cmp esi, eax
jl 0x598d30
mov ebx, dword [ebp - 0x68]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x598ef2
mov eax, dword [ebx + 4]
mov ecx, edi
mov esi, dword [eax - 8]
mov eax, dword [edi]
add esi, 5
call dword [eax + 0x14]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
cmp esi, ecx
jge 0x598ef2
nop dword [eax]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x78]
mov al, byte [eax]
xor byte [ecx + esi], al
mov ecx, edi
mov edx, dword [edi]
inc esi
call dword [edx + 0x14]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
cmp esi, ecx
jl 0x598ed0
mov eax, 1
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.005ba1ab
mov esp, ebp
pop ebp
ret 4