Function at 0x4507d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7985b9
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf8], ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc8], edi
sub esp, 8
mov dword [ebp - 4], 0
mov eax, esp
push 0
push 4
sub esp, 0x28
mov dword [eax], 0
mov esi, esp
mov dword [eax + 4], 0x64
mov dword [ebp - 0xf0], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x450850
mov eax, dword [ecx]
push esi
mov eax, dword [eax]
call eax
mov dword [esi + 0x24], eax
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0
call fcn.00451950
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
movq qword [ebp - 0x54], xmm0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
movq qword [ebp - 0x48], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 4
xor ecx, ecx
mov dword [ebp - 0xe0], 9
mov dword [ebp - 0xdc], 0xdf00e8
mov dword [ebp - 0xd8], 0xc300df
mov dword [ebp - 0xd4], 0xda00de
mov dword [ebp - 0xd0], 0xc200ce
mov dword [ebp - 0xcc], 0xb200c5
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0xdc], ax
inc ecx
mov eax, dword [ebp - 0xe0]
cmp ecx, eax
jb 0x4508f0
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov word [ebp + eax*2 - 0xdc], cx
xor eax, eax
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0xdc]
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x450930
sub ecx, edx
lea eax, [ebp - 0xdc]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004044f0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0xc4]
call fcn.004518c0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00404490
mov eax, dword [ebp - 0xc8]
mov edi, dword [edi]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc8], eax
cmp edi, eax
je 0x450b1b
nop word [eax + eax]
mov ecx, dword [edi]
cmp byte [ecx + 0xc], 0
je 0x450b0c
cmp byte [ecx + 0xd], 0
je 0x450b0c
cmp byte [ecx + 0xe], 0
jne 0x450b0c
mov eax, dword [ecx + 4]
cmp eax, 3
jne 0x4509e7
mov esi, dword [edi + 4]
test esi, esi
je 0x4509c6
lock inc dword [esi + 4]
mov esi, dword [edi + 4]
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x104], esi
add ecx, 0x88
mov byte [ebp - 4], 6
call fcn.00458bb0
mov byte [ebp - 4], 7
jmp 0x450a4f
cmp eax, 1
jne 0x450a78
mov eax, dword [edi + 4]
test eax, eax
je 0x4509fe
lock inc dword [eax + 4]
mov eax, dword [edi + 4]
mov dword [ebp - 0xf4], ecx
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x50]
cmp dword [ebp - 0x4c], edx
je 0x450a33
mov dword [edx], 0
xor esi, esi
mov dword [edx], ecx
mov dword [edx + 4], eax
add dword [ebp - 0x50], 8
mov dword [ebp - 0xf4], 0
jmp 0x450a4b
lea eax, [ebp - 0xf4]
push eax
push dword [ebp - 0x50]
lea ecx, [ebp - 0x54]
call fcn.00452210
mov esi, dword [ebp - 0xf0]
mov byte [ebp - 4], 9
test esi, esi
je 0x450a74
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x450a74
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x450a74
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [edi]
cmp dword [edx + 4], 0xf
jne 0x450b0c
mov eax, dword [edi + 4]
test eax, eax
je 0x450a92
lock inc dword [eax + 4]
mov eax, dword [edi + 4]
mov dword [ebp - 0x100], edx
mov dword [ebp - 0xfc], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x40], ecx
je 0x450ac7
mov dword [ecx], 0
xor esi, esi
mov dword [ecx], edx
mov dword [ecx + 4], eax
add dword [ebp - 0x44], 8
mov dword [ebp - 0x100], 0
jmp 0x450adf
lea eax, [ebp - 0x100]
push eax
push dword [ebp - 0x44]
lea ecx, [ebp - 0x48]
call fcn.00452210
mov esi, dword [ebp - 0xfc]
mov byte [ebp - 4], 0xb
test esi, esi
je 0x450b08
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x450b08
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x450b08
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 4
add edi, 8
cmp edi, dword [ebp - 0xc8]
jne 0x450990
movsd xmm0, qword [ebp - 0x84]
lea eax, [ebp - 0x7c]
addsd xmm0, qword [0x7e3618]
push eax
movsd qword [ebp - 0x84], xmm0
divsd xmm0, qword [ebp - 0x8c]
cvttsd2si ecx, xmm0
add ecx, dword [ebp - 0x9c]
cmp ecx, dword [ebp - 0x98]
cmovg ecx, dword [ebp - 0x98]
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x28]
call fcn.00404120
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x4512b1
mov eax, dword [ecx]
lea edx, [ebp - 0x2c]
push edx
call dword [eax + 8]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00404490
mov dword [ebp - 0x30], 0xd
xor ecx, ecx
mov dword [ebp - 0x2c], 0xcb00e4
mov dword [ebp - 0x28], 0xdb00c7
mov dword [ebp - 0x24], 0xdc00cc
mov dword [ebp - 0x20], 0x9000ca
mov dword [ebp - 0x1c], 0xdb00d7
mov dword [ebp - 0x18], 0xd100df
mov dword [ebp - 0x14], 0xb600c6
nop dword [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x2c], ax
inc ecx
mov eax, dword [ebp - 0x30]
cmp ecx, eax
jb 0x450bd0
xor ecx, ecx
mov dword [ebp - 0xcc], 7
mov word [ebp + eax*2 - 0x2c], cx
xor eax, eax
mov dword [ebp - 0xd0], ecx
lea ecx, [ebp - 0x2c]
mov word [ebp - 0xe0], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x450c10
sub ecx, edx
lea eax, [ebp - 0x2c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xe0]
call fcn.004044f0
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0xe0]
cmp dword [ebp - 0xcc], 8
lea ecx, [ebp - 0x7c]
push dword [ebp - 0xd0]
cmovae eax, dword [ebp - 0xe0]
push eax
call fcn.004044f0
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00404120
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x4512b6
mov eax, dword [ecx]
lea edx, [ebp - 0x2c]
push edx
call dword [eax + 8]
lea ecx, [ebp - 0x28]
call fcn.00404490
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 4
call fcn.00404490
mov eax, dword [ebp - 0x44]
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0xc8], eax
cmp edi, eax
je 0x450d5d
mov eax, dword [edi]
lea ecx, [ebp - 0x28]
add eax, 0x64
push eax
call fcn.00404120
mov ecx, dword [ebp - 0xf8]
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0xf
call fcn.00444f50
mov esi, dword [edi]
xor eax, eax
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 7
mov word [ebp - 0xec], ax
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0xec]
call fcn.00403b80
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 0x12
push eax
call fcn.00418800
add esp, 4
mov byte [esi + 0xe], al
lea ecx, [ebp - 0xd4]
call fcn.00404220
lea ecx, [ebp - 0xec]
call fcn.00404490
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00404490
add edi, 8
cmp edi, dword [ebp - 0xc8]
jne 0x450cb1
movsd xmm0, qword [ebp - 0x84]
lea eax, [ebp - 0x7c]
addsd xmm0, qword [0x7e3618]
push eax
movsd qword [ebp - 0x84], xmm0
divsd xmm0, qword [ebp - 0x8c]
cvttsd2si ecx, xmm0
add ecx, dword [ebp - 0x9c]
cmp ecx, dword [ebp - 0x98]
cmovg ecx, dword [ebp - 0x98]
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x28]
call fcn.00404120
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x4512bb
mov eax, dword [ecx]
lea edx, [ebp - 0x2c]
push edx
call dword [eax + 8]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00404490
mov eax, 0xc
mov dword [ebp - 0x2c], 0xda00e8
mov dword [ebp - 0x30], eax
xor ecx, ecx
mov dword [ebp - 0x28], 0xc000db
mov dword [ebp - 0x24], 0xcd00c4
mov dword [ebp - 0x20], 0xc400ce
mov dword [ebp - 0x1c], 0xdd00d8
mov dword [ebp - 0x18], 0xc700dd
mov dword [ebp - 0x14], 0xb5
nop dword [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x2c], ax
inc ecx
mov eax, dword [ebp - 0x30]
cmp ecx, eax
jb 0x450e10
xor ecx, ecx
mov dword [ebp - 0xcc], 7
mov word [ebp + eax*2 - 0x2c], cx
xor eax, eax
mov dword [ebp - 0xd0], ecx
lea ecx, [ebp - 0x2c]
mov word [ebp - 0xe0], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x450e50
sub ecx, edx
lea eax, [ebp - 0x2c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xe0]
call fcn.004044f0
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0xe0]
cmp dword [ebp - 0xcc], 8
lea ecx, [ebp - 0x7c]
push dword [ebp - 0xd0]
cmovae eax, dword [ebp - 0xe0]
push eax
call fcn.004044f0
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00404120
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x4512c0
mov eax, dword [ecx]
lea edx, [ebp - 0x2c]
push edx
call dword [eax + 8]
lea ecx, [ebp - 0x28]
call fcn.00404490
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 4
call fcn.00404490
mov ecx, dword [ebp - 0xf8]
lea eax, [ebp - 0x54]
push eax
lea ecx, [ecx + 0x98]
call fcn.0058e090
movsd xmm0, qword [ebp - 0x84]
lea eax, [ebp - 0x7c]
addsd xmm0, qword [0x7e3618]
push eax
movsd qword [ebp - 0x84], xmm0
divsd xmm0, qword [ebp - 0x8c]
cvttsd2si ecx, xmm0
add ecx, dword [ebp - 0x9c]
cmp ecx, dword [ebp - 0x98]
cmovg ecx, dword [ebp - 0x98]
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x28]
call fcn.00404120
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x4512c5
mov eax, dword [ecx]
lea edx, [ebp - 0x2c]
push edx
call dword [eax + 8]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00404490
mov eax, 0x12
mov dword [ebp - 0x38], 0xd800eb
mov dword [ebp - 0x3c], eax
xor ecx, ecx
mov dword [ebp - 0x34], 0xdb00c4
mov dword [ebp - 0x30], 0xcb00de
mov dword [ebp - 0x2c], 0x9000dd
mov dword [ebp - 0x28], 0xca00d4
mov dword [ebp - 0x24], 0xd100c7
mov dword [ebp - 0x20], 0xc500db
mov dword [ebp - 0x1c], 0xd700de
mov dword [ebp - 0x18], 0xc900d7
mov dword [ebp - 0x14], 0xbb
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x38], ax
inc ecx
mov eax, dword [ebp - 0x3c]
cmp ecx, eax
jb 0x450fc0
xor ecx, ecx
mov dword [ebp - 0xcc], 7
mov word [ebp + eax*2 - 0x38], cx
xor eax, eax
mov dword [ebp - 0xd0], ecx
lea ecx, [ebp - 0x38]
mov word [ebp - 0xe0], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x451000
sub ecx, edx
lea eax, [ebp - 0x38]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xe0]
call fcn.004044f0
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0xe0]
cmp dword [ebp - 0xcc], 8
lea ecx, [ebp - 0x7c]
push dword [ebp - 0xd0]
cmovae eax, dword [ebp - 0xe0]
push eax
call fcn.004044f0
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00404120
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x4512ca
mov eax, dword [ecx]
lea edx, [ebp - 0x2c]
push edx
call dword [eax + 8]
lea ecx, [ebp - 0x28]
call fcn.00404490
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 4
call fcn.00404490
mov ecx, dword [0x83ff5c]
test ecx, ecx
jne 0x4510f0
push 0x20
call fcn.0076e8c3
mov ecx, eax
xorps xmm0, xmm0
mov dword [ebp - 0xf0], ecx
add esp, 4
movups xmmword [ecx], xmm0
movups xmmword [ecx + 0x10], xmm0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [0x83ff5c], ecx
sub esp, 0x28
mov eax, esp
mov dword [eax], vtable.z.1.0
mov dword [eax + 0x24], eax
call fcn.0045faf0
movsd xmm0, qword [ebp - 0x84]
lea eax, [ebp - 0x7c]
addsd xmm0, qword [0x7e3618]
push eax
movsd qword [ebp - 0x84], xmm0
divsd xmm0, qword [ebp - 0x8c]
cvttsd2si ecx, xmm0
add ecx, dword [ebp - 0x9c]
cmp ecx, dword [ebp - 0x98]
cmovg ecx, dword [ebp - 0x98]
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x28]
call fcn.00404120
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x4512cf
mov eax, dword [ecx]
lea edx, [ebp - 0x2c]
push edx
call dword [eax + 8]
lea ecx, [ebp - 0x28]
call fcn.00404490
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x4511da
mov edx, dword [ebp - 0x44]
push ecx
call fcn.00413a10
mov eax, dword [ebp - 0x40]
add esp, 4
mov ecx, dword [ebp - 0x48]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
mov eax, ecx
cmp edx, 0x1000
jb 0x4511bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4511bb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0076e8f3
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x451242
mov edx, dword [ebp - 0x50]
push ecx
call fcn.00413a10
mov eax, dword [ebp - 0x4c]
add esp, 4
mov ecx, dword [ebp - 0x54]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
mov eax, ecx
cmp edx, 0x1000
jb 0x451223
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x451223
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0076e8f3
add esp, 8
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x7c]
call fcn.00404490
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x451275
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0xc4]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0xa0], 0
mov dword [ebp - 4], 0x1b
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x451294
mov edx, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 0x2c
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
int3