Function at 0x40e9a0
Capabilities:
Check for peb beingdebugged flag
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41e809
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x428230]
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push 0x40
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int_]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x10
mov edi, edi
cmp dword [esp + 0x38], edi
mov eax, dword [esp + 0x24]
jae 0x40e9fe
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x38]
push eax
call esi
test eax, eax
jne 0x40ea1e
mov ecx, dword [esp + 0x34]
lea edx, [ecx + ecx]
push edx
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int_]
jmp 0x40e9f0
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int_]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::iterator___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
mov esi, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x24]
add esi, 2
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::iterator___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
mov edi, dword [esp + 0x54]
mov ebx, dword [eax]
lea edx, [esp + 0x10]
push edx
mov ecx, edi
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::iterator___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::end_void_]
mov ebp, dword [eax]
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::iterator___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
mov ecx, dword [esp + 0x50]
mov eax, dword [eax]
push ecx
push esi
push ebx
push ebp
push eax
mov ecx, edi
call fcn.0040d310
mov ecx, dword [esp + 0x58]
push edi
call dword [0x420324]
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x20]
mov byte [edx], 1
mov dword [esp + 0x48], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x30]
pop ebx
call fcn.0041d44e
add esp, 0x3c
ret