Function at 0x419910
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 [0x478c40]
push ebx
mov ebx, ecx
mov eax, dword [eax]
push esi
cmp eax, ebx
push edi
jae 0x419928
mov ebx, eax
test ebx, ebx
jbe 0x419986
cmp ebx, ecx
jne 0x419986
mov eax, dword [0x478c3c]
test eax, eax
jne 0x41993e
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 0x419986
push 1
mov ecx, 0x478c48
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 [0x478c3c]
test eax, eax
jne 0x41995f
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 [0x478c40]
mov edx, dword [0x478c44]
mov dword [0x478c4c], eax
mov dword [0x478c50], ecx
mov dword [0x478c54], edx
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x4199ca
push 1
push ebx
mov ecx, 0x478c48
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 0x4199ca
mov esi, dword [0x478c3c]
test esi, esi
jne 0x4199a8
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 [0x478c4c]
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, 0x478c48
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 [0x478c4c]
test eax, eax
jne 0x4199d8
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, 0x473ca0
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 [0x478c40]
sub edx, ecx
cmp edx, esi
ja 0x419a0c
call edi
test esi, esi
jbe 0x419aac
mov eax, dword [0x478c40]
lea ebx, [eax + esi]
cmp ebx, 0xfffffffd
jbe 0x419a23
call edi
mov eax, dword [0x478c3c]
test eax, eax
je 0x419a51
mov cl, byte [eax - 1]
test cl, cl
je 0x419a51
cmp cl, 0xff
je 0x419a51
test ebx, ebx
jne 0x419a6d
dec cl
push ebx
mov byte [eax - 1], cl
mov ecx, 0x478c38
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 0x419a65
test eax, eax
je 0x419aac
mov dword [0x478c40], ebx
pop edi
mov byte [eax], bl
pop esi
pop ebx
ret
cmp dword [0x478c44], ebx
jae 0x419a7e
push ebx
mov ecx, 0x478c38
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 [0x478c3c]
mov edx, dword [0x478c40]
mov ecx, esi
mov esi, 0x473ca0
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 [0x478c3c]
mov dword [0x478c40], ebx
mov byte [ecx + ebx], 0
pop edi
pop esi
pop ebx
ret