Function at 0x4061c0
Capabilities:
Terminate process

Disassembly:
mov eax, 0x1110
call fcn.00408fb0
cmp dword [0x41d23c], 0x7fffffff
push ebx
mov ebx, dword [esp + 0x1118]
jne 0x4061e8
xor al, al
pop ebx
add esp, 0x1110
ret
mov eax, ebx
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4061f0
sub eax, ebx
sar eax, 1
sub eax, 1
cmp eax, 4
push esi
push edi
jb 0x40626c
mov ecx, dword [0x41d27c]
mov esi, ebx
mov edi, 4
sub esi, ecx
jmp 0x406220
movzx eax, word [esi + ecx]
cmp ax, 0x41
jb 0x406233
cmp ax, 0x5a
ja 0x406233
add eax, 0x20
movzx edx, ax
movzx eax, word [ecx]
cmp ax, 0x41
jb 0x406248
cmp ax, 0x5a
ja 0x406248
add eax, 0x20
add ecx, 2
sub edi, 1
movzx eax, ax
je 0x406258
cmp dx, ax
je 0x406220
movzx eax, ax
movzx ecx, dx
sub ecx, eax
jne 0x40626c
add ebx, 8
mov dword [esp + 0x1120], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebp
mov esi, 0x100000
push esi
push 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
push 0
mov ebp, eax
push esi
push ebp
push 0x10
mov dword [esp + 0x24], ebp
call dword [0x41d29c]
cmp eax, 0xc0000004
jne 0x4062eb
nop
push ebp
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esi, 0x100000
cmp esi, 0x10000000
jg 0x4065c6
test esi, esi
je 0x4062d2
push esi
push 0
call ebx
push eax
call edi
mov ebp, eax
mov dword [esp + 0x14], eax
jmp 0x4062d8
xor ebp, ebp
mov dword [esp + 0x14], ebp
push 0
push esi
push ebp
push 0x10
call dword [0x41d29c]
cmp eax, 0xc0000004
je 0x4062a0
test eax, eax
jge 0x406308
push ebp
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebp
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x1110
ret
push esi
call fcn.00407b40
add esp, 4
cmp dword [0x41d2ac], 0
mov dword [esp + 0x18], 0
jne 0x40632d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x41d2ac], eax
mov edx, dword [0x41d23c]
mov eax, dword [ebp]
push edx
push eax
call fcn.00407b40
xor ebx, ebx
add esp, 8
cmp dword [ebp], ebx
jbe 0x4064d0
mov ebp, dword [esp + 0x14]
add ebp, 4
jmp 0x406360
movzx ecx, byte [ebp + 4]
cmp ecx, dword [0x41d23c]
jne 0x4064bc
movzx edx, word [ebp]
cmp edx, dword [0x41d2ac]
je 0x4064bc
mov esi, dword [0x41d278]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, word [ebp]
cmp eax, edi
je 0x4064bc
push eax
push 0
push 0x40
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4064bc
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
movzx ecx, word [ebp + 6]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4064bc
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x4064b5
mov eax, dword [0x41d2a4]
test eax, eax
je 0x4064b5
mov edx, dword [esp + 0x10]
push 0
push 0x400
lea ecx, [esp + 0x928]
push ecx
push edx
call eax
test eax, eax
je 0x4064a6
cmp eax, 4
lea esi, [esp + 0x920]
jb 0x406453
mov ecx, dword [0x41d27c]
mov eax, 4
mov edx, esi
call fcn.00404a00
test eax, eax
jne 0x406453
lea esi, [esp + 0x928]
mov edx, dword [esp + 0x1124]
mov eax, esi
call fcn.004049b0
test eax, eax
jne 0x4064b5
movzx edx, word [ebp]
movzx eax, dx
cmp eax, dword [0x41d280]
je 0x4065b6
mov esi, dword [esp + 0x18]
xor cl, cl
xor eax, eax
test esi, esi
jbe 0x406498
cmp word [esp + eax*2 + 0x20], dx
jne 0x40648d
mov cl, 1
add eax, 1
cmp eax, esi
jb 0x406484
test cl, cl
jne 0x4064b5
mov word [esp + esi*2 + 0x20], dx
add esi, 1
mov dword [esp + 0x18], esi
jmp 0x4064b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407b40
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov edx, dword [esp + 0x14]
add ebx, 1
add ebp, 0x10
cmp ebx, dword [edx]
jb 0x406360
mov ebp, edx
xor edi, edi
cmp dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0x400
mov dword [esp + 0x10], edi
jbe 0x4066a3
jmp 0x4064f0
movzx ebx, word [esp + edi*2 + 0x20]
push ebx
call fcn.00407b40
add esp, 4
cmp dword [0x41d2a8], 0
je 0x40665b
push ebx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40664c
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x124]
push edx
push 0
push esi
mov dword [esp + 0x2c], 0x400
call dword [0x41d2a8]
test eax, eax
jne 0x406554
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407b40
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x120]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406562
mov eax, 0x41b030
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x406572
sub eax, 0x41b030
lea edx, [esp + 0x120]
sub ecx, edx
sar eax, 1
sar ecx, 1
sub eax, 1
sub ecx, 1
cmp ecx, eax
jae 0x4065d3
mov eax, edx
jmp 0x4065a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4065a0
lea edx, [esp + 0x120]
sub eax, edx
jmp 0x4065f0
mov eax, dword [esp + 0x10]
push eax
call edi
mov eax, dword [esp + 0x14]
call fcn.00404d30
pop ebp
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x1110
ret
mov eax, 0x41b030
jmp 0x4065e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4065e0
sub eax, 0x41b030
sar eax, 1
sub eax, 1
test eax, eax
je 0x406696
xor edx, edx
nop
movzx ecx, word [esp + edx + 0x120]
cmp cx, 0x41
jb 0x406617
cmp cx, 0x5a
ja 0x406617
add ecx, 0x20
movzx esi, cx
movzx ecx, word [edx + 0x41b030]
cmp cx, 0x41
jb 0x406630
cmp cx, 0x5a
ja 0x406630
add ecx, 0x20
add edx, 2
sub eax, 1
movzx ecx, cx
je 0x406640
cmp si, cx
je 0x406600
movzx edx, cx
movzx eax, si
sub eax, edx
je 0x406696
jmp 0x40665b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407b40
add esp, 4
lea ecx, [esp + 0x120]
push ecx
push ebx
call fcn.00407b40
add esp, 8
push ebx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x406696
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x40668f
add dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 1
cmp edi, dword [esp + 0x18]
jb 0x4064f0
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esp + 0x18]
pop ebp
xor eax, eax
cmp dword [esp + 0xc], edx
pop edi
pop esi
sete al
pop ebx
add esp, 0x1110
ret