Function at 0x4e6970
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61ff9a
mov eax, dword fs:[0]
push eax
sub esp, 0x594
mov eax, dword [0x659af8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x58c], edi
test esi, esi
jne 0x4e69b3
call fcn.00508580
mov ecx, dword [0x65dfd8]
mov eax, ecx
shr eax, 8
and al, 1
je 0x4e69de
cmp dword [0x65e008], 0
je 0x4e69de
test cl, 1
jne 0x4e7690
cmp byte [ebp + 0x10], 0
je 0x4e76c2
test cl, 1
jne 0x4e7690
xorps xmm0, xmm0
mov dword [0x65e004], 0
movups xmmword [ebp - 0x440], xmm0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
mov eax, dword [0x65dfec]
shr eax, 0x1f
mov dword [ebp - 4], 0
test al, al
je 0x4e6a64
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x438], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 0x434], eax
lea ecx, [ebp - 0x440]
mov eax, dword [0x65dfec]
and eax, 0x3fffffff
push eax
call fcn.00505e60
push 0x9c
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x5a0], esi
test esi, esi
jne 0x4e6a93
push 0x12
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov dword [esi], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4e6ac5
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
push 1
push 0
call fcn.00608c4d
call fcn.004c50b0
mov ecx, 0x27
mov dword [ebp - 0x59c], eax
lea edi, [eax + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov esi, eax
mov ecx, esi
call fcn.004d30d0
mov ecx, esi
call fcn.004d30a0
push dword [ebp - 0x5a0]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.004c4e10
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
push 0
mov dword [ebp - 0x5a0], edi
mov dword [0x65fc6c], ecx
mov dword [edi + 0x1c0], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esi + 0x28], eax
mov eax, 0x601
cmp word [esi + 6], ax
push 0x400
setae al
mov byte [edi + 0x2d1], al
mov eax, 0x602
cmp word [esi + 6], ax
mov esi, 0x65dfd8
push 0
setae al
mov byte [edi + 0x2d2], al
lea eax, [ebp - 0x410]
sub esi, dword [0x65dff8]
push eax
call fcn.0060a6d0
add esp, 0xc
lea eax, [ebp - 0x410]
push 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [ebp - 0x59c]
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [eax + 8]
mov dword [eax + 0x24], esi
call fcn.00524ac0
push 0x128
lea eax, [ebp - 0x568]
mov byte [ebp - 0x56c], 0
push 0
push eax
call fcn.0060a6d0
xor eax, eax
cmp byte [ebp - 0x56c], al
setne al
push eax
lea eax, [ebp - 0x568]
push eax
call fcn.00535af0
lea eax, [ebp - 0x540]
mov byte [ebp - 4], 1
push eax
xor eax, eax
mov dword [ebp - 0x424], 0x74e3a5d6
cmp byte [ebp - 0x56c], al
mov dword [ebp - 0x420], 0x18e3f236
setne al
mov dword [ebp - 0x41c], 0xa4ccaba6
push eax
mov dword [ebp - 0x418], 0x73699576
push 0x10
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x568]
push eax
call fcn.005364a0
lea eax, [ebp - 0x56c]
xorps xmm0, xmm0
push 0x65dfd8
push eax
movups xmmword [ebp - 0x540], xmm0
call fcn.004cdf40
mov ecx, dword [0x65dfd8]
add esp, 0x30
mov eax, ecx
shr eax, 1
test al, 1
jne 0x4e6c68
xor dword [0x65f669], 0xd6a5e374
or ecx, 2
mov dword [0x65dfd8], ecx
lea eax, [ebp - 0x568]
mov byte [ebp - 4], 2
push eax
call fcn.00536010
mov dword [ebp - 0x414], 0
mov eax, dword [0x65f638]
push 0x24
mov byte [ebp - 4], 3
lea esi, [eax + 0x65dfd8]
call fcn.006084b7
mov ecx, eax
add esp, 8
mov dword [ebp - 0x594], ecx
mov byte [ebp - 4], 4
test ecx, ecx
je 0x4e6ccb
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
movups xmmword [ecx + 0x10], xmm0
mov dword [ecx + 0x20], 0
mov eax, dword [0x65f634]
add eax, esi
push eax
call fcn.00523e80
jmp 0x4e6ccd
xor eax, eax
mov esi, dword [ebp - 0x414]
mov dword [ebp - 0x590], eax
mov byte [ebp - 4], 3
cmp eax, esi
je 0x4e6cfd
test esi, esi
je 0x4e6cfd
mov ecx, esi
call fcn.004c0710
push 0x24
push esi
call fcn.006084e7
mov eax, dword [ebp - 0x590]
add esp, 8
push eax
mov ecx, edi
mov dword [ebp - 0x414], eax
call fcn.004cfb80
test al, al
jne 0x4e6d21
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [0x65dfd8]
shr eax, 0xa
test al, 1
je 0x4e6d98
cmp dword [edi + 0x450], 0
je 0x4e6d98
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x430]
call fcn.00526470
lea eax, [ebp - 0x588]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x430]
call fcn.005267f0
add eax, 4
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x4e6d6d
mov eax, dword [eax]
mov esi, dword [edi + 0x450]
mov ecx, esi
push eax
call dword [0x6504ac]
call esi
lea ecx, [ebp - 0x588]
call fcn.004c06a0
lea ecx, [ebp - 0x430]
mov byte [ebp - 4], 3
call fcn.004c06a0
call fcn.004c4ea0
mov edi, eax
mov eax, dword [0x65fac0]
mov dword [ebp - 0x598], edi
mov dword [ebp - 0x590], eax
test eax, eax
jne 0x4e6e02
push 0x650
call fcn.006084b7
mov esi, eax
add esp, 4
mov dword [ebp - 0x594], esi
mov byte [ebp - 4], 7
test esi, esi
je 0x4e6df1
push 0x650
push 0
push esi
call fcn.0060a6d0
add esp, 0xc
push edi
call fcn.004c5130
push eax
mov ecx, esi
call fcn.004dcb60
jmp 0x4e6df3
xor eax, eax
mov dword [ebp - 0x590], eax
mov byte [ebp - 4], 3
mov dword [0x65fac0], eax
mov ecx, dword [0x65f5ec]
test ecx, 0x800000
jne 0x4e6e61
lea ecx, [eax + 0xa8]
call fcn.004d11c0
int3
mov ecx, dword [ebp - 0x59c]
call fcn.004d3000
lea eax, [ebp - 0x414]
mov ecx, edi
push eax
push 0x65dfd8
call fcn.004cd120
test dword [0x65f5ec], 0x800000
jne 0x4e6eb5
mov eax, dword [0x65fac0]
add eax, 0xa8
mov ecx, eax
mov dword [ebp - 0x590], eax
call fcn.004d11c0
invalid
push 0x65dfd8
mov ecx, edi
call fcn.004de530
test al, al
jne 0x4e6fb6
mov eax, dword [0x65dfd8]
or eax, 1
mov dword [0x65dfd8], eax
shr eax, 8
test al, 1
je 0x4e6ef0
push dword [ebp - 0x58c]
call fcn.004e7a40
add esp, 4
jmp 0x4e6f8d
mov edi, dword [0x65fc48]
test edi, edi
je 0x4e6f16
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x6504ac]
mov ecx, edi
call esi
mov dword [0x65fc48], 0
mov edi, dword [0x65fc54]
test edi, edi
je 0x4e6f3c
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x6504ac]
mov ecx, edi
call esi
mov dword [0x65fc54], 0
mov edi, dword [0x65fc64]
test edi, edi
je 0x4e6f62
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x6504ac]
mov ecx, edi
call esi
mov dword [0x65fc64], 0
mov edi, dword [0x65fc40]
test edi, edi
je 0x4e6f88
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x6504ac]
mov ecx, edi
call esi
mov dword [0x65fc40], 0
call fcn.004e4b20
mov esi, dword [ebp - 0x414]
mov edi, dword [0x65dffc]
test esi, esi
je 0x4e6faf
mov ecx, esi
call fcn.004c0710
push 0x24
push esi
call fcn.006084e7
add esp, 8
mov eax, edi
jmp 0x4e7672
mov eax, dword [edi + 0xe4]
shr eax, 8
test al, 1
jne 0x4e7008
mov eax, dword [edi + 0xe0]
shr eax, 0x17
test al, 1
jne 0x4e7008
mov edi, dword [ebp - 0x5a0]
cmp dword [edi + 0x2e8], 0
je 0x4e7008
mov esi, dword [edi + 0x2f0]
mov ecx, esi
push 0
call dword [0x6504ac]
call esi
mov esi, dword [edi + 0x2e8]
mov ecx, esi
push 0x4e78c0
push 1
call dword [0x6504ac]
call esi
test dword [0x65f5ec], 0x800000
jne 0x4e7038
mov eax, dword [0x65fac0]
add eax, 0xa8
mov ecx, eax
mov dword [ebp - 0x58c], eax
call fcn.004d11c0
invalid
mov esi, dword [ebp - 0x598]
mov ecx, esi
push 0x65dfd8
call fcn.004dfcd0
call fcn.00504530
test dword [0x65f5ec], 0x800000
jne 0x4e7084
mov esi, dword [0x65fac0]
lea ecx, [esi + 0xa8]
call fcn.004d11c0
lea ecx, [esi + 0xa8]
mov byte [5], 5
call fcn.004d1250
mov esi, dword [ebp - 0x598]
mov eax, dword [esi + 0xe0]
mov edi, dword [0x65fc3c]
shr eax, 0x11
and eax, 0xffffff01
mov dword [ebp - 0x58c], eax
test edi, edi
jne 0x4e716c
push 0x24
call fcn.006084b7
mov edi, eax
add esp, 4
mov dword [ebp - 0x594], edi
mov byte [ebp - 4], 8
test edi, edi
je 0x4e7160
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movups xmmword [edi + 0x10], xmm0
mov dword [edi + 0x20], 0
call fcn.004c5130
lea esi, [edi + 0x14]
mov dword [edi], 0x498f0c
mov dword [edi + 0x10], eax
push 0x7c
mov dword [ebp - 0x590], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006084b7
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x1c]
mov byte [ebp - 4], 9
push 0x18
mov dword [ebp - 0x590], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006084b7
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov esi, dword [ebp - 0x598]
mov dword [edi + 4], 0xffffffff
mov dword [edi + 8], 0
mov word [edi + 0xc], 1
jmp 0x4e7162
xor edi, edi
mov byte [ebp - 4], 3
mov dword [0x65fc3c], edi
push dword [0x65f9d9]
mov ecx, esi
push dword [0x65f9dd]
call fcn.004cce00
push eax
mov eax, dword [ebp - 0x58c]
mov ecx, edi
xor al, 1
movzx eax, al
push eax
push dword [0x65f9e1]
call fcn.004d2060
mov ecx, esi
mov dword [0x65f9e1], 0
mov dword [0x65f9d9], 0
call fcn.004cb5b0
mov eax, dword [esi + 0xe4]
mov ecx, esi
shr eax, 8
not al
and al, 1
push 0
movzx eax, al
push eax
call fcn.004cce10
mov eax, dword [esi + 0xe0]
shr eax, 2
test al, 1
je 0x4e7368
mov edi, dword [0x65fc74]
test edi, edi
jne 0x4e7329
push 0x50
call fcn.006084b7
mov edi, eax
add esp, 4
mov dword [ebp - 0x594], edi
mov byte [ebp - 4], 0xa
test edi, edi
je 0x4e731d
push 0x50
push 0
push edi
call fcn.0060a6d0
add esp, 0xc
mov dword [edi], 0x498f1c
lea ecx, [edi + 4]
mov word [ecx + 0x18], 0
call fcn.004d11f0
lea esi, [edi + 0x20]
mov byte [ebp - 4], 0xb
push 0x278
mov dword [ebp - 0x58c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006084b7
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x28]
mov byte [ebp - 4], 0xc
push 0x278
mov dword [ebp - 0x58c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006084b7
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea esi, [edi + 0x40]
mov byte [ebp - 4], 0xe
push 0x30
mov dword [ebp - 0x58c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006084b7
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x48]
mov byte [ebp - 4], 0xf
push 0x30
mov dword [ebp - 0x58c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006084b7
add esp, 0x10
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov esi, dword [ebp - 0x598]
mov dword [edi + 0x30], 0
jmp 0x4e731f
xor edi, edi
mov byte [ebp - 4], 3
mov dword [0x65fc74], edi
push dword [0x65fa11]
mov ecx, esi
push dword [0x65fa15]
call fcn.004cce00
push eax
push dword [0x65f614]
mov ecx, edi
call fcn.004ec460
mov dword [0x65f614], 0
mov dword [0x65fa11], 0
mov dword [0x65fa15], 0
mov ecx, dword [esi + 0xe0]
mov eax, ecx
shr eax, 3
test al, 1
je 0x4e73d3
mov eax, dword [0x65fc68]
shr ecx, 0x12
and ecx, 0xffffff01
mov dword [ebp - 0x58c], ecx
test eax, eax
jne 0x4e73d0
push 0x50
call fcn.006084b7
mov edi, eax
add esp, 4
mov dword [ebp - 0x594], edi
mov byte [ebp - 4], 0x10
test edi, edi
je 0x4e73bf
push 0x50
push 0
push edi
call fcn.0060a6d0
add esp, 0xc
mov ecx, edi
call fcn.004e40a0
jmp 0x4e73c1
xor eax, eax
mov ecx, dword [ebp - 0x58c]
mov byte [ebp - 4], 3
mov dword [0x65fc68], eax
mov byte [eax + 5], cl
test dword [0x65f5ec], 0x800000
jne 0x4e740a
mov eax, dword [0x65fac0]
add eax, 0xa8
mov ecx, eax
mov dword [ebp - 0x58c], eax
call fcn.004d11c0
in ax, 0x64
mov ecx, dword [ebp - 0x58c]
call fcn.004d1250
mov esi, dword [ebp - 0x598]
mov edi, dword [0x65fc5c]
test edi, edi
jne 0x4e7472
push 0x2c
call fcn.006084b7
mov edi, eax
add esp, 4
mov dword [ebp - 0x594], edi
mov byte [ebp - 4], 0x11
test edi, edi
je 0x4e7466
push 0x2c
push 0
push edi
call fcn.0060a6d0
add esp, 0xc
mov ecx, edi
call fcn.005264d0
mov dword [edi], 0x498f14
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
jmp 0x4e7468
xor edi, edi
mov byte [ebp - 4], 3
mov dword [0x65fc5c], edi
mov eax, dword [0x65fa21]
mov ecx, dword [esi + 0x110]
mov dword [ebp - 0x594], eax
mov eax, dword [0x65fa1d]
mov dword [ebp - 0x590], eax
mov eax, dword [0x65fa19]
mov dword [ebp - 0x58c], eax
movzx eax, word [0x65f669]
push eax
call fcn.00523e50
mov ecx, edi
mov esi, eax
call fcn.00527c70
push esi
lea ecx, [ebp - 0x430]
call fcn.00526470
lea eax, [ebp - 0x430]
mov byte [ebp - 4], 0x12
push eax
mov ecx, edi
call fcn.005266c0
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x4e74e7
cmp dword [edi + 0x18], 0x10
lea eax, [edi + 4]
jb 0x4e74df
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
mov eax, dword [ebp - 0x58c]
lea ecx, [ebp - 0x430]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x590]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x594]
mov dword [edi + 0x28], eax
mov byte [ebp - 4], 3
call fcn.004c06a0
mov edx, dword [0x65fa25]
mov eax, edx
shr eax, 0x1c
test al, 1
je 0x4e7535
mov ecx, dword [0x661a6c]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
inc dword [eax + 8]
test dword [0x65f5ec], 0x800000
mov dword [0x65fa1d], 0
mov dword [0x65fa21], 0
jne 0x4e757e
mov esi, dword [0x65fac0]
lea ecx, [esi + 0xa8]
call fcn.004d11c0
lea ecx, [esi + 0xa8]
mov byte [6], 6
call fcn.004d1250
mov edx, dword [0x65fa25]
and dl, 0x30
cmp dl, 0x20
jne 0x4e75d1
mov eax, dword [ebp - 0x598]
mov eax, dword [eax + 0xe0]
shr eax, 0x13
test al, 1
jne 0x4e75d1
mov eax, dword [ebp - 0x59c]
mov ecx, 0x600
cmp word [eax + 6], cx
jae 0x4e75d1
call fcn.004c50b0
add eax, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x4e75ba
mov eax, dword [eax]
mov esi, dword [ebp - 0x5a0]
push eax
mov esi, dword [esi + 0x1c8]
mov ecx, esi
call dword [0x6504ac]
call esi
call fcn.004c50b0
mov eax, dword [eax + 0x24]
add eax, dword [0x65fa29]
test dword [0x65f5ec], 0x800000
mov dword [0x65dffc], eax
jne 0x4e7615
mov eax, dword [0x65fac0]
add eax, 0xa8
mov ecx, eax
mov dword [ebp - 0x594], eax
call fcn.004d11c0
in ax, 0x64
mov ecx, dword [ebp - 0x594]
call fcn.004d1250
mov eax, dword [0x65dfec]
and eax, 0xc0000000
cmp eax, 0x80000000
jne 0x4e764a
push dword [ebp - 0x43c]
push dword [ebp - 0x434]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [ebp - 0x440]
push dword [ebp - 0x438]
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
or dword [0x65dfd8], 1
mov esi, dword [ebp - 0x414]
test esi, esi
je 0x4e766d
mov ecx, esi
call fcn.004c0710
push 0x24
push esi
call fcn.006084e7
add esp, 8
mov eax, dword [0x65dffc]
xor edx, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00608a00
mov esp, ebp
pop ebp
ret
test al, al
je 0x4e773a
mov edx, dword [0x65dfdc]
mov eax, edx
shr eax, 4
test al, 1
je 0x4e76ca
add edx, edx
mov dword [0x65dffc], 0x4e7aa0
or ecx, 5
mov dword [0x65dfdc], edx
mov dword [0x65dfd8], ecx
mov eax, 0x4e7aa0
cdq
jmp 0x4e7674
test esi, esi
jne 0x4e766d
shr edx, 5
test dl, 1
jne 0x4e766d
mov eax, ecx
and eax, 0x804
cmp eax, 0x804
je 0x4e766d
test byte [0x65f5ec], 0x80
je 0x4e76fb
push edi
call fcn.004e7a40
add esp, 4
jmp 0x4e766d
push 0x1c
lea eax, [ebp - 0x588]
or ecx, 4
push eax
push 0x65dfd8
mov dword [0x65dfd8], ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov esi, dword [0x65dffc]
mov ecx, esi
push edi
push 0
push dword [ebp - 0x584]
call dword [0x6504ac]
call esi
push edi
call fcn.004e7a40
add esp, 4
xor eax, eax
jmp 0x4e7672