Function at 0x401810
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41bb63
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebp
push esi
mov esi, dword [esp + 0x8c]
xor ebp, ebp
push edi
cmp dword [esi + 8], ebp
je 0x401b09
mov eax, dword [esi + 4]
cmp eax, ebp
jne 0x401849
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call edi
cmp eax, 0xffffffff
jne 0x401b09
mov al, byte [esi]
push ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], 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 ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
lea ecx, [esp + 0x10]
push edx
push ebp
push esi
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, [esp + 0xf]
lea ecx, [esp + 0x50]
push eax
mov dword [esp + 0x8c], ebp
call fcn.00402900
mov eax, dword [esp + 0x18]
mov byte [esp + 0x88], 1
cmp eax, ebp
je 0x40191f
mov eax, dword [esp + 0x14]
cmp eax, ebp
jne 0x4018b3
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call edi
cmp eax, 0xffffffff
jne 0x401914
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x54]
call fcn.004029f0
lea edx, [esp + 0x10]
lea eax, [esp + 0x30]
push edx
push eax
call fcn.00401c10
add esp, 8
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 byte [esp + 0x88], 2
mov edx, dword [ecx]
lea ecx, [esp + 0x10]
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_]
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x8c], 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_]
cmp dword [esp + 0x18], ebp
jne 0x4018a6
jmp 0x40191f
and eax, 0x10
cmp al, 0x10
jne 0x401ad3
mov eax, dword [esp + 0x7c]
cmp eax, ebp
je 0x401a2f
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x70]
push 1
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
call fcn.00402dd0
mov esi, dword [eax + 8]
push ebp
lea ecx, [esp + 0x24]
mov dl, byte [esi]
mov byte [esp + 0x24], 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_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [eax]
push ecx
push ebp
push esi
lea ecx, [esp + 0x2c]
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 + 0x24]
mov byte [esp + 0x88], 3
cmp eax, ebp
jne 0x40199e
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ebp
push eax
call edi
test eax, eax
je 0x401a92
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x64]
cmp edx, eax
jne 0x4019bf
lea ecx, [esp + 0x50]
call fcn.00402cc0
cmp dword [esp + 0x7c], ebp
je 0x4019d6
mov ecx, dword [esp + 0x6c]
push ebp
sub ecx, 0x10
mov dword [esp + 0x70], ecx
call fcn.00403050
mov eax, dword [esp + 0x7c]
dec eax
mov dword [esp + 0x7c], eax
jne 0x4019ea
lea ecx, [esp + 0x50]
call fcn.00402cc0
mov eax, dword [esp + 0x24]
mov byte [esp + 0x88], 1
cmp eax, ebp
je 0x401a17
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x401a0e
cmp al, 0xff
je 0x401a0e
dec al
mov byte [ecx], al
jmp 0x401a17
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x24], ebp
cmp eax, ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
jne 0x401931
cmp eax, ebp
mov byte [esp + 0x88], 0
je 0x401a74
mov eax, dword [esp + 0x5c]
push ebp
mov ecx, eax
add eax, 0x10
mov dword [esp + 0x60], eax
call fcn.00403050
mov eax, dword [esp + 0x7c]
dec eax
mov dword [esp + 0x7c], eax
je 0x401a65
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
cmp eax, ecx
jne 0x401a6e
lea ecx, [esp + 0x50]
call fcn.00402d50
cmp dword [esp + 0x7c], ebp
jne 0x401a3b
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
je 0x401b09
mov al, byte [ecx - 1]
test al, al
je 0x401ac7
cmp al, 0xff
je 0x401ac7
dec al
mov byte [ecx - 1], al
jmp 0x401b09
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x8c], 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 + 0x7c]
mov byte [esp + 0x88], 0
cmp eax, ebp
je 0x401af2
lea ecx, [esp + 0x50]
call fcn.00402930
cmp dword [esp + 0x7c], ebp
jne 0x401ab6
jmp 0x401af2
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x401b09
mov eax, dword [esp + 0x7c]
mov byte [esp + 0x88], 0
cmp eax, ebp
je 0x401af2
lea ecx, [esp + 0x50]
call fcn.00402930
cmp dword [esp + 0x7c], ebp
jne 0x401ae3
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x8c], 0xffffffff
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 ecx, dword [esp + 0x80]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x80
ret