Function at 0x41fd10
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x456d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push str.BuildJobChildProcList_n
push 0
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x248], 1
mov dword [ebp - 0x234], 0
call fcn.0041a380
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 8
push str.Kernel32.DLL
call edi
mov ebx, eax
mov dword [ebp - 0x24c], ebx
test ebx, ebx
jne 0x41fd84
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push ebx
call esi
push str.Process32First
push ebx
mov dword [0x4593b4], eax
call esi
push str.Process32Next
push ebx
mov dword [0x4593b8], eax
call esi
mov dword [0x4593bc], eax
test eax, eax
je 0x41ffcd
cmp dword [0x4593b8], 0
je 0x41ffcd
mov eax, dword [0x4593b4]
test eax, eax
je 0x41ffcd
push 0
push 2
call eax
mov dword [ebp - 0x238], eax
cmp eax, 0xffffffff
je 0x41ffcd
push str.psapi.dll
call edi
mov edi, eax
mov dword [ebp - 0x244], edi
test edi, edi
je 0x41fe4a
push str.EnumProcessModules
push edi
call esi
mov dword [0x4593c0], eax
test eax, eax
jne 0x41fe23
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.getprocaddress_for_EnumProcessModules_failed_with__d_n
push 0
call fcn.0041a380
add esp, 0xc
push 0x447400
push edi
call esi
mov dword [0x4593c4], eax
test eax, eax
jne 0x41fe4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.getprocaddress_for_GetModuleBaseName_failed_with__d_n
push 0
call fcn.0041a380
add esp, 0xc
push 0x128
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.0042bf20
add esp, 0xc
mov dword [ebp - 0x230], 0x128
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x238]
call dword [0x4593b8]
test eax, eax
je 0x41ff97
mov ebx, dword [ebp - 0x238]
xor edi, edi
lea ecx, [ecx]
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp + 0xc]
je 0x41ff4f
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41ff4f
lea eax, [ebp - 0x248]
push eax
push 4
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [0x4593c0]
test eax, eax
je 0x41fef9
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x23c]
push esi
call dword [0x4593c4]
lea eax, [ebp - 0x108]
push eax
push str.filename___s_n
jmp 0x41ff05
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.enumProcessModules_failed_with__d_n
push 0
call fcn.0041a380
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x240]
push esi
call dword [sym.imp.KERNEL32.dll_IsProcessInJob]
test eax, eax
je 0x41ff48
cmp dword [ebp - 0x250], 0
je 0x41ff48
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x228]
push edi
call fcn.0041fc90
add esp, 0xc
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x128
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.0042bf20
add esp, 0xc
mov dword [ebp - 0x230], 0x128
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [0x4593bc]
test eax, eax
jne 0x41fe90
mov ebx, dword [ebp - 0x24c]
mov dword [ebp - 0x234], edi
mov edi, dword [ebp - 0x244]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x41ffa4
push edi
call esi
push ebx
call esi
push str.Exit_BuildJobChildProcList_n
push 1
call fcn.0041a380
mov eax, dword [ebp - 0x234]
add esp, 8
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004265fb
mov esp, ebp
pop ebp
ret