Function at 0x45d120
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x8298f4]
sub esp, 0x10
inc eax
push ebx
push ebp
push esi
cmp eax, 0x186a0
push edi
mov dword [0x8298f4], eax
jb 0x45dc46
mov al, byte [0x81c644]
xor edi, edi
test al, al
mov dword [0x8298f4], edi
jne 0x45d15f
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
call esi
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x45d175
sub eax, ecx
jmp 0x45d17d
mov ecx, dword [0x83f454]
add eax, ecx
mov cl, byte [esp + 0x24]
test cl, cl
jne 0x45d1a2
mov ecx, dword [0x829470]
cmp eax, ecx
jb 0x45d1a2
mov edx, ecx
or edx, eax
je 0x45d1a2
sub eax, ecx
cmp eax, 0x1b58
jbe 0x45dc46
mov al, byte [0x81c644]
mov ebp, dword [0x829478]
test al, al
jne 0x45d1c2
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call esi
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x45d1d4
sub eax, ecx
mov esi, eax
jmp 0x45d1dd
mov ecx, dword [0x83f454]
lea esi, [ecx + eax]
mov ecx, 0x85cb40
call fcn.005e6780
mov ecx, dword [0x8294e8]
mov dword [esp + 0x10], edi
not esi
mov edx, esi
xor ebp, esi
not edx
cmp ecx, edi
mov dword [esp + 0x18], esi
mov dword [0x8294d8], edx
mov dword [esp + 0x14], ebp
jle 0x45d317
mov ebx, 0x820e44
mov eax, dword [ebx]
cmp eax, edi
je 0x45d303
cmp dword [eax + 4], 1
jle 0x45d303
mov dword [esp + 0x24], edi
mov ecx, dword [ebx]
mov eax, 0x55555556
mov edx, dword [ecx + 4]
imul edx
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jg 0x45d249
mov edx, 1
cmp dword [esp + 0x24], edx
jge 0x45d2fd
mov esi, dword [ecx + 4]
mov edi, 0
dec esi
jns 0x45d262
mov edi, esi
xor esi, esi
mov ecx, 0x85cb40
call fcn.005e6780
and eax, 0x7fffffff
sub esi, edi
cdq
idiv esi
mov ecx, dword [ebx]
mov esi, dword [ecx + 4]
mov ebp, edx
add ebp, edi
dec esi
mov edi, 0
jns 0x45d28b
mov edi, esi
xor esi, esi
mov ecx, 0x85cb40
call fcn.005e6780
and eax, 0x7fffffff
sub esi, edi
cdq
idiv esi
xor esi, esi
add edx, edi
mov edi, dword [ebx]
mov ecx, dword [edi]
mov eax, ecx
test eax, eax
je 0x45d2b9
cmp esi, ebp
je 0x45d2bb
mov eax, dword [eax + 4]
inc esi
test eax, eax
jne 0x45d2ad
xor eax, eax
xor esi, esi
test ecx, ecx
je 0x45d2cd
cmp esi, edx
je 0x45d2cf
mov ecx, dword [ecx + 4]
inc esi
test ecx, ecx
jne 0x45d2c1
xor ecx, ecx
test eax, eax
je 0x45d2e9
test ecx, ecx
je 0x45d2e9
cmp eax, ecx
je 0x45d2e9
mov edx, dword [edi + 8]
push edx
push ecx
push eax
call fcn.0045cf90
add esp, 0xc
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
inc eax
xor edi, edi
mov dword [esp + 0x24], eax
jmp 0x45d22c
mov ecx, dword [0x8294e8]
mov eax, dword [esp + 0x10]
add ebx, 4
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x45d214
cmp ecx, edi
mov dword [0x829478], edi
mov dword [esp + 0x10], edi
jle 0x45d3c4
mov edi, 0x820e44
mov eax, dword [edi]
test eax, eax
je 0x45d3aa
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x45d3aa
mov esi, dword [eax]
mov dword [esp + 0x24], 0
mov edx, dword [esi]
xor edx, ebp
mov dword [esi], edx
mov ecx, dword [0x8294d8]
mov eax, edx
xor ecx, eax
mov eax, dword [edi]
mov dword [0x8294d8], ecx
mov eax, dword [eax + 8]
lea ecx, [eax + eax*2]
mov eax, dword [ecx*4 + 0x828e68]
lea ecx, [esi + 0x14]
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x45d395
mov edx, dword [ecx]
add ecx, 4
xor edx, ebp
mov dword [ecx - 4], edx
mov ebx, dword [0x8294d8]
xor ebx, edx
dec eax
mov dword [0x8294d8], ebx
jne 0x45d37a
mov edx, dword [edi]
mov eax, dword [esp + 0x24]
mov esi, dword [esi + 4]
inc eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x24], eax
cmp eax, ecx
jl 0x45d345
mov eax, dword [esp + 0x10]
mov ecx, dword [0x8294e8]
inc eax
add edi, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x45d32e
mov eax, dword [esp + 0x18]
mov ecx, dword [0x829478]
xor ecx, eax
mov al, byte [0x81c644]
test al, al
mov dword [0x829478], ecx
jne 0x45d3f0
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
call esi
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x45d406
sub eax, ecx
jmp 0x45d40e
mov ecx, dword [0x83f454]
add eax, ecx
mov dword [0x829470], eax
mov eax, dword [0x81c700]
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x45dc46
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
xor edi, edi
sub edx, ecx
mov dword [0x81c700], edi
cmp edx, eax
jne 0x45d45a
inc dword [0x8294f0]
call fcn.0045dca0
mov ecx, dword [0x829478]
mov eax, dword [0x820dd0]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x45d46d
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x45d487
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call esi
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x45d497
sub eax, ecx
jmp 0x45d49f
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x45d4bf
mov edx, eax
or edx, ecx
je 0x45d4bf
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x45dc46
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x45dc46
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, edi
mov byte [0x81c6fc], 1
not eax
jle 0x45d542
mov ebp, 0x820e44
mov dword [esp + 0x24], ecx
jmp 0x45d4f7
xor edi, edi
mov ecx, dword [ebp]
cmp ecx, edi
je 0x45d532
mov esi, dword [ecx + 4]
test esi, esi
jle 0x45d532
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x45d532
test esi, esi
jle 0x45d532
mov ebx, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x45d52c
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x45d524
mov edx, dword [edx + 4]
dec ebx
jne 0x45d517
mov ecx, dword [esp + 0x24]
add ebp, 4
dec ecx
mov dword [esp + 0x24], ecx
jne 0x45d4f5
xor edi, edi
cmp eax, dword [0x8294d8]
je 0x45d555
inc dword [0x8294f0]
call fcn.0045dca0
cmp dword [0x8294e8], edi
je 0x45dc3f
mov eax, dword [0x829464]
cmp eax, edi
je 0x45d7f3
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, edi
je 0x45d7e8
mov edx, dword [0x829488]
push edi
add eax, 0x14
push 4
push eax
lea eax, [edx*4 + 0x82948c]
push eax
call fcn.0045cba0
mov eax, dword [0x829488]
add esp, 0x10
lea esi, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [esp + 0x10], esi
mov dword [0x829488], eax
jl 0x45d5bd
mov dword [0x829488], edi
push edi
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 4
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x45d7dc
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], edi
sub edx, ecx
cmp edx, eax
jne 0x45d60b
inc dword [0x8294f0]
call fcn.0045dca0
mov ecx, dword [0x829478]
mov eax, dword [0x820dd0]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x45d61e
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x45d638
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x45d64c
sub eax, ecx
jmp 0x45d654
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x45d674
mov edx, eax
or edx, ecx
je 0x45d674
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x45d7dc
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x45d7dc
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, edi
mov byte [0x81c6fc], 1
not eax
jle 0x45d6f7
mov ebp, 0x820e44
mov dword [esp + 0x24], ecx
jmp 0x45d6ac
xor edi, edi
mov ecx, dword [ebp]
cmp ecx, edi
je 0x45d6e7
mov esi, dword [ecx + 4]
test esi, esi
jle 0x45d6e7
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x45d6e7
test esi, esi
jle 0x45d6e7
mov ebx, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x45d6e1
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x45d6d9
mov edx, dword [edx + 4]
dec ebx
jne 0x45d6cc
mov ecx, dword [esp + 0x24]
add ebp, 4
dec ecx
mov dword [esp + 0x24], ecx
jne 0x45d6aa
xor edi, edi
cmp eax, dword [0x8294d8]
je 0x45d70a
inc dword [0x8294f0]
call fcn.0045dca0
cmp dword [0x8294e8], edi
je 0x45d7d1
mov eax, dword [0x829464]
mov dword [esp + 0x24], edi
cmp eax, edi
je 0x45d797
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, edi
je 0x45d78c
mov edx, dword [0x829488]
push edi
add eax, 0x14
push 4
push eax
lea eax, [edx*4 + 0x82948c]
push eax
call fcn.0045cba0
mov eax, dword [0x829488]
add esp, 0x10
lea ecx, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [esp + 0x24], ecx
mov dword [0x829488], eax
jl 0x45d76e
mov dword [0x829488], edi
push edi
call fcn.0045d120
add esp, 4
call fcn.004059e0
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x45d78c
cmp dword [eax], 0x29874362
je 0x45d797
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x24], edi
cmp eax, edi
je 0x45d7d1
lea edx, [esp + 0x24]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x45d7c6
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x45d7c6
cmp dword [eax], 0xbad0bad
je 0x45d7d1
inc dword [0x8294f0]
call fcn.0045dca0
mov esi, dword [esp + 0x10]
mov byte [0x81c6fc], 0
cmp esi, edi
je 0x45d7e8
cmp dword [esi], 0x29874362
je 0x45d7f3
inc dword [0x8294f0]
call fcn.0045dca0
mov esi, dword [0x8294b0]
cmp esi, edi
je 0x45dc3f
mov eax, dword [0x81c700]
mov dword [esp + 0x18], esi
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x45d9c0
mov eax, dword [0x820dd0]
mov ebx, dword [0x829478]
mov ecx, eax
mov dword [0x81c700], edi
sub ecx, ebx
cmp ecx, eax
jne 0x45d83e
call fcn.00406630
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x45d851
call fcn.00406630
mov ecx, 0x83f450
call fcn.004065e0
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x45d87b
mov edx, eax
or edx, ecx
je 0x45d87b
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x45d9c0
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x45d9c0
mov esi, dword [0x829478]
mov dword [0x829468], eax
mov eax, dword [0x8294e8]
mov byte [0x81c6fc], 1
cmp eax, edi
mov dword [esp + 0x10], edi
not esi
jle 0x45d91e
mov dword [esp + 0x24], 0x820e44
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
test eax, eax
je 0x45d900
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x45d900
mov edi, dword [eax]
mov ebp, dword [edi + 0xc]
sar ebp, 2
test edi, edi
je 0x45d900
xor ebx, ebx
test ecx, ecx
jle 0x45d900
mov ecx, edi
call fcn.00406620
xor esi, eax
lea eax, [edi + 0x14]
test ebp, ebp
jle 0x45d8f1
mov ecx, ebp
mov edx, dword [eax]
add eax, 4
xor esi, edx
dec ecx
jne 0x45d8e7
mov ecx, dword [esp + 0x24]
mov edi, dword [edi + 4]
inc ebx
mov edx, dword [ecx]
cmp ebx, dword [edx + 4]
jl 0x45d8d5
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov ecx, dword [0x8294e8]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edx
jl 0x45d8b2
cmp esi, dword [0x8294d8]
je 0x45d92b
call fcn.00406630
mov eax, dword [0x8294e8]
xor esi, esi
cmp eax, esi
je 0x45d9b3
mov ecx, 0x829464
mov dword [esp + 0x24], esi
call fcn.00406620
test eax, eax
je 0x45d975
mov ecx, dword [0x829464]
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.00407b70
add esp, 8
test al, al
je 0x45d970
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x45d970
cmp dword [eax], 0x29874362
je 0x45d975
call fcn.00406630
mov ecx, 0x8294b0
mov dword [esp + 0x24], esi
call fcn.00406620
test eax, eax
je 0x45d9b3
mov eax, dword [0x8294b0]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x45d9ae
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x45d9ae
cmp dword [eax], 0xbad0bad
je 0x45d9b3
call fcn.00406630
mov esi, dword [esp + 0x18]
mov byte [0x81c6fc], 0
xor edi, edi
mov eax, dword [0x820dd0]
mov ebp, dword [0x829478]
xor esi, eax
mov eax, esi
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x1a]
xor eax, ebp
and ecx, 0xffff
mov edx, eax
mov eax, dword [ecx*4 + 0x820e44]
xor ecx, ecx
mov eax, dword [eax]
cmp eax, edi
je 0x45dc34
cmp dword [eax], edx
je 0x45da0e
mov eax, dword [eax + 4]
inc ecx
cmp ecx, 0x10
jg 0x45dc34
cmp eax, edi
jne 0x45d9f4
jmp 0x45dc34
cmp eax, edi
je 0x45dc34
mov ecx, dword [0x829488]
push edi
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 esi, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [esp + 0x10], esi
mov dword [0x829488], eax
jl 0x45da54
mov dword [0x829488], edi
push edi
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 4
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x45dc28
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], edi
sub edx, ecx
cmp edx, eax
jne 0x45daa2
inc dword [0x8294f0]
call fcn.0045dca0
mov ecx, dword [0x829478]
mov eax, dword [0x820dd0]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x45dab5
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x45dacf
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x45dae3
sub eax, ecx
jmp 0x45daeb
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x45db0b
mov edx, eax
or edx, ecx
je 0x45db0b
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x45dc28
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x45dc28
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, edi
mov byte [0x81c6fc], 1
not eax
jle 0x45db8e
mov ebp, 0x820e44
mov dword [esp + 0x24], ecx
jmp 0x45db43
xor edi, edi
mov ecx, dword [ebp]
cmp ecx, edi
je 0x45db7e
mov esi, dword [ecx + 4]
test esi, esi
jle 0x45db7e
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x45db7e
test esi, esi
jle 0x45db7e
mov ebx, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x45db78
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x45db70
mov edx, dword [edx + 4]
dec ebx
jne 0x45db63
mov ecx, dword [esp + 0x24]
add ebp, 4
dec ecx
mov dword [esp + 0x24], ecx
jne 0x45db41
xor edi, edi
cmp eax, dword [0x8294d8]
je 0x45dba1
inc dword [0x8294f0]
call fcn.0045dca0
cmp dword [0x8294e8], edi
je 0x45dc1d
mov eax, dword [0x829464]
mov dword [esp + 0x24], edi
cmp eax, edi
je 0x45dbe3
lea edx, [esp + 0x24]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x45dbd8
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x45dbd8
cmp dword [eax], 0x29874362
je 0x45dbe3
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x24], edi
cmp eax, edi
je 0x45dc1d
lea ecx, [esp + 0x24]
push ecx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x45dc12
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x45dc12
cmp dword [eax], 0xbad0bad
je 0x45dc1d
inc dword [0x8294f0]
call fcn.0045dca0
mov esi, dword [esp + 0x10]
mov byte [0x81c6fc], 0
cmp esi, edi
je 0x45dc34
cmp dword [esi], 0xbad0bad
je 0x45dc3f
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret