Function at 0x45f8f0
Capabilities:
Acquire debug privileges
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464ed0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x47b040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x10]
mov edi, dword [ebx + 0x24]
cmp edi, 0xf
mov esi, dword [ebx + 0x20]
cmova ecx, dword [ebx + 0x10]
cmp esi, 7
jne 0x45f9b4
mov edx, str.sf2.exe
sub esi, 4
jb 0x45f971
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x45f976
add ecx, 4
add edx, 4
sub esi, 4
jae 0x45f960
cmp esi, 0xfffffffc
je 0x45f9aa
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x45f9a3
cmp esi, 0xfffffffd
je 0x45f9aa
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x45f9a3
cmp esi, 0xfffffffe
je 0x45f9aa
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x45f9a3
cmp esi, 0xffffffff
je 0x45f9aa
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x45f9aa
sbb eax, eax
or eax, 1
jmp 0x45f9ac
xor eax, eax
test eax, eax
jne 0x45f9b4
xor al, al
jmp 0x45f9b6
mov al, 1
test al, al
jne 0x460085
mov eax, dword [0x474c8c]
lea esi, [ebx + 0x10]
mov dword [ebp - 0x44], eax
mov ax, word [0x474c90]
mov word [ebp - 0x40], ax
mov al, byte [0x474c92]
mov byte [ebp - 0x3e], al
movups xmm0, xmmword [0x474c74]
movups xmmword [ebp - 0x5c], xmm0
movq xmm0, qword [str.03___65gm:jebGN]
movq qword [ebp - 0x4c], xmm0
cmp edi, 0xf
jbe 0x45f9fb
mov esi, dword [ebx + 0x10]
mov eax, dword [0x53d9f0]
xor edx, edx
movaps xmm6, xmmword [0x475170]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x74], eax
cmp eax, 2
jl 0x45fb21
movaps xmm0, xmmword [0x4751c0]
movaps xmm4, xmmword [0x4750c0]
movaps xmm3, xmmword [0x4754d0]
movaps xmm5, xmmword [0x4750f0]
movaps xmmword [ebp - 0x70], xmm0
mov ecx, dword [ebp - 0x70]
nop dword [eax + eax]
movd xmm0, edx
lea eax, [edx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, ecx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + edx - 0x5c]
xorps xmm2, xmm0
movd xmm0, eax
movd dword [ebp + edx - 0x5c], xmm2
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, ecx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + edx - 0x58]
xorps xmm2, xmm0
movd dword [ebp + edx - 0x58], xmm2
add edx, 8
cmp edx, 0x18
jl 0x45fa40
mov dword [ebp - 0x34], edx
cmp edx, 0x1f
jge 0x45fb4f
mov eax, 0x5397829d
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x34]
movsx eax, al
mov cl, dl
imul eax, eax, 0x31
sub cl, al
add cl, 0x30
xor byte [ebp + edx - 0x5c], cl
inc edx
mov dword [ebp - 0x34], edx
cmp edx, 0x1f
jl 0x45fb21
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.00404fa0
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop word [eax + eax]
lea edx, [ebx + 0x10]
lea ecx, [ebp - 0x6c]
call fcn.00460510
push eax
lea ecx, [ebp - 0x20]
call fcn.00460ac0
mov edx, dword [ebp - 0x6c]
test edx, edx
je 0x45fbf0
mov ecx, dword [ebp - 0x64]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x45fbd1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46004f
push ecx
push edx
call fcn.004617c7
add esp, 8
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
push 0x64
call esi
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
cmp eax, edi
je 0x45fb90
mov esi, eax
cmp esi, edi
je 0x45fc6a
nop dword [eax]
nop dword [eax + eax]
cmp byte [0x474cb9], 0
movq xmm0, qword [0x474cb0]
mov ax, word [0x474cb8]
movq qword [ebp - 0x6c], xmm0
mov word [ebp - 0x64], ax
je 0x45fc53
xor ecx, ecx
mov eax, 0x5397829d
mul ecx
shr edx, 4
movsx eax, dl
mov dl, cl
imul eax, eax, 0x31
sub dl, al
add dl, 0x30
xor byte [ebp + ecx - 0x6c], dl
inc ecx
cmp ecx, 0xa
jl 0x45fc32
movzx eax, word [esi]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00404fa0
add esi, 2
add esp, 8
cmp esi, edi
jne 0x45fc10
movzx esi, word [edi - 2]
lea eax, [ebp - 0x34]
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
push 0x28
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x45fcd6
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 1
push eax
push str.SeDebugPrivilege
push 0
mov dword [ebp - 0x24], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x45fcd1
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x34]
call edi
cmp byte [0x474cd5], 0
movups xmm0, xmmword [0x474cbc]
mov ax, word [0x474cd4]
mov word [ebp - 0x40], ax
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [0x474ccc]
movq qword [ebp - 0x48], xmm0
je 0x45fe4f
xor edx, edx
cmp dword [ebp - 0x74], 2
mov dword [ebp - 0x3c], edx
jl 0x45fe21
movaps xmm0, xmmword [0x4751c0]
movaps xmm4, xmmword [0x4750c0]
movaps xmm3, xmmword [0x4754d0]
movaps xmm5, xmmword [0x4750f0]
movaps xmm6, xmmword [0x475170]
movaps xmmword [ebp - 0x70], xmm0
mov ecx, dword [ebp - 0x70]
nop
movd xmm0, edx
lea eax, [edx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, ecx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + edx - 0x58]
xorps xmm2, xmm0
movd xmm0, eax
movd dword [ebp + edx - 0x58], xmm2
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, ecx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + edx - 0x54]
xorps xmm2, xmm0
movd dword [ebp + edx - 0x54], xmm2
add edx, 8
cmp edx, 0x18
jl 0x45fd40
mov dword [ebp - 0x3c], edx
cmp edx, 0x1a
jge 0x45fe4f
mov eax, 0x5397829d
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x3c]
movsx eax, al
mov cl, dl
imul eax, eax, 0x31
sub cl, al
add cl, 0x30
xor byte [ebp + edx - 0x58], cl
inc edx
mov dword [ebp - 0x3c], edx
cmp edx, 0x1a
jl 0x45fe21
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00404fa0
add esp, 8
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x46001e
cmp byte [0x474de5], 0
movups xmm0, xmmword [0x474dd4]
mov cx, word [0x474de4]
mov word [ebp - 0x40], cx
movups xmmword [ebp - 0x50], xmm0
je 0x45ffdf
xor edx, edx
cmp dword [ebp - 0x74], 2
mov dword [ebp - 0x3c], edx
jl 0x45ffb1
movaps xmm0, xmmword [0x4751c0]
movaps xmm4, xmmword [0x4750c0]
movaps xmm3, xmmword [0x4754d0]
movaps xmm5, xmmword [0x4750f0]
movaps xmm6, xmmword [0x475170]
movaps xmmword [ebp - 0x70], xmm0
mov ecx, dword [ebp - 0x70]
movd xmm0, edx
lea eax, [edx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, ecx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + edx - 0x50]
xorps xmm2, xmm0
movd xmm0, eax
movd dword [ebp + edx - 0x50], xmm2
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, ecx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + edx - 0x4c]
xorps xmm2, xmm0
movd dword [ebp + edx - 0x4c], xmm2
add edx, 8
cmp edx, 0x10
jl 0x45fed0
mov dword [ebp - 0x3c], edx
cmp edx, 0x12
jge 0x45ffdf
mov eax, 0x5397829d
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x3c]
movsx eax, al
mov cl, dl
imul eax, eax, 0x31
sub cl, al
add cl, 0x30
xor byte [ebp + edx - 0x50], cl
inc edx
mov dword [ebp - 0x3c], edx
cmp edx, 0x12
jl 0x45ffb1
lea eax, [ebp - 0x50]
push eax
call fcn.00404fa0
add esp, 4
cmp dword [ebx + 0xc], 2
jne 0x460055
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x60]
sub esp, 0x20
mov ecx, esi
call fcn.0045c530
add esp, 0x20
test al, al
push dword [ebp - 0x60]
jne 0x46006d
call fcn.00461cea
add esp, 4
push esi
call edi
mov byte [ebp - 0x35], 0
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x4604a3
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x46007e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46007e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edx, dword [ebp - 0x60]
push ecx
push dword [ebx + 8]
mov ecx, esi
push dword [ebp - 0x78]
call fcn.0045bcb0
add esp, 0xc
test eax, eax
jmp 0x46000e
call fcn.00461cea
add esp, 4
push esi
call edi
mov byte [ebp - 0x35], 1
jmp 0x460022
push ecx
push edx
jmp 0x46049b
cmp byte [0x474caf], 0
movups xmm0, xmmword [0x474c94]
mov eax, dword [0x474cac]
movaps xmm4, xmmword [0x475170]
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x44], eax
movq xmm0, qword [str.03___65gfg_K_XV]
mov eax, dword [0x53d9f0]
movq qword [ebp - 0x4c], xmm0
je 0x4601ff
xor edx, edx
mov dword [ebp - 0x3c], edx
cmp eax, 2
jl 0x4601d1
movaps xmm0, xmmword [0x4751c0]
movaps xmm5, xmmword [0x4750c0]
movaps xmm3, xmmword [0x4754d0]
movaps xmm6, xmmword [0x4750f0]
movaps xmmword [ebp - 0x70], xmm0
mov ecx, dword [ebp - 0x70]
nop
movd xmm0, edx
lea eax, [edx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm5
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
movd xmm0, ecx
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + edx - 0x5c]
xorps xmm2, xmm0
movd xmm0, eax
movd dword [ebp + edx - 0x5c], xmm2
pshufd xmm2, xmm0, 0
paddd xmm2, xmm5
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
movd xmm0, ecx
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + edx - 0x58]
xorps xmm2, xmm0
movd dword [ebp + edx - 0x58], xmm2
add edx, 8
cmp edx, 0x18
jl 0x4600f0
mov dword [ebp - 0x3c], edx
cmp edx, 0x1c
jge 0x4601ff
mov eax, 0x5397829d
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x3c]
movsx eax, al
mov cl, dl
imul eax, eax, 0x31
sub cl, al
add cl, 0x30
xor byte [ebp + edx - 0x5c], cl
inc edx
mov dword [ebp - 0x3c], edx
cmp edx, 0x1c
jl 0x4601d1
lea eax, [ebp - 0x5c]
push eax
call fcn.00404fa0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
add esp, 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
lea edx, [ebx + 0x10]
lea ecx, [ebp - 0x6c]
call fcn.00460510
push eax
lea ecx, [ebp - 0x20]
call fcn.00460ac0
mov edx, dword [ebp - 0x6c]
test edx, edx
je 0x4602a0
mov ecx, dword [ebp - 0x64]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x460281
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46004f
push ecx
push edx
call fcn.004617c7
add esp, 8
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
push 0x64
call esi
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp edi, eax
je 0x460240
cmp byte [0x474cd5], 0
movups xmm0, xmmword [0x474cbc]
movzx esi, word [eax - 2]
mov ax, word [0x474cd4]
movups xmmword [ebp - 0x58], xmm0
mov word [ebp - 0x40], ax
movq xmm0, qword [0x474ccc]
movq qword [ebp - 0x48], xmm0
je 0x46042f
xor edx, edx
cmp dword [0x53d9f0], 2
mov dword [ebp - 0x3c], edx
jl 0x460401
movaps xmm0, xmmword [0x4751c0]
movaps xmm5, xmmword [0x4750c0]
movaps xmm3, xmmword [0x4754d0]
movaps xmm6, xmmword [0x4750f0]
movaps xmm4, xmmword [0x475170]
movaps xmmword [ebp - 0x70], xmm0
mov ecx, dword [ebp - 0x70]
nop dword [eax]
movd xmm0, edx
lea eax, [edx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm5
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
movd xmm0, ecx
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + edx - 0x58]
xorps xmm2, xmm0
movd xmm0, eax
movd dword [ebp + edx - 0x58], xmm2
pshufd xmm2, xmm0, 0
paddd xmm2, xmm5
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
movd xmm0, ecx
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + edx - 0x54]
xorps xmm2, xmm0
movd dword [ebp + edx - 0x54], xmm2
add edx, 8
cmp edx, 0x18
jl 0x460320
mov dword [ebp - 0x3c], edx
cmp edx, 0x1a
jge 0x46042f
mov eax, 0x5397829d
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x3c]
movsx eax, al
mov cl, dl
imul eax, eax, 0x31
sub cl, al
add cl, 0x30
xor byte [ebp + edx - 0x58], cl
inc edx
mov dword [ebp - 0x3c], edx
cmp edx, 0x1a
jl 0x460401
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00404fa0
add esp, 8
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x46046f
mov edx, dword [ebp - 0x60]
push ecx
push dword [ebx + 8]
mov ecx, esi
push dword [ebp - 0x78]
call fcn.0045bcb0
add esp, 0xc
push esi
test eax, eax
jne 0x4604cf
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x35], 0
test edi, edi
je 0x4604a3
mov ecx, dword [ebp - 0x18]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x460499
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4604c9
push ecx
push edi
call fcn.004617c7
add esp, 8
mov ecx, dword [ebx + 0x24]
cmp ecx, 0xf
jbe 0x4604e5
mov edx, dword [ebx + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4604db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4604db
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x35], 1
jmp 0x460473
push ecx
push edx
call fcn.004617c7
add esp, 8
mov al, byte [ebp - 0x35]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00461666
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret