Function at 0x407170
Capabilities:
Create directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x414514
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0x41b248
lea eax, [esi + 0x40]
push eax
lea eax, [esp + 0x58]
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0xc
mov eax, dword [esp + 0x54]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x278], ebp
jne 0x4071bd
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 ebx, dword [sym.imp.MSVCRT.dll__mkdir]
push eax
call ebx
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.MSVCRT.dll_time]
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.MSVCRT.dll_localtime]
mov edx, eax
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x7d]
mov byte [esp + 0x7c], 0
add esp, 0xc
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x54]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 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]
cmp ecx, ebp
jne 0x407205
mov ecx, edi
mov eax, dword [esp + 0x54]
cmp eax, ebp
jne 0x40720f
mov eax, edi
push ecx
mov ecx, dword [edx + 4]
push ecx
mov ecx, dword [edx + 8]
push ecx
mov ecx, dword [edx + 0xc]
push ecx
mov ecx, dword [edx + 0x10]
mov edx, dword [edx + 0x14]
inc ecx
add edx, 0x76c
push ecx
push edx
push eax
lea eax, [esp + 0x8c]
push 0x41b228
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x94]
push ecx
call ebx
add esp, 0x18
lea edx, [esp + 0x23]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
push 0x41b210
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
lea eax, [esp + 0x28]
push eax
call fcn.0040bfd0
add esp, 0x14
mov edx, 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 + 0x20]
mov byte [esp + 0x278], 1
mov edx, dword [edx]
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 ecx, esi
call fcn.0040d4b0
mov eax, dword [esi]
push ebp
mov ecx, esi
call dword [eax + 4]
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x27c], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor ebx, ebx
mov eax, dword [esi + 0xc8]
xor edi, edi
cmp eax, edi
je 0x407464
mov ecx, dword [esi + 0xcc]
sub ecx, eax
sar ecx, 4
cmp ebx, ecx
jae 0x407464
add eax, ebp
lea edx, [esp + 0x28]
push eax
lea eax, [esi + 0x40]
push eax
push edx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 0xc
mov al, byte [esp + 0x13]
push edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x27c], 2
mov byte [esp + 0x1c], 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 + 0x70]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x20]
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 edx, 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 [esi + 0xc8]
add eax, ebp
mov byte [esp + 0x278], 3
mov ecx, dword [edx]
push ecx
push 0
push eax
lea ecx, [esp + 0x24]
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__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push ebx
lea ecx, [esi + 0xc4]
call fcn.00409cf0
push eax
lea edx, [esp + 0x17]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
push 0x41b200
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
lea eax, [esp + 0x74]
push eax
call fcn.0040bfd0
add esp, 0x14
lea ecx, [esp + 0x3c]
push eax
push ecx
mov byte [esp + 0x284], 4
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 0xc
mov edx, 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 + 0x278], 5
mov ecx, dword [edx]
push ecx
push 0
push eax
lea ecx, [esi + 0x20]
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 ecx, esi
call fcn.0040d4b0
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 4]
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x27c], 4
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 byte [esp + 0x278], 3
push 1
lea ecx, [esp + 0x64]
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 + 0x18]
push 1
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, esi
call fcn.004091c0
test al, al
mov byte [esp + 0x278], 2
push 1
lea ecx, [esp + 0x1c]
je 0x40742c
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 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x27c], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
inc ebx
add ebp, 0x10
jmp 0x4072b0
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 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x27c], 0
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 1
lea ecx, [esp + 0x54]
mov dword [esp + 0x27c], 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_]
xor al, al
jmp 0x4077a6
mov al, byte [esp + 0x280]
test al, al
je 0x40770a
mov dword [esp + 0x14], edi
xor ebx, ebx
mov eax, dword [esi + 0xc8]
cmp eax, edi
je 0x40770a
mov edx, dword [esi + 0xcc]
sub edx, eax
mov eax, dword [esp + 0x14]
sar edx, 4
cmp eax, edx
jae 0x40770a
mov eax, dword [esi + 0xc8]
lea ebp, [esi + 0x40]
add eax, ebx
push eax
lea eax, [esp + 0x2c]
push ebp
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
push 0x41b1f0
lea ecx, [esp + 0x48]
push ebp
push ecx
mov byte [esp + 0x290], 6
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0x18
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x278], 7
cmp eax, edi
jne 0x4074e5
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 dword [sym.imp.MSVCRT.dll__mkdir]
mov edx, 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 [esi + 0xc8]
add esp, 4
add eax, ebx
mov ecx, dword [edx]
push ecx
push edi
push eax
lea ecx, [esp + 0x44]
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__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 0x41b1e4
lea edx, [esp + 0x17]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
push 0x41b200
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
lea eax, [esp + 0x74]
push eax
call fcn.0040bfd0
add esp, 0x14
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x284], 8
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0xc
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0x27c], 0xa
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 edx, 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 [esi + 0xc8]
add eax, ebx
mov ecx, dword [edx]
push ecx
push edi
push eax
lea ecx, [esp + 0x24]
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__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [esp + 0x18]
mov eax, dword [edx]
push eax
push edi
push ecx
lea ecx, [esi + 0x20]
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 ecx, esi
call fcn.0040d4b0
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esp + 0x3c]
cmp eax, edi
jne 0x4075b2
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 dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
lea eax, [esp + 0x38]
lea ecx, [esp + 0x28]
push 1
push eax
push ecx
mov ecx, esi
call fcn.004091c0
test al, al
je 0x407682
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x4075fc
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4075f3
cmp al, 0xff
je 0x4075f3
dec al
mov byte [ecx], al
jmp 0x4075fc
push ecx
call fcn.004134f0
add esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], edi
cmp eax, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
je 0x40762d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x407624
cmp al, 0xff
je 0x407624
dec al
mov byte [ecx], al
jmp 0x40762d
push ecx
call fcn.004134f0
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x3c], edi
cmp ecx, edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov byte [esp + 0x278], 0
je 0x407665
mov al, byte [ecx - 1]
test al, al
je 0x40765b
cmp al, 0xff
je 0x40765b
dec al
mov byte [ecx - 1], al
jmp 0x407665
dec ecx
push ecx
call fcn.004134f0
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], edi
inc ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x14], ecx
add ebx, 0x10
jmp 0x407479
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x27c], 7
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 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x27c], 6
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 + 0x2c]
cmp ecx, edi
je 0x4076ce
mov al, byte [ecx - 1]
test al, al
je 0x4076c4
cmp al, 0xff
je 0x4076c4
dec al
mov byte [ecx - 1], al
jmp 0x4076ce
dec ecx
push ecx
call fcn.004134f0
add esp, 4
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x2c], edi
cmp ecx, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
je 0x407703
mov al, byte [ecx - 1]
test al, al
je 0x4076f9
cmp al, 0xff
je 0x4076f9
dec al
mov byte [ecx - 1], al
xor al, al
jmp 0x4077a6
dec ecx
push ecx
call fcn.004134f0
add esp, 4
xor al, al
jmp 0x4077a6
sub esp, 0x10
lea edx, [esp + 0x23]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
push 0x41b1d0
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
lea eax, [esp + 0x70]
push eax
call fcn.0040bfd0
add esp, 0x14
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 + 0x278], 0xb
mov edx, dword [ecx]
lea ecx, [esi + 0x20]
push edx
push edi
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 ecx, esi
call fcn.0040d4b0
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esp + 0x64]
cmp eax, edi
je 0x407780
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x407777
cmp al, 0xff
je 0x407777
dec al
mov byte [ecx], al
jmp 0x407780
push ecx
call fcn.004134f0
add esp, 4
mov ecx, dword [esp + 0x54]
cmp ecx, edi
je 0x4077a4
mov al, byte [ecx - 1]
test al, al
je 0x40779a
cmp al, 0xff
je 0x40779a
dec al
mov byte [ecx - 1], al
jmp 0x4077a4
dec ecx
push ecx
call fcn.004134f0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x270]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x26c
ret 4