Function at 0x4e0970
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x619f9a
mov eax, dword fs:[0]
push eax
sub esp, 0x594
mov eax, dword [0x653af8]
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 0x4e09b3
call fcn.00502580
mov ecx, dword [0x657fd8]
mov eax, ecx
shr eax, 8
and al, 1
je 0x4e09de
cmp dword [0x658008], 0
je 0x4e09de
test cl, 1
jne 0x4e1690
cmp byte [ebp + 0x10], 0
je 0x4e16c2
test cl, 1
jne 0x4e1690
xorps xmm0, xmm0
mov dword [0x658004], 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 [0x657fec]
shr eax, 0x1f
mov dword [ebp - 4], 0
test al, al
je 0x4e0a64
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 [0x657fec]
and eax, 0x3fffffff
push eax
call fcn.004ffe60
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 0x4e0a93
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 0x4e0ac5
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.00602c4d
call fcn.004bf0b0
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.004cd0d0
mov ecx, esi
call fcn.004cd0a0
push dword [ebp - 0x5a0]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.004bee10
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
push 0
mov dword [ebp - 0x5a0], edi
mov dword [0x659c6c], 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, 0x657fd8
push 0
setae al
mov byte [edi + 0x2d2], al
lea eax, [ebp - 0x410]
sub esi, dword [0x657ff8]
push eax
call fcn.006046d0
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.0051eac0
push 0x128
lea eax, [ebp - 0x568]
mov byte [ebp - 0x56c], 0
push 0
push eax
call fcn.006046d0
xor eax, eax
cmp byte [ebp - 0x56c], al
setne al
push eax
lea eax, [ebp - 0x568]
push eax
call fcn.0052faf0
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.005304a0
lea eax, [ebp - 0x56c]
xorps xmm0, xmm0
push 0x657fd8
push eax
movups xmmword [ebp - 0x540], xmm0
call fcn.004c7f40
mov ecx, dword [0x657fd8]
add esp, 0x30
mov eax, ecx
shr eax, 1
test al, 1
jne 0x4e0c68
xor dword [0x659669], 0xd6a5e374
or ecx, 2
mov dword [0x657fd8], ecx
lea eax, [ebp - 0x568]
mov byte [ebp - 4], 2
push eax
call fcn.00530010
mov dword [ebp - 0x414], 0
mov eax, dword [0x659638]
push 0x24
mov byte [ebp - 4], 3
lea esi, [eax + 0x657fd8]
call fcn.006024b7
mov ecx, eax
add esp, 8
mov dword [ebp - 0x594], ecx
mov byte [ebp - 4], 4
test ecx, ecx
je 0x4e0ccb
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
movups xmmword [ecx + 0x10], xmm0
mov dword [ecx + 0x20], 0
mov eax, dword [0x659634]
add eax, esi
push eax
call fcn.0051de80
jmp 0x4e0ccd
xor eax, eax
mov esi, dword [ebp - 0x414]
mov dword [ebp - 0x590], eax
mov byte [ebp - 4], 3
cmp eax, esi
je 0x4e0cfd
test esi, esi
je 0x4e0cfd
mov ecx, esi
call fcn.004ba710
push 0x24
push esi
call fcn.006024e7
mov eax, dword [ebp - 0x590]
add esp, 8
push eax
mov ecx, edi
mov dword [ebp - 0x414], eax
call fcn.004c9b80
test al, al
jne 0x4e0d21
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [0x657fd8]
shr eax, 0xa
test al, 1
je 0x4e0d98
cmp dword [edi + 0x450], 0
je 0x4e0d98
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x430]
call fcn.00520470
lea eax, [ebp - 0x588]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x430]
call fcn.005207f0
add eax, 4
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x4e0d6d
mov eax, dword [eax]
mov esi, dword [edi + 0x450]
mov ecx, esi
push eax
call dword [0x64a4ac]
call esi
lea ecx, [ebp - 0x588]
call fcn.004ba6a0
lea ecx, [ebp - 0x430]
mov byte [ebp - 4], 3
call fcn.004ba6a0
call fcn.004beea0
mov edi, eax
mov eax, dword [0x659ac0]
mov dword [ebp - 0x598], edi
mov dword [ebp - 0x590], eax
test eax, eax
jne 0x4e0e02
push 0x650
call fcn.006024b7
mov esi, eax
add esp, 4
mov dword [ebp - 0x594], esi
mov byte [ebp - 4], 7
test esi, esi
je 0x4e0df1
push 0x650
push 0
push esi
call fcn.006046d0
add esp, 0xc
push edi
call fcn.004bf130
push eax
mov ecx, esi
call fcn.004d6b60
jmp 0x4e0df3
xor eax, eax
mov dword [ebp - 0x590], eax
mov byte [ebp - 4], 3
mov dword [0x659ac0], eax
mov ecx, dword [0x6595ec]
test ecx, 0x800000
jne 0x4e0e61
lea ecx, [eax + 0xa8]
call fcn.004cb1c0
int3
mov ecx, dword [ebp - 0x59c]
call fcn.004cd000
lea eax, [ebp - 0x414]
mov ecx, edi
push eax
push 0x657fd8
call fcn.004c7120
test dword [0x6595ec], 0x800000
jne 0x4e0eb5
mov eax, dword [0x659ac0]
add eax, 0xa8
mov ecx, eax
mov dword [ebp - 0x590], eax
call fcn.004cb1c0
invalid
push 0x657fd8
mov ecx, edi
call fcn.004d8530
test al, al
jne 0x4e0fb6
mov eax, dword [0x657fd8]
or eax, 1
mov dword [0x657fd8], eax
shr eax, 8
test al, 1
je 0x4e0ef0
push dword [ebp - 0x58c]
call fcn.004e1a40
add esp, 4
jmp 0x4e0f8d
mov edi, dword [0x659c48]
test edi, edi
je 0x4e0f16
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x64a4ac]
mov ecx, edi
call esi
mov dword [0x659c48], 0
mov edi, dword [0x659c54]
test edi, edi
je 0x4e0f3c
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x64a4ac]
mov ecx, edi
call esi
mov dword [0x659c54], 0
mov edi, dword [0x659c64]
test edi, edi
je 0x4e0f62
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x64a4ac]
mov ecx, edi
call esi
mov dword [0x659c64], 0
mov edi, dword [0x659c40]
test edi, edi
je 0x4e0f88
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x64a4ac]
mov ecx, edi
call esi
mov dword [0x659c40], 0
call fcn.004deb20
mov esi, dword [ebp - 0x414]
mov edi, dword [0x657ffc]
test esi, esi
je 0x4e0faf
mov ecx, esi
call fcn.004ba710
push 0x24
push esi
call fcn.006024e7
add esp, 8
mov eax, edi
jmp 0x4e1672
mov eax, dword [edi + 0xe4]
shr eax, 8
test al, 1
jne 0x4e1008
mov eax, dword [edi + 0xe0]
shr eax, 0x17
test al, 1
jne 0x4e1008
mov edi, dword [ebp - 0x5a0]
cmp dword [edi + 0x2e8], 0
je 0x4e1008
mov esi, dword [edi + 0x2f0]
mov ecx, esi
push 0
call dword [0x64a4ac]
call esi
mov esi, dword [edi + 0x2e8]
mov ecx, esi
push 0x4e18c0
push 1
call dword [0x64a4ac]
call esi
test dword [0x6595ec], 0x800000
jne 0x4e1038
mov eax, dword [0x659ac0]
add eax, 0xa8
mov ecx, eax
mov dword [ebp - 0x58c], eax
call fcn.004cb1c0
invalid
mov esi, dword [ebp - 0x598]
mov ecx, esi
push 0x657fd8
call fcn.004d9cd0
call fcn.004fe530
test dword [0x6595ec], 0x800000
jne 0x4e1084
mov esi, dword [0x659ac0]
lea ecx, [esi + 0xa8]
call fcn.004cb1c0
lea ecx, [esi + 0xa8]
mov byte [5], 5
call fcn.004cb250
mov esi, dword [ebp - 0x598]
mov eax, dword [esi + 0xe0]
mov edi, dword [0x659c3c]
shr eax, 0x11
and eax, 0xffffff01
mov dword [ebp - 0x58c], eax
test edi, edi
jne 0x4e116c
push 0x24
call fcn.006024b7
mov edi, eax
add esp, 4
mov dword [ebp - 0x594], edi
mov byte [ebp - 4], 8
test edi, edi
je 0x4e1160
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movups xmmword [edi + 0x10], xmm0
mov dword [edi + 0x20], 0
call fcn.004bf130
lea esi, [edi + 0x14]
mov dword [edi], 0x492f0c
mov dword [edi + 0x10], eax
push 0x7c
mov dword [ebp - 0x590], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006024b7
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.006024b7
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 0x4e1162
xor edi, edi
mov byte [ebp - 4], 3
mov dword [0x659c3c], edi
push dword [0x6599d9]
mov ecx, esi
push dword [0x6599dd]
call fcn.004c6e00
push eax
mov eax, dword [ebp - 0x58c]
mov ecx, edi
xor al, 1
movzx eax, al
push eax
push dword [0x6599e1]
call fcn.004cc060
mov ecx, esi
mov dword [0x6599e1], 0
mov dword [0x6599d9], 0
call fcn.004c55b0
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.004c6e10
mov eax, dword [esi + 0xe0]
shr eax, 2
test al, 1
je 0x4e1368
mov edi, dword [0x659c74]
test edi, edi
jne 0x4e1329
push 0x50
call fcn.006024b7
mov edi, eax
add esp, 4
mov dword [ebp - 0x594], edi
mov byte [ebp - 4], 0xa
test edi, edi
je 0x4e131d
push 0x50
push 0
push edi
call fcn.006046d0
add esp, 0xc
mov dword [edi], 0x492f1c
lea ecx, [edi + 4]
mov word [ecx + 0x18], 0
call fcn.004cb1f0
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.006024b7
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.006024b7
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.006024b7
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.006024b7
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 0x4e131f
xor edi, edi
mov byte [ebp - 4], 3
mov dword [0x659c74], edi
push dword [0x659a11]
mov ecx, esi
push dword [0x659a15]
call fcn.004c6e00
push eax
push dword [0x659614]
mov ecx, edi
call fcn.004e6460
mov dword [0x659614], 0
mov dword [0x659a11], 0
mov dword [0x659a15], 0
mov ecx, dword [esi + 0xe0]
mov eax, ecx
shr eax, 3
test al, 1
je 0x4e13d3
mov eax, dword [0x659c68]
shr ecx, 0x12
and ecx, 0xffffff01
mov dword [ebp - 0x58c], ecx
test eax, eax
jne 0x4e13d0
push 0x50
call fcn.006024b7
mov edi, eax
add esp, 4
mov dword [ebp - 0x594], edi
mov byte [ebp - 4], 0x10
test edi, edi
je 0x4e13bf
push 0x50
push 0
push edi
call fcn.006046d0
add esp, 0xc
mov ecx, edi
call fcn.004de0a0
jmp 0x4e13c1
xor eax, eax
mov ecx, dword [ebp - 0x58c]
mov byte [ebp - 4], 3
mov dword [0x659c68], eax
mov byte [eax + 5], cl
test dword [0x6595ec], 0x800000
jne 0x4e140a
mov eax, dword [0x659ac0]
add eax, 0xa8
mov ecx, eax
mov dword [ebp - 0x58c], eax
call fcn.004cb1c0
in ax, 0x64
mov ecx, dword [ebp - 0x58c]
call fcn.004cb250
mov esi, dword [ebp - 0x598]
mov edi, dword [0x659c5c]
test edi, edi
jne 0x4e1472
push 0x2c
call fcn.006024b7
mov edi, eax
add esp, 4
mov dword [ebp - 0x594], edi
mov byte [ebp - 4], 0x11
test edi, edi
je 0x4e1466
push 0x2c
push 0
push edi
call fcn.006046d0
add esp, 0xc
mov ecx, edi
call fcn.005204d0
mov dword [edi], 0x492f14
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
jmp 0x4e1468
xor edi, edi
mov byte [ebp - 4], 3
mov dword [0x659c5c], edi
mov eax, dword [0x659a21]
mov ecx, dword [esi + 0x110]
mov dword [ebp - 0x594], eax
mov eax, dword [0x659a1d]
mov dword [ebp - 0x590], eax
mov eax, dword [0x659a19]
mov dword [ebp - 0x58c], eax
movzx eax, word [0x659669]
push eax
call fcn.0051de50
mov ecx, edi
mov esi, eax
call fcn.00521c70
push esi
lea ecx, [ebp - 0x430]
call fcn.00520470
lea eax, [ebp - 0x430]
mov byte [ebp - 4], 0x12
push eax
mov ecx, edi
call fcn.005206c0
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x4e14e7
cmp dword [edi + 0x18], 0x10
lea eax, [edi + 4]
jb 0x4e14df
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.004ba6a0
mov edx, dword [0x659a25]
mov eax, edx
shr eax, 0x1c
test al, 1
je 0x4e1535
mov ecx, dword [0x65ba6c]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
inc dword [eax + 8]
test dword [0x6595ec], 0x800000
mov dword [0x659a1d], 0
mov dword [0x659a21], 0
jne 0x4e157e
mov esi, dword [0x659ac0]
lea ecx, [esi + 0xa8]
call fcn.004cb1c0
lea ecx, [esi + 0xa8]
mov byte [6], 6
call fcn.004cb250
mov edx, dword [0x659a25]
and dl, 0x30
cmp dl, 0x20
jne 0x4e15d1
mov eax, dword [ebp - 0x598]
mov eax, dword [eax + 0xe0]
shr eax, 0x13
test al, 1
jne 0x4e15d1
mov eax, dword [ebp - 0x59c]
mov ecx, 0x600
cmp word [eax + 6], cx
jae 0x4e15d1
call fcn.004bf0b0
add eax, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x4e15ba
mov eax, dword [eax]
mov esi, dword [ebp - 0x5a0]
push eax
mov esi, dword [esi + 0x1c8]
mov ecx, esi
call dword [0x64a4ac]
call esi
call fcn.004bf0b0
mov eax, dword [eax + 0x24]
add eax, dword [0x659a29]
test dword [0x6595ec], 0x800000
mov dword [0x657ffc], eax
jne 0x4e1615
mov eax, dword [0x659ac0]
add eax, 0xa8
mov ecx, eax
mov dword [ebp - 0x594], eax
call fcn.004cb1c0
in ax, 0x64
mov ecx, dword [ebp - 0x594]
call fcn.004cb250
mov eax, dword [0x657fec]
and eax, 0xc0000000
cmp eax, 0x80000000
jne 0x4e164a
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 [0x657fd8], 1
mov esi, dword [ebp - 0x414]
test esi, esi
je 0x4e166d
mov ecx, esi
call fcn.004ba710
push 0x24
push esi
call fcn.006024e7
add esp, 8
mov eax, dword [0x657ffc]
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.00602a00
mov esp, ebp
pop ebp
ret
test al, al
je 0x4e173a
mov edx, dword [0x657fdc]
mov eax, edx
shr eax, 4
test al, 1
je 0x4e16ca
add edx, edx
mov dword [0x657ffc], 0x4e1aa0
or ecx, 5
mov dword [0x657fdc], edx
mov dword [0x657fd8], ecx
mov eax, 0x4e1aa0
cdq
jmp 0x4e1674
test esi, esi
jne 0x4e166d
shr edx, 5
test dl, 1
jne 0x4e166d
mov eax, ecx
and eax, 0x804
cmp eax, 0x804
je 0x4e166d
test byte [0x6595ec], 0x80
je 0x4e16fb
push edi
call fcn.004e1a40
add esp, 4
jmp 0x4e166d
push 0x1c
lea eax, [ebp - 0x588]
or ecx, 4
push eax
push 0x657fd8
mov dword [0x657fd8], ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov esi, dword [0x657ffc]
mov ecx, esi
push edi
push 0
push dword [ebp - 0x584]
call dword [0x64a4ac]
call esi
push edi
call fcn.004e1a40
add esp, 4
xor eax, eax
jmp 0x4e1672