Function at 0x403800
Capabilities:
Check for peb beingdebugged flag
Enumerate processes
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x42ae60
push eax
mov eax, 0x227c
mov dword fs:[0], esp
call fcn.0042a8a0
mov al, byte [esp + 2]
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x7c], edi
mov byte [esp + 0x1c], al
call fcn.0041cf40
xor ebp, ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov cl, byte [esp + 0x12]
mov dword [esp + 0x2294], ebp
mov byte [esp + 0x4c], cl
lea ecx, [esp + 0x50]
call fcn.0041cf40
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
lea edx, [esp + 0x1f8]
mov byte [esp + 0x2294], 1
push edx
mov byte [esp + 0x17], 0
mov dword [esp + 0x1fc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x208], 2
sete bl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
lea edx, [esp + 0x88]
push eax
lea ecx, [edi + 0x28]
push edx
call fcn.00405050
test bl, bl
jne 0x403b67
push ebp
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0xd0], 0x128
jne 0x403948
mov eax, dword [esp + 0x78]
mov byte [esp + 0x2294], bl
cmp eax, ebp
je 0x40391d
lea ecx, [esp + 0x4c]
call fcn.00404bc0
cmp dword [esp + 0x78], ebp
jne 0x40390e
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2294], 0xffffffff
cmp eax, ebp
je 0x404109
lea ecx, [esp + 0x1c]
call fcn.00404b00
cmp dword [esp + 0x48], ebp
jne 0x403934
jmp 0x404109
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xd0]
push eax
push ecx
call sub.KERNEL32.dll_Process32First
mov ebx, dword [esp + 0x229c]
mov esi, eax
mov ecx, ebx
call fcn.00417010
cmp esi, ebp
mov esi, dword [esp + 0x14]
je 0x403b54
cmp dword [esp + 0xe8], ebp
je 0x403b3e
lea edx, [esp + 0xd8]
lea eax, [esp + 0x88]
push edx
push eax
lea ecx, [edi + 0x28]
call fcn.00405050
cmp dword [esp + 0x78], ebp
je 0x4039e3
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
cmp ecx, edx
je 0x4039e3
lea eax, [ecx + 4]
cmp eax, edx
mov dword [esp + 0x68], eax
jne 0x4039d4
lea edx, [esp + 0xd8]
push edx
push ecx
call fcn.00406760
add esp, 8
lea ecx, [esp + 0x4c]
call fcn.00405360
jmp 0x403a0a
cmp ecx, ebp
je 0x403a0a
mov eax, dword [esp + 0xd8]
mov dword [ecx], eax
jmp 0x403a0a
lea ecx, [esp + 0x4c]
call fcn.00405360
mov eax, dword [esp + 0x68]
lea edx, [esp + 0xd8]
mov ecx, eax
add eax, 4
push edx
push ecx
mov dword [esp + 0x70], eax
call fcn.00406760
add esp, 8
mov eax, dword [esp + 0x78]
push ebp
inc eax
lea ecx, [esp + 0x94]
mov dword [esp + 0x7c], eax
mov al, byte [esp + 0x16]
mov byte [esp + 0x94], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edi, [esp + 0xf4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xf8]
push ecx
lea ecx, [esp + 0x98]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [esp + 0x48]
mov byte [esp + 0x2294], 2
cmp eax, ebp
je 0x403aa0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
cmp ecx, edx
je 0x403aa0
lea eax, [ecx + 0x10]
cmp eax, edx
mov dword [esp + 0x38], eax
jne 0x403a96
lea edx, [esp + 0x90]
push edx
push ecx
call fcn.004065f0
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.00405360
jmp 0x403ac7
lea eax, [esp + 0x90]
push eax
jmp 0x403abe
lea ecx, [esp + 0x1c]
call fcn.00405360
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x90]
mov ecx, eax
add eax, 0x10
mov dword [esp + 0x38], eax
push edx
push ecx
call fcn.004065f0
add esp, 8
mov eax, dword [esp + 0x48]
push 1
inc eax
lea ecx, [esp + 0x94]
mov dword [esp + 0x4c], eax
mov byte [esp + 0x2298], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [esp + 0xf4]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x2294], 3
call sub.MFC42.DLL_CString::MakeLower
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x84], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebx
call fcn.00416a80
lea ecx, [esp + 0x14]
mov byte [esp + 0x13], 1
mov byte [esp + 0x2294], 1
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x7c]
lea eax, [esp + 0xd0]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
cmp eax, ebp
jne 0x403976
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call fcn.004170a0
jmp 0x403eeb
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
cmp esi, ebp
jne 0x403bd3
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebp
jne 0x403bd3
mov eax, dword [esp + 0x78]
mov byte [esp + 0x2294], 0
cmp eax, ebp
je 0x403ba8
lea ecx, [esp + 0x4c]
call fcn.00404bc0
cmp dword [esp + 0x78], ebp
jne 0x403b99
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2294], 0xffffffff
cmp eax, ebp
je 0x404109
lea ecx, [esp + 0x1c]
call fcn.00404b00
cmp dword [esp + 0x48], ebp
jne 0x403bbf
jmp 0x404109
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push esi
call edi
push str.EnumProcessModules
push esi
mov ebp, eax
call edi
mov ebx, eax
push str.GetModuleFileNameExA
push esi
mov dword [esp + 0xa8], ebx
call edi
test ebp, ebp
mov dword [esp + 0x80], eax
je 0x4040bd
test ebx, ebx
je 0x4040bd
test eax, eax
je 0x4040bd
lea ecx, [esp + 0x84]
lea edx, [esp + 0x28c]
push ecx
push 0x1000
push edx
call ebp
test eax, eax
jne 0x403c83
mov byte [esp + 0x2294], al
mov eax, dword [esp + 0x78]
test eax, eax
je 0x403c56
lea ecx, [esp + 0x4c]
call fcn.00404bc0
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x403c45
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2294], 0xffffffff
test eax, eax
je 0x404109
lea ecx, [esp + 0x1c]
call fcn.00404b00
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x403c6d
jmp 0x404109
mov ebx, dword [esp + 0x229c]
mov esi, dword [esp + 0x84]
mov ecx, ebx
shr esi, 2
call fcn.00417010
test esi, esi
jbe 0x403ee2
lea ebp, [esp + 0x28c]
mov dword [esp + 0x18], esi
mov eax, dword [ebp]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x403ed0
lea ecx, [esp + 0x84]
lea edx, [esp + 0x128c]
push ecx
push 0x1000
push edx
push esi
call dword [esp + 0xb0]
test eax, eax
je 0x403ec9
mov ecx, dword [esp + 0x128c]
lea eax, [esp + 0xd0]
push 0x104
push eax
push ecx
push esi
call dword [esp + 0x90]
test eax, eax
je 0x403ec9
lea edx, [esp + 0xd0]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x2294], 4
call sub.MFC42.DLL_CString::MakeLower
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0xd0], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebx
call fcn.00416a80
lea ecx, [esp + 0x14]
mov byte [esp + 0x13], 1
mov byte [esp + 0x2294], 1
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0x88]
push ebp
push ecx
lea ecx, [edx + 0x28]
call fcn.00405050
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x88]
push eax
push ecx
lea ecx, [esp + 0x98]
call fcn.0041e3b0
mov eax, dword [esp + 0x78]
test eax, eax
je 0x403dcb
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
cmp ecx, edx
je 0x403dcb
lea eax, [ecx + 4]
push ebp
cmp eax, edx
mov dword [esp + 0x6c], eax
push ecx
jne 0x403de3
call fcn.00406760
add esp, 8
lea ecx, [esp + 0x4c]
call fcn.00405360
jmp 0x403deb
lea ecx, [esp + 0x4c]
call fcn.00405360
mov eax, dword [esp + 0x68]
push ebp
mov ecx, eax
add eax, 4
mov dword [esp + 0x6c], eax
push ecx
call fcn.00406760
add esp, 8
mov edx, dword [esp + 0x78]
push 0
inc edx
lea ecx, [esp + 0xb0]
mov dword [esp + 0x7c], edx
mov dl, byte [esp + 0x16]
mov byte [esp + 0xb0], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edi, [esp + 0xd0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xd0]
push ecx
push eax
lea ecx, [esp + 0xb4]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [esp + 0x48]
mov byte [esp + 0x2294], 5
test eax, eax
je 0x403e82
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
cmp ecx, edx
je 0x403e82
lea eax, [ecx + 0x10]
cmp eax, edx
mov dword [esp + 0x38], eax
jne 0x403e78
lea edx, [esp + 0xac]
push edx
push ecx
call fcn.004065f0
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.00405360
jmp 0x403ea9
lea eax, [esp + 0xac]
push eax
jmp 0x403ea0
lea ecx, [esp + 0x1c]
call fcn.00405360
mov eax, dword [esp + 0x38]
lea edx, [esp + 0xac]
mov ecx, eax
add eax, 0x10
mov dword [esp + 0x38], eax
push edx
push ecx
call fcn.004065f0
add esp, 8
mov ecx, dword [esp + 0x48]
push 1
inc ecx
mov byte [esp + 0x2298], 1
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0xb0]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
add ebp, 4
dec eax
mov dword [esp + 0x18], eax
jne 0x403cae
mov ecx, ebx
call fcn.004170a0
xor ebp, ebp
cmp dword [esp + 0x48], ebp
jne 0x403f3b
mov eax, dword [esp + 0x78]
mov byte [esp + 0x2294], 0
cmp eax, ebp
je 0x403f10
lea ecx, [esp + 0x4c]
call fcn.00404bc0
cmp dword [esp + 0x78], ebp
jne 0x403f01
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2294], 0xffffffff
cmp eax, ebp
je 0x404109
lea ecx, [esp + 0x1c]
call fcn.00404b00
cmp dword [esp + 0x48], ebp
jne 0x403f27
jmp 0x404109
mov al, byte [esp + 0x12]
push ebp
lea ecx, [esp + 0xc0]
mov byte [esp + 0xc0], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x48]
mov byte [esp + 0x2294], 6
cmp eax, ebp
je 0x40405f
mov esi, dword [esp + 0x22a8]
mov edi, dword [esp + 0x22a4]
mov ebx, dword [esp + 0x22a0]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [esp + 0x28]
mov edx, dword [ecx]
lea ecx, [esp + 0xbc]
push edx
push ebp
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [esp + 0x28]
push ebp
mov ecx, eax
add eax, 0x10
mov dword [esp + 0x2c], eax
call fcn.004067c0
mov eax, dword [esp + 0x48]
dec eax
mov dword [esp + 0x48], eax
je 0x403fc3
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
cmp ecx, eax
jne 0x403fcc
lea ecx, [esp + 0x1c]
call fcn.0041c180
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x78]
mov edx, dword [eax]
add eax, 4
dec ecx
mov dword [esp + 0xa8], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x78], ecx
je 0x403ff1
cmp eax, dword [esp + 0x54]
jne 0x403ffa
lea ecx, [esp + 0x4c]
call fcn.0041c180
lea eax, [esp + 0x12]
lea ecx, [esp + 0xa4]
push eax
lea edx, [esp + 0xc0]
push ecx
mov ecx, dword [esp + 0x84]
push edx
call fcn.00403780
test al, al
je 0x404055
mov eax, dword [edi + 8]
lea ecx, [esp + 0xa8]
push ecx
push eax
mov ecx, edi
call fcn.004054c0
mov eax, dword [ebx + 8]
lea edx, [esp + 0xa4]
push edx
push eax
mov ecx, ebx
call fcn.004054c0
mov eax, dword [esi + 8]
lea ecx, [esp + 0x12]
push ecx
push eax
mov ecx, esi
call fcn.00405660
cmp dword [esp + 0x48], ebp
jne 0x403f7d
push 1
lea ecx, [esp + 0xc0]
mov byte [esp + 0x2298], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x78]
mov byte [esp + 0x2294], 0
cmp eax, ebp
je 0x404095
lea ecx, [esp + 0x4c]
call fcn.00404bc0
cmp dword [esp + 0x78], ebp
jne 0x404086
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2294], 0xffffffff
cmp eax, ebp
je 0x4040b7
lea ecx, [esp + 0x1c]
call fcn.00404b00
cmp dword [esp + 0x48], ebp
jne 0x4040a8
mov al, byte [esp + 0x13]
jmp 0x40410b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x78]
mov byte [esp + 0x2294], 0
test eax, eax
je 0x4040e5
lea ecx, [esp + 0x4c]
call fcn.00404bc0
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x4040d4
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2294], 0xffffffff
test eax, eax
je 0x404109
lea ecx, [esp + 0x1c]
call fcn.00404b00
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x4040f8
xor al, al
mov ecx, dword [esp + 0x228c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2288
ret 0x10