Function at 0x5549fc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
mov dword [ebp - 0x44], 0xcf4cd4
mov eax, dword [ebp - 0x44]
add eax, 0x28
mov dword [ebp - 0x48], eax
mov edx, dword [0xcf4f00]
mov dword [ebp - 0x40], edx
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
cmp eax, edx
jge 0x554a5e
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
movsx edx, byte [ecx + eax]
mov ecx, dword [ebp - 0x40]
xor edx, ecx
and edx, 0xff
mov eax, dword [edx*4 + 0x819bfc]
mov edx, dword [ebp - 0x40]
shr edx, 8
xor eax, edx
mov dword [ebp - 0x40], eax
inc dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
cmp ecx, eax
jl 0x554a2a
mov edx, dword [ebp - 0x40]
mov dword [0xcf4f00], edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
xor eax, eax
mov dword [ebp - 0xc], eax
mov edx, dword [0xcf4eed]
shr edx, 2
mov dword [ebp - 0x34], edx
jmp 0x555043
mov ecx, dword [0xcf4eed]
mov eax, dword [0xcf5144]
sub ecx, eax
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp edx, ecx
jge 0x554ad0
push dword [ebp - 4]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
add eax, edx
push eax
mov ecx, dword [0xcf4f50]
mov eax, dword [0xcf5144]
add ecx, eax
push ecx
call fcn.0066cc18
add esp, 0xc
mov edx, dword [ebp - 4]
add dword [0xcf5144], edx
mov eax, dword [ebp + 0xc]
jmp 0x555069
push dword [ebp - 8]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
add edx, ecx
push edx
mov eax, dword [0xcf4f50]
mov edx, dword [0xcf5144]
add eax, edx
push eax
call fcn.0066cc18
add esp, 0xc
mov ecx, dword [ebp - 8]
add dword [ebp - 0xc], ecx
xor eax, eax
mov dword [0xcf5144], eax
mov edx, dword [ebp - 8]
sub dword [ebp - 4], edx
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + 0x1e8]
cmp eax, 2
jl 0x554b21
mov edx, dword [0x819be4]
test edx, edx
jne 0x554cf4
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov eax, dword [0x819be4]
test eax, eax
jne 0x554b57
mov byte [ebp - 0x35], 0x40
mov edx, dword [0xcf4eed]
mov dword [ebp - 0x10], edx
push 1
push dword [ebp - 0x10]
push dword [0xcf4f50]
call fcn.0055453c
add esp, 0xc
mov dword [ebp - 0x3c], eax
jmp 0x554caf
mov ecx, dword [0xcf4f50]
mov dword [ebp - 0x30], ecx
xor eax, eax
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x34]
cmp edx, ecx
jge 0x554b89
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax + edx*4]
test ecx, ecx
jne 0x554b89
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x34]
cmp eax, edx
jl 0x554b6f
mov byte [ebp - 0x35], 0x80
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x34]
cmp ecx, eax
jne 0x554bb6
mov byte [ebp - 0x35], 0
mov edx, dword [0xcf4eed]
mov dword [ebp - 0x10], edx
inc dword [0xcf5158]
mov dword [ebp - 0x3c], 1
jmp 0x554caf
mov ecx, dword [0xcf4eed]
add ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
push dword [0x819bec]
push dword [0xcf4eed]
push dword [0xcf4f50]
lea eax, [ebp - 0x10]
push eax
push dword [0xcf4f54]
call fcn.0054023c
add esp, 0x14
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x554bfa
mov eax, dword [ebp - 0x14]
add eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [0x819be4]
cmp edx, 6
jne 0x554c60
push 0
push 0
push 9
push dword [0xcf4eed]
push dword [0xcf4f50]
lea ecx, [ebp - 0x14]
push ecx
push dword [0xcf4f58]
call fcn.0054eefc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x554c60
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
jae 0x554c60
mov byte [ebp - 0x35], 0xc0
xor eax, eax
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
push dword [ebp - 0x10]
push dword [0xcf4f58]
push dword [0xcf4f54]
call fcn.0066cc18
add esp, 0xc
mov ecx, dword [ebp - 0x24]
test ecx, ecx
jne 0x554c74
mov eax, dword [ebp - 0x10]
mov edx, dword [0xcf4eed]
cmp eax, edx
jb 0x554c99
mov byte [ebp - 0x35], 0x40
mov ecx, dword [0xcf4eed]
mov dword [ebp - 0x10], ecx
push 1
push dword [ebp - 0x10]
push dword [0xcf4f50]
call fcn.0055453c
add esp, 0xc
mov dword [ebp - 0x3c], eax
jmp 0x554caf
push 1
push dword [ebp - 0x10]
push dword [0xcf4f54]
call fcn.0055453c
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x554cc5
mov dword [0x6fb15c], 1
jmp 0x555058
mov edx, dword [0x819be4]
test edx, edx
je 0x555043
mov cl, byte [ebp - 0x35]
push ecx
push dword [ebp - 0x10]
push dword [0xcf515c]
call fcn.00551b5c
add esp, 0xc
add dword [0xcf515c], 3
jmp 0x555043
mov dword [ebp - 0x54], 0xffffffff
jmp 0x554efe
push 0x14
push 0
mov eax, dword [ebp - 0x44]
add eax, 0x1c8
push eax
mov edx, dword [ebp - 0x44]
push dword [edx + 0x1e8]
call sub.KERNEL32.DLL_WaitForMultipleObjects
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x554d3b
mov edx, dword [ebp - 0x44]
mov ecx, dword [edx + 0x1e8]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
jg 0x554d5a
mov edx, dword [ebp - 0x44]
mov ecx, dword [edx + 0x1ec]
mov eax, dword [ebp - 0x44]
mov edx, dword [eax + 0x1e8]
cmp ecx, edx
je 0x554efe
jmp 0x554f0f
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x18]
push dword [ecx + eax*4 + 0x1c8]
call sub.KERNEL32.DLL_ResetEvent
test eax, eax
jne 0x554d7f
mov edx, dword [ebp - 0x44]
mov dword [edx + 4], 1
jmp 0x555067
imul ecx, dword [ebp - 0x18], 0xd
mov eax, dword [ebp - 0x48]
mov edx, dword [eax + ecx*4 + 8]
inc edx
jne 0x554d9c
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 4], 1
jmp 0x555067
mov eax, dword [ebp - 0x44]
mov edx, dword [eax + 0x1f8]
mov dword [ebp - 0x50], edx
imul ecx, dword [ebp - 0x18], 0xd
mov eax, dword [ebp - 0x48]
mov edx, dword [eax + ecx*4 + 0x18]
mov ecx, dword [ebp - 0x50]
cmp edx, ecx
jge 0x554ddc
imul eax, dword [ebp - 0x18], 0xd
mov edx, dword [ebp - 0x48]
push dword [edx + eax*4 + 0x18]
mov ecx, dword [ebp - 0x18]
inc ecx
push ecx
push 0x81a0eb
call fcn.004629e4
add esp, 0xc
jmp 0x554ef5
imul eax, dword [ebp - 0x18], 0xd
mov edx, dword [ebp - 0x48]
mov ecx, dword [edx + eax*4 + 0x18]
mov eax, dword [ebp - 0x50]
cmp ecx, eax
jne 0x554edd
imul edx, dword [ebp - 0x18], 0x34
mov ecx, dword [ebp - 0x48]
add edx, ecx
push edx
call fcn.00551dcb
pop ecx
test eax, eax
jne 0x554e15
mov eax, dword [ebp - 0x44]
mov dword [eax + 4], 1
jmp 0x555067
imul edx, dword [ebp - 0x18], 0xd
mov ecx, dword [ebp - 0x48]
xor eax, eax
mov dword [ecx + edx*4 + 0xc], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x54], edx
inc dword [ebp - 0x50]
jmp 0x554ebe
xor ecx, ecx
mov dword [ebp - 0x20], ecx
jmp 0x554e9e
imul eax, dword [ebp - 0x20], 0xd
mov edx, dword [ebp - 0x48]
mov ecx, dword [edx + eax*4 + 0xc]
dec ecx
jne 0x554e9b
imul eax, dword [ebp - 0x20], 0xd
mov edx, dword [ebp - 0x48]
mov ecx, dword [edx + eax*4 + 0x18]
mov eax, dword [ebp - 0x50]
cmp ecx, eax
jne 0x554e9b
imul edx, dword [ebp - 0x20], 0x34
mov ecx, dword [ebp - 0x48]
add edx, ecx
push edx
call fcn.00551dcb
pop ecx
test eax, eax
jne 0x554e7a
mov eax, dword [ebp - 0x44]
mov dword [eax + 4], 1
jmp 0x555067
imul edx, dword [ebp - 0x20], 0xd
mov ecx, dword [ebp - 0x48]
xor eax, eax
mov dword [ecx + edx*4 + 0xc], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x54], edx
inc dword [ebp - 0x50]
mov ecx, dword [ebp - 0x44]
dec dword [ecx + 0x1f0]
jmp 0x554eae
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x44]
mov edx, dword [eax + 0x1e8]
mov ecx, dword [ebp - 0x20]
cmp edx, ecx
jg 0x554e37
mov eax, dword [ebp - 0x44]
mov edx, dword [eax + 0x1e8]
mov ecx, dword [ebp - 0x20]
cmp edx, ecx
je 0x554ecf
mov eax, dword [ebp - 0x44]
mov edx, dword [eax + 0x1f0]
test edx, edx
jg 0x554e30
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x50]
mov dword [ecx + 0x1f8], eax
jmp 0x554ef5
imul edx, dword [ebp - 0x18], 0xd
mov ecx, dword [ebp - 0x48]
mov dword [ecx + edx*4 + 0xc], 1
mov eax, dword [ebp - 0x44]
inc dword [eax + 0x1f0]
mov edx, dword [ebp - 0x44]
dec dword [edx + 0x1ec]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + 0x1ec]
test eax, eax
jg 0x554d00
mov edx, dword [ebp - 0x54]
inc edx
jne 0x554f67
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + 0x1f0]
mov edx, dword [ebp - 0x44]
mov ecx, dword [edx + 0x1ec]
add eax, ecx
mov edx, dword [ebp - 0x44]
mov ecx, dword [edx + 0x1e8]
cmp eax, ecx
jge 0x554efe
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x554f57
imul eax, dword [ebp - 0x18], 0xd
mov edx, dword [ebp - 0x48]
mov ecx, dword [edx + eax*4 + 0xc]
test ecx, ecx
jne 0x554f54
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x54], eax
jmp 0x554f67
inc dword [ebp - 0x18]
mov edx, dword [ebp - 0x44]
mov ecx, dword [edx + 0x1e8]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
jg 0x554f3d
mov edx, dword [ebp - 0x54]
inc edx
jne 0x554f9a
mov ecx, dword [ebp - 0x44]
push dword [ecx + 0x1f0]
mov eax, dword [ebp - 0x44]
push dword [eax + 0x1e8]
mov edx, dword [ebp - 0x44]
push dword [edx + 0x1ec]
push str.___Internal_error____BUSY_d__d__READY_d
call fcn.004629e4
add esp, 0x10
jmp 0x555067
push dword [0xcf4eed]
push dword [0xcf4f50]
imul ecx, dword [ebp - 0x54], 0xd
mov eax, dword [ebp - 0x48]
push dword [eax + ecx*4 + 0x1c]
call fcn.0066cc18
add esp, 0xc
imul edx, dword [ebp - 0x54], 0xd
mov ecx, dword [ebp - 0x48]
mov eax, dword [0xcf4eed]
mov dword [ecx + edx*4 + 0x20], eax
imul edx, dword [ebp - 0x54], 0xd
mov ecx, dword [ebp - 0x48]
xor eax, eax
mov dword [ecx + edx*4 + 0x2c], eax
imul edx, dword [ebp - 0x54], 0xd
mov ecx, dword [ebp - 0x48]
xor eax, eax
mov dword [ecx + edx*4 + 4], eax
mov edx, dword [ebp - 0x44]
mov ecx, dword [edx + 0x1f4]
imul eax, dword [ebp - 0x54], 0xd
mov edx, dword [ebp - 0x48]
mov dword [edx + eax*4 + 0x18], ecx
imul ecx, dword [ebp - 0x54], 0xd
mov eax, dword [ebp - 0x48]
mov dword [eax + ecx*4 + 0xc], 0xffffffff
mov edx, dword [ebp - 0x44]
inc dword [edx + 0x1f4]
imul ecx, dword [ebp - 0x54], 0xd
mov eax, dword [ebp - 0x48]
push dword [eax + ecx*4 + 0x10]
call sub.KERNEL32.DLL_SetEvent
test eax, eax
jne 0x55503a
push str.Set_event_failed.
call fcn.004629e4
pop ecx
mov edx, dword [ebp - 0x44]
mov dword [edx + 4], 1
jmp 0x555067
mov ecx, dword [ebp - 0x44]
inc dword [ecx + 0x1ec]
mov eax, dword [ebp - 4]
test eax, eax
jle 0x555058
mov edx, dword [0x6fb15c]
test edx, edx
je 0x554a83
mov ecx, dword [0x6fb15c]
test ecx, ecx
jne 0x555067
mov eax, dword [ebp + 0xc]
jmp 0x555069
xor eax, eax
mov esp, ebp
pop ebp
ret