Function at 0x419b90
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 [0x476b20]
push ebx
mov ebx, ecx
mov eax, dword [eax]
push esi
cmp eax, ebx
push edi
jae 0x419ba8
mov ebx, eax
test ebx, ebx
jbe 0x419c06
cmp ebx, ecx
jne 0x419c06
mov eax, dword [0x476b1c]
test eax, eax
jne 0x419bbe
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]
cmp byte [eax - 1], 0xfe
jae 0x419c06
push 1
mov ecx, 0x476b28
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 [0x476b1c]
test eax, eax
jne 0x419bdf
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 ecx, dword [0x476b20]
mov edx, dword [0x476b24]
mov dword [0x476b2c], eax
mov dword [0x476b30], ecx
mov dword [0x476b34], edx
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x419c4a
push 1
push ebx
mov ecx, 0x476b28
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x419c4a
mov esi, dword [0x476b1c]
test esi, esi
jne 0x419c28
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]
mov edi, dword [0x476b2c]
mov ecx, ebx
mov eax, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x476b28
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_]
mov eax, dword [0x476b2c]
test eax, eax
jne 0x419c58
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.KERNEL32.dll_SetCurrentDirectoryA]
mov edi, 0x471cf4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
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 [0x476b20]
sub edx, ecx
cmp edx, esi
ja 0x419c8c
call edi
test esi, esi
jbe 0x419d2c
mov eax, dword [0x476b20]
lea ebx, [eax + esi]
cmp ebx, 0xfffffffd
jbe 0x419ca3
call edi
mov eax, dword [0x476b1c]
test eax, eax
je 0x419cd1
mov cl, byte [eax - 1]
test cl, cl
je 0x419cd1
cmp cl, 0xff
je 0x419cd1
test ebx, ebx
jne 0x419ced
dec cl
push ebx
mov byte [eax - 1], cl
mov ecx, 0x476b18
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 ebx
ret
test ebx, ebx
jne 0x419ce5
test eax, eax
je 0x419d2c
mov dword [0x476b20], ebx
pop edi
mov byte [eax], bl
pop esi
pop ebx
ret
cmp dword [0x476b24], ebx
jae 0x419cfe
push ebx
mov ecx, 0x476b18
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 eax, dword [0x476b1c]
mov edx, dword [0x476b20]
mov ecx, esi
mov esi, 0x471cf4
lea edi, [eax + edx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x476b1c]
mov dword [0x476b20], ebx
mov byte [ecx + ebx], 0
pop edi
pop esi
pop ebx
ret