Function at 0x401eeb
Capabilities:
Get common file path

Disassembly:
mov eax, 0x40e1aa
call fcn.0040dca0
sub esp, 0x41c
mov al, byte [ebp - 0xd]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0x244]
mov dword [esi], 0x40f3ac
push ebx
mov dword [ebp - 0x18], esi
mov byte [ecx], 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 al, byte [ebp - 0xd]
lea ecx, [esi + 0x254]
mov dword [ebp - 4], ebx
push ebx
mov byte [ecx], 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 al, byte [ebp - 0xd]
lea ecx, [esi + 0x264]
mov byte [ebp - 4], 1
push ebx
mov byte [ecx], 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 al, byte [ebp - 0xd]
lea ecx, [esi + 0x274]
mov byte [ebp - 4], 2
push ebx
mov byte [ecx], 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 al, byte [ebp - 0xd]
lea ecx, [esi + 0x2ec]
mov byte [ebp - 4], 3
push ebx
mov byte [ecx], 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 al, byte [ebp - 0xd]
lea ecx, [esi + 0x2fc]
mov byte [ebp - 4], 4
push ebx
mov byte [ecx], 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 al, byte [ebp - 0xd]
lea ecx, [esi + 0x30c]
mov byte [ebp - 4], 5
push ebx
mov byte [ecx], 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 al, byte [ebp - 0xd]
lea ecx, [esi + 0x31c]
mov byte [ebp - 4], 6
push ebx
mov byte [ecx], 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 al, byte [ebp - 0xd]
lea ecx, [esi + 0x330]
mov byte [ebp - 4], 7
push ebx
mov byte [ecx], 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 al, byte [ebp - 0xd]
lea ecx, [esi + 0x344]
mov byte [ebp - 4], 8
push ebx
mov byte [ecx], 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 al, byte [ebp - 0xd]
lea edi, [esi + 0x358]
mov byte [ebp - 4], 9
mov byte [edi], al
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov cl, byte [ebp - 0xd]
lea eax, [esi + 0x368]
mov byte [ebp - 4], 0xa
mov byte [eax], cl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x162c]
mov byte [ebp - 4], 0xb
mov dword [esi + 0x3a0], ebx
push ebx
mov byte [ecx], 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 al, byte [ebp - 0xd]
lea ecx, [esi + 0x163c]
mov byte [ebp - 4], 0xc
push ebx
mov byte [ecx], 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_]
push 0x104
lea eax, [esi + 4]
push ebx
mov byte [ebp - 4], 0xd
push eax
mov dword [esi], 0x40f3a4
call sub.MSVCRT.dll_memset
lea eax, [esi + 1]
mov dword [esi + 0x20c], esi
mov dword [esi + 0x214], eax
inc eax
mov dword [esi + 0x218], eax
inc eax
mov dword [esi + 0x21c], eax
inc eax
mov dword [esi + 0x388], eax
inc eax
mov dword [esi + 0x394], eax
inc eax
mov dword [esi + 0x38c], eax
inc eax
mov dword [esi + 0x390], eax
inc eax
mov dword [esi + 0x398], eax
inc eax
push 0x1ba4
mov dword [esi + 0x39c], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp eax, ebx
mov byte [ebp - 4], 0xe
je 0x4020c6
push esi
mov ecx, eax
call fcn.0040af60
jmp 0x4020c8
xor eax, eax
mov byte [ebp - 4], 0xd
mov dword [esi + 0x2e0], ebx
mov dword [esi + 0x2e8], eax
mov dword [esi + 0x3a4], 1
mov dword [esi + 0x228], ebx
mov byte [esi + 0x23e], bl
mov dword [esi + 0x240], ebx
mov dword [esi + 0x2e4], ebx
mov byte [esi + 0x23c], bl
mov byte [esi + 0x23b], bl
mov byte [esi + 0x23d], bl
mov byte [esi + 0x23a], bl
mov byte [esi + 0x23f], bl
mov byte [esi + 0x239], bl
mov byte [esi + 0x238], bl
mov dword [esi + 0x224], ebx
mov dword [esi + 0x22c], ebx
mov dword [esi + 0x230], ebx
mov dword [esi + 0x234], ebx
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push eax
push ecx
mov ecx, edi
call fcn.00409761
mov eax, dword [esi + 0x370]
mov edx, dword [esi + 0x36c]
lea ecx, [esi + 0x368]
push eax
push edx
call fcn.00409761
mov dword [esi + 0x378], ebx
mov dword [esi + 0x37c], ebx
mov dword [esi + 0x380], ebx
mov dword [esi + 0x384], ebx
mov dword [esi + 0x5cc], ebx
mov dword [esi + 0x3ac], ebx
mov dword [esi + 0x5c8], ebx
mov dword [esi + 0x5d0], ebx
mov byte [esi + 0x11fd], bl
mov byte [esi + 0x11fe], bl
lea edi, [esi + 0x3b8]
mov dword [ebp - 0x14], 2
or dword [edi - 8], 0xffffffff
push 0x104
push ebx
push edi
call sub.MSVCRT.dll_memset
mov dword [edi - 4], ebx
add esp, 0xc
add edi, 0x10c
dec dword [ebp - 0x14]
jne 0x4021ad
mov ecx, esi
call fcn.0040955a
mov ecx, esi
call fcn.0040953e
lea edi, [esi + 0x5d5]
push 0xa28
push ebx
push edi
call sub.MSVCRT.dll_memset
push 0x200
lea eax, [esi + 0xffd]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
push edi
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
pop ecx
mov ecx, esi
call fcn.0040245d
push 0x41223c
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push 0x41223c
lea ecx, [esi + 0x2fc]
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 [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [esi + 0x162c]
push dword [eax]
lea eax, [esi + 0x2ec]
push ebx
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 dword [esi + 0x220], ebx
mov byte [esi + 0x5d4], bl
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [esi + 0x264]
push dword [eax]
lea eax, [esi + 0x2ec]
push ebx
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_]
lea eax, [esi + 0x108]
mov byte [esi + 0x3a8], bl
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [esi + 0x108]
push eax
call dword [sym.imp.MSVCRT.dll__splitpath]
lea eax, [ebp - 0x11c]
push edi
push eax
lea eax, [esi + 0x108]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0x20
mov ecx, esi
mov byte [esi + 0x20b], bl
mov byte [esi + 0x284], bl
call fcn.00409258
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret