Function at 0x415180
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4371f0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x446414]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push 0x18
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], edi
call fcn.00420182
add esp, 4
cmp eax, edi
je 0x4153a2
mov dword [eax], eax
mov dword [ebp - 0x24], eax
mov dword [eax + 4], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 4], edi
call fcn.0040f1c0
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
cmp ebx, eax
je 0x415374
jmp 0x4151ea
mov ebx, dword [ebp - 0x14]
xor edi, edi
mov ecx, dword [ebx]
mov edx, dword [ebx + 8]
mov esi, dword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi - 0x10]
mov dword [ebp - 0x40], edx
mov edx, dword [ecx]
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi - 4], edi
lea edx, [esi - 4]
jl 0x415223
cmp eax, dword [esi - 0x10]
jne 0x415223
lea edi, [esi - 0x10]
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x41525b
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x41539d
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00420016
add esp, 0x10
add edi, 0x10
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 1
mov esi, dword [ebx + 0x14]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi - 4], 0
lea edx, [esi - 4]
jl 0x41528e
cmp eax, dword [esi - 0x10]
jne 0x41528e
lea ebx, [esi - 0x10]
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x4152c6
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x41539d
mov eax, dword [esi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.00420016
add esp, 0x10
add ebx, 0x10
mov byte [ebp - 4], 0
cmp dword [ebp - 0x40], 0
mov dword [ebp - 0x34], ebx
je 0x41531f
cmp dword [ebp - 0x3c], 0
je 0x41531f
call fcn.0040f010
push edi
call fcn.0040f0e0
add esp, 4
push eax
push 0
push 0x42b
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x415318
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x415311
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 1
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41533b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415357
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x24]
cmp dword [ebp - 0x14], ecx
jne 0x4151e5
cmp dword [ebp - 0x10], 0
je 0x415374
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebp - 0x24]
call fcn.00412f50
mov edx, dword [ebp - 0x24]
push edx
call fcn.0041fcdf
mov eax, dword [ebp - 0x10]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00402040
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], edi
call fcn.0042028a
push 0x4425bc
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.0042254a
int3