Function at 0x4722a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [0x81cfec]
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x18], eax
je 0x472516
mov eax, dword [esp + 0x18]
mov ebp, dword [eax + 4]
mov dword [esp + 0x20], ebp
mov eax, dword [ebp + 0x76c]
cmp eax, 0xffffffff
je 0x4724ee
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebx
je 0x4724ee
mov ecx, dword [0x829488]
push ebx
add eax, 0x14
push 4
lea edx, [ecx*4 + 0x82948c]
push eax
push edx
call fcn.0045cba0
mov eax, dword [0x829488]
add esp, 0x10
lea edi, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [esp + 0x24], edi
mov dword [0x829488], eax
jl 0x472323
mov dword [0x829488], ebx
push ebx
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 4
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x4724e6
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebx
sub edx, ecx
cmp edx, eax
jne 0x47236b
call fcn.00406630
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x472378
call fcn.00406630
mov ecx, 0x83f450
call fcn.004065e0
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x4723a2
mov edx, ecx
or edx, eax
je 0x4723a2
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x4724e6
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x4724e6
mov esi, dword [0x829478]
mov dword [0x829468], eax
mov eax, dword [0x8294e8]
mov byte [0x81c6fc], 1
cmp eax, ebx
mov dword [esp + 0x1c], ebx
not esi
jle 0x47244d
mov dword [esp + 0x14], 0x820e44
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
cmp eax, ebx
je 0x472427
mov ecx, dword [eax + 4]
cmp ecx, ebx
jle 0x472427
mov edi, dword [eax]
mov ebp, dword [edi + 0xc]
sar ebp, 2
cmp edi, ebx
je 0x472427
test ecx, ecx
jle 0x472425
mov ecx, edi
call fcn.00406620
xor esi, eax
lea eax, [edi + 0x14]
test ebp, ebp
jle 0x472416
mov ecx, ebp
mov edx, dword [eax]
add eax, 4
xor esi, edx
dec ecx
jne 0x47240c
mov ecx, dword [esp + 0x14]
mov edi, dword [edi + 4]
inc ebx
mov edx, dword [ecx]
cmp ebx, dword [edx + 4]
jl 0x4723fa
xor ebx, ebx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [0x8294e8]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
jl 0x4723d9
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
cmp esi, dword [0x8294d8]
je 0x47245a
call fcn.00406630
cmp dword [0x8294e8], ebx
je 0x4724df
mov ecx, 0x829464
mov dword [esp + 0x14], ebx
call fcn.00406620
test eax, eax
je 0x4724a1
mov ecx, dword [0x829464]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00407b70
add esp, 8
test al, al
je 0x47249c
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x47249c
cmp dword [eax], 0x29874362
je 0x4724a1
call fcn.00406630
mov ecx, 0x8294b0
mov dword [esp + 0x14], ebx
call fcn.00406620
test eax, eax
je 0x4724df
mov eax, dword [0x8294b0]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x4724da
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4724da
cmp dword [eax], 0xbad0bad
je 0x4724df
call fcn.00406630
mov byte [0x81c6fc], 0
cmp edi, ebx
je 0x4724ee
mov eax, dword [edi]
jmp 0x4724f3
mov eax, dword [0x89fe34]
xor ecx, ecx
cmp eax, ebx
sete cl
mov eax, ecx
mov ecx, ebp
push eax
call fcn.0040d600
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x4722ba
mov eax, dword [0x85fd18]
mov esi, dword [str.TDBERR]
cmp eax, 0x1c63
jle 0x47253e
mov eax, dword [0x85fd0c]
mov ecx, dword [eax + 0x718c]
cmp ecx, ebx
je 0x47253e
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov esi, dword [eax]
mov eax, dword [0x809d3c]
cmp esi, ebx
mov dword [esp + 0x10], eax
je 0x4725a4
push esi
call fcn.0078c685
add esp, 4
cmp eax, ebx
jle 0x472564
inc eax
push ebx
push eax
lea ecx, [esp + 0x18]
call fcn.005dd7a0
push esi
call fcn.0078c685
mov ebp, eax
add esp, 4
lea ecx, [esp + 0x10]
lea edi, [ebp + 1]
push edi
call fcn.005dd910
mov eax, dword [esp + 0x10]
mov ecx, dword [0x809d3c]
cmp eax, ecx
je 0x472591
mov dword [eax - 4], ebp
mov eax, dword [esp + 0x10]
lea ecx, [edi + edi]
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x6c8
call fcn.00672b70
add esp, 4
cmp eax, ebx
je 0x4725be
mov ecx, eax
call fcn.004b9940
jmp 0x4725c0
xor eax, eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x1c]
push ebx
push ecx
mov ecx, eax
call fcn.004b99f0
lea ecx, [esp + 0x10]
call fcn.005dd990
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret