Function at 0x40d586
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42858e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28c
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x18], 0
push 0x764
call fcn.0041e0a0
add esp, 4
mov dword [ebp - 0x27c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x27c], 0
je 0x40d5fd
mov ecx, dword [ebp - 0x27c]
call fcn.00403680
mov dword [ebp - 0x290], eax
jmp 0x40d607
mov dword [ebp - 0x290], 0
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x278], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x278]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jne 0x40d630
xor eax, eax
jmp 0x40d9ce
mov ecx, dword [ebp - 0x14]
call fcn.00403b25
test eax, eax
jne 0x40d680
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x284], edx
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x280], eax
cmp dword [ebp - 0x280], 0
je 0x40d66f
push 1
mov ecx, dword [ebp - 0x280]
call fcn.0040e6d0
mov dword [ebp - 0x294], eax
jmp 0x40d679
mov dword [ebp - 0x294], 0
xor eax, eax
jmp 0x40d9ce
mov dword [ebp - 0x26c], 0
jmp 0x40d69b
mov ecx, dword [ebp - 0x26c]
add ecx, 1
mov dword [ebp - 0x26c], ecx
mov edx, dword [0x54531c]
cmp dword [edx + 0x14], 0
jne 0x40d959
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x26c]
cmp ecx, dword [eax + 0x20c]
jae 0x40d959
mov edx, dword [ebp - 0x26c]
imul edx, edx, 0x90
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x208]
cmp dword [ecx + edx + 0x80], 0
je 0x40d6fe
mov edx, dword [ebp - 0x26c]
imul edx, edx, 0x90
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x208]
cmp dword [ecx + edx + 0x84], 0
jne 0x40d700
jmp 0x40d68c
mov edx, dword [ebp - 0x26c]
imul edx, edx, 0x90
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x208]
add ecx, edx
push ecx
push str.Memory___s
lea edx, [ebp - 0x268]
push edx
call fcn.0041e0ae
add esp, 0xc
lea eax, [ebp - 0x268]
push eax
mov ecx, dword [0x54531c]
call fcn.0040204b
mov dword [ebp - 0x270], 0
jmp 0x40d759
mov ecx, dword [ebp - 0x270]
add ecx, 1
mov dword [ebp - 0x270], ecx
mov edx, dword [ebp - 0x26c]
imul edx, edx, 0x90
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x208]
mov eax, dword [ebp - 0x270]
cmp eax, dword [ecx + edx + 0x84]
jae 0x40d954
mov ecx, dword [0x54532c]
add ecx, 1
mov dword [0x54532c], ecx
push 0x551450
lea edx, [ebp - 0x60]
push edx
call fcn.0041dfb0
add esp, 8
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x26c]
imul ecx, ecx, 0x90
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x208]
mov edx, dword [ebp - 0x270]
imul edx, edx, 0x10c
mov eax, dword [eax + ecx + 0x8c]
lea ecx, [eax + edx + 8]
push ecx
call fcn.0040de87
add esp, 8
test eax, eax
jne 0x40d7e3
jmp 0x40d74a
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x1c], 0
mov edx, dword [0x545308]
add edx, 1
mov dword [0x545308], edx
push str..exe
mov eax, dword [ebp - 0x26c]
imul eax, eax, 0x90
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x208]
mov ecx, dword [ebp - 0x270]
imul ecx, ecx, 0x10c
mov edx, dword [edx + eax + 0x8c]
lea eax, [edx + ecx + 8]
push eax
call fcn.004200c0
add esp, 8
test eax, eax
jne 0x40d88e
mov ecx, dword [ebp - 0x26c]
imul ecx, ecx, 0x90
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x208]
mov edx, dword [ebp - 0x270]
imul edx, edx, 0x10c
mov eax, dword [eax + ecx + 0x8c]
add eax, edx
push eax
mov ecx, dword [ebp - 0x26c]
imul ecx, ecx, 0x90
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x208]
add eax, ecx
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00405578
mov dword [ebp - 0x1c], eax
jmp 0x40d8eb
mov ecx, dword [ebp - 0x26c]
imul ecx, ecx, 0x90
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x208]
mov ecx, dword [eax + ecx + 0x80]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x274], eax
cmp dword [ebp - 0x274], 0
jne 0x40d8c9
jmp 0x40d74a
push 0x7777
mov edx, dword [ebp - 0x274]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x40d91a
mov ecx, dword [0x54531c]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx*4 + 0x42d5f0]
push eax
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x268]
push edx
mov ecx, dword [0x54531c]
call fcn.004020b1
jmp 0x40d94f
mov eax, dword [0x54531c]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx*4 + 0x42d5f8]
push edx
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x268]
push ecx
mov ecx, dword [0x54531c]
call fcn.004020b1
mov edx, dword [0x545328]
add edx, 1
mov dword [0x545328], edx
jmp 0x40d74a
jmp 0x40d68c
mov eax, dword [ebp - 0x26c]
imul eax, eax, 0x90
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x208]
mov ecx, dword [ebp - 0x270]
imul ecx, ecx, 0x10c
mov edx, dword [edx + eax + 0x8c]
lea eax, [edx + ecx + 8]
push eax
call fcn.0040ea80
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x28c], ecx
mov edx, dword [ebp - 0x28c]
mov dword [ebp - 0x288], edx
cmp dword [ebp - 0x288], 0
je 0x40d9c1
push 1
mov ecx, dword [ebp - 0x288]
call fcn.0040e6d0
mov dword [ebp - 0x298], eax
jmp 0x40d9cb
mov dword [ebp - 0x298], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret