Function at 0x410050
Capabilities:
Set current directory

Disassembly:
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 0
push 0x44aa58
mov ecx, 0x44acc0
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 [0x44acc4]
test eax, eax
jne 0x410078
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.imagehlp.dll_MakeSureDirectoryPathExists]
mov eax, dword [0x44acc4]
test eax, eax
jne 0x41008d
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 ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [0x44acc4]
mov esi, 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]
test eax, eax
je 0x4100a9
mov esi, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
cmp ebx, 0xfffffffd
jbe 0x4100c4
call ebp
mov edi, dword [0x44acb4]
test edi, edi
je 0x4100f0
mov al, byte [edi - 1]
test al, al
je 0x4100f0
cmp al, 0xff
je 0x4100f0
test ebx, ebx
jne 0x41011e
dec al
push ebx
mov ecx, 0x44acb0
mov byte [edi - 1], 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_]
jmp 0x41014f
test ebx, ebx
jne 0x410103
push 1
mov ecx, 0x44acb0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x41014f
mov eax, dword [0x44acbc]
cmp eax, 0x1f
ja 0x410111
cmp eax, ebx
jae 0x410130
push 1
mov ecx, 0x44acb0
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 ebx
mov ecx, 0x44acb0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edi, dword [0x44acb4]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x44acb4]
mov dword [0x44acb8], ebx
mov byte [eax + ebx], 0
mov edi, 0x446b28
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
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]
mov ecx, dword [0x44acb8]
sub edx, ecx
cmp edx, esi
ja 0x410176
call ebp
test esi, esi
jbe 0x41021b
mov eax, dword [0x44acb8]
lea ebx, [eax + esi]
cmp ebx, 0xfffffffd
jbe 0x41018d
call ebp
mov edx, dword [0x44acb4]
test edx, edx
je 0x4101bc
mov al, byte [edx - 1]
test al, al
je 0x4101bc
cmp al, 0xff
je 0x4101bc
test ebx, ebx
jne 0x4101dd
dec al
push ebx
mov ecx, 0x44acb0
mov byte [edx - 1], 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_]
pop edi
pop esi
pop ebp
pop ebx
ret
test ebx, ebx
jne 0x4101d5
test edx, edx
je 0x41021b
push ebx
mov ecx, 0x44acb0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
pop edi
pop esi
pop ebp
pop ebx
ret
cmp dword [0x44acbc], ebx
jae 0x4101ef
push ebx
mov ecx, 0x44acb0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edx, dword [0x44acb4]
mov eax, dword [0x44acb8]
mov ecx, esi
mov esi, 0x446b28
lea edi, [edx + eax]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x44acb4]
mov dword [0x44acb8], ebx
mov byte [eax + ebx], 0
pop edi
pop esi
pop ebp
pop ebx
ret