Function at 0x4151b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4661b8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x489d38]
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 eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x68], ebx
cmp eax, 0x201
ja 0x4153c8
je 0x4153a8
cmp eax, 0x1c
je 0x41538f
cmp eax, 0x113
je 0x415245
cmp eax, 0x200
jne 0x4154f6
cmp dword [esi + 0x284], 0
je 0x4154f6
mov eax, ebx
shr eax, 0x10
movzx ecx, bx
push eax
push ecx
lea ecx, [ebp - 0x74]
call fcn.00423975
mov ecx, dword [esi + 0x284]
push eax
call fcn.0041b1d0
jmp 0x4154f6
cmp edi, 0x46b4
jne 0x4152bb
push 0x469a24
lea ecx, [ebp - 0x48]
call fcn.00401a10
push str.process
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0
call fcn.00401a10
push 0x46ab38
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00401a10
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 2
call fcn.00412200
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.00417860
lea ecx, [ebp - 0x64]
call fcn.00417860
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.00417860
jmp 0x4154f6
cmp edi, 0x46b6
jne 0x41530f
call fcn.00413640
test al, al
jne 0x415303
push 0
call fcn.004521db
push eax
call fcn.0045247b
add esp, 8
call fcn.0045248d
cdq
mov ecx, 0x1e
idiv ecx
push 0
add edx, ecx
imul edx, edx, 0xea60
push edx
push edi
mov ecx, esi
call fcn.0042dc10
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, esi
call fcn.00413dd0
jmp 0x4154f6
cmp edi, 0x46b7
jne 0x415363
call fcn.00413660
test al, al
jne 0x415357
push 0
call fcn.004521db
push eax
call fcn.0045247b
add esp, 8
call fcn.0045248d
cdq
mov ecx, 0x1e
idiv ecx
push 0
add edx, ecx
imul edx, edx, 0xea60
push edx
push edi
mov ecx, esi
call fcn.0042dc10
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, esi
call fcn.00413f40
jmp 0x4154f6
cmp edi, 0x46b5
jne 0x4154f6
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4154f6
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp byte [esi + 0x29e], 0
jne 0x4154f6
push ebx
push edi
call fcn.00412dd0
jmp 0x4154f6
movzx eax, bx
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 0x29c], 1
mov dword [esi + 0x294], eax
mov dword [esi + 0x298], ecx
jmp 0x4154f6
sub eax, 0x202
je 0x415494
sub eax, 0xf1fe
je 0x415433
sub eax, 4
jne 0x4154f6
mov byte [esi + 0x2a0], al
test edi, edi
je 0x4154f6
cmp dword [edi + 0x10], eax
je 0x415428
mov ecx, dword [esi + 0x2a4]
mov edx, dword [ecx + 0x10]
mov ebx, dword [edx - 0xc]
push edi
call fcn.00413bd0
test ebx, ebx
je 0x41541e
mov ecx, esi
call fcn.0042dc10
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x415425
mov ecx, esi
call fcn.00412fb0
mov ebx, dword [ebp - 0x68]
cmp dword [edi + 0x14], 0x10
jb 0x415478
mov eax, dword [edi]
push eax
jmp 0x415470
mov byte [esi + 0x29f], 0
test edi, edi
je 0x41544c
cmp dword [edi + 0x10], 0
je 0x41544c
push edi
call fcn.00415120
jmp 0x41545f
mov edx, dword [esi + 0x27c]
mov eax, dword [edx + 8]
lea ecx, [esi + 0x27c]
push 4
call eax
test edi, edi
je 0x4154f6
cmp dword [edi + 0x14], 0x10
jb 0x415478
mov ecx, dword [edi]
push ecx
call fcn.0044faa7
add esp, 4
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
push edi
mov byte [edi], 0
call fcn.0044faa7
add esp, 4
jmp 0x4154f6
mov edx, ebx
shr edx, 0x10
movzx eax, bx
push edx
push eax
lea ecx, [ebp - 0x6c]
call fcn.00423975
mov ecx, dword [esi + 0x284]
test ecx, ecx
je 0x4154c8
lea edx, [ebp - 0x6c]
push edx
call fcn.004023c0
mov ecx, dword [esi + 0x284]
lea eax, [ebp - 0x6c]
push eax
call fcn.004031e0
cmp byte [esi + 0x29c], 0
je 0x4154e7
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x6c]
push ecx
push edx
mov ecx, esi
mov byte [esi + 0x29c], 0
call fcn.00412f00
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
push eax
push ecx
mov ecx, esi
call fcn.00413a20
mov edx, dword [ebp + 8]
push ebx
push edi
push edx
mov ecx, esi
call fcn.00422560
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.004501e2
mov esp, ebp
pop ebp
ret 0xc