Function at 0x406400
Capabilities:
Create directory
Delete directory
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x428]
push ebx
lea ebx, [ebp - 0x52c]
sub esp, 0x65c
mov dword [esp + 4], eax
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
sub esp, 8
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea eax, [ebp - 0x324]
sub esp, 8
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll_strcpy]
mov dword [esp + 4], ebx
mov dword [ebp - 0x63c], eax
call eax
lea eax, [ebp - 0x324]
mov ecx, dword [eax]
add eax, 4
lea edx, [ecx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x406460
mov ecx, edx
shr ecx, 0x10
test edx, 0x8080
cmove edx, ecx
lea ecx, [eax + 2]
cmove eax, ecx
mov ebx, edx
add bl, dl
mov ebx, dword [sym.imp.kernel32.dll_CreateDirectoryA]
sbb eax, 3
mov dword [eax], 0x6376736d
mov dword [eax + 4], 0x742d7472
mov dword [eax + 8], 0x5c747365
mov byte [eax + 0xc], 0
lea eax, [ebp - 0x324]
mov dword [esp + 4], 0
mov dword [esp], eax
call ebx
mov dword [ebp - 0x648], 1
sub esp, 8
test eax, eax
jne 0x4064ed
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
setne al
movzx eax, al
mov dword [ebp - 0x648], eax
lea eax, [ebp - 0x324]
lea edi, [ebp - 0x220]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x63c]
mov dword [esp], edi
call eax
mov eax, edi
mov ecx, dword [eax]
add eax, 4
lea edx, [ecx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x40650a
mov ecx, edx
shr ecx, 0x10
test edx, 0x8080
cmove edx, ecx
lea ecx, [eax + 2]
cmove eax, ecx
mov ecx, edx
add cl, dl
mov ecx, 0x5c6c
sbb eax, 3
mov dword [eax], 0x7478656e
mov dword [eax + 4], 0x6576656c
mov word [eax + 8], cx
mov byte [eax + 0xa], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call ebx
mov dword [ebp - 0x64c], 1
sub esp, 8
test eax, eax
jne 0x40658d
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
setne al
movzx eax, al
mov dword [ebp - 0x64c], eax
mov eax, dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov dword [esp], edi
lea esi, [ebp - 0x630]
lea ebx, [ebp - 0x11c]
mov dword [ebp - 0x650], eax
call eax
sub esp, 4
mov dword [esp + 4], 0x154
mov dword [esp], str..._wine_dlls_msvcrt_tests_dir.c
call fcn.0044c860
mov eax, dword [sym.imp.msvcrt.dll__fullpath]
mov dword [esp + 8], 0x104
mov dword [esp + 4], 0x4589e0
mov dword [esp], esi
mov dword [ebp - 0x644], eax
call eax
mov dword [esp + 4], str._fullpath_failed_n
test eax, eax
setne al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x63c]
mov dword [esp], ebx
call eax
mov edx, ebx
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x406609
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
mov ecx, eax
add cl, al
sbb edx, 3
mov dword [edx], 0x74736574
mov byte [edx + 4], 0
mov dword [esp + 4], 0x157
mov dword [esp], str..._wine_dlls_msvcrt_tests_dir.c
call fcn.0044c860
mov eax, dword [sym.imp.msvcrt.dll_strcmp]
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [ebp - 0x640], eax
call eax
mov dword [esp + 8], esi
test eax, eax
mov dword [esp + 4], str.Invalid_Path_returned__s_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x158
mov dword [esp], str..._wine_dlls_msvcrt_tests_dir.c
call fcn.0044c860
mov dword [esp], esi
mov eax, dword [ebp - 0x644]
mov dword [esp + 8], 0x104
mov dword [esp + 4], str._test
call eax
mov dword [esp + 4], str._fullpath_failed_n
test eax, eax
setne al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
movzx eax, word [ebp - 0x220]
mov byte [ebp - 0x119], 0
mov edx, ebx
mov word [ebp - 0x11c], ax
movzx eax, byte [ebp - 0x21e]
mov byte [ebp - 0x11a], al
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x4066f2
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
mov ecx, eax
add cl, al
sbb edx, 3
mov dword [edx], 0x74736574
mov byte [edx + 4], 0
mov dword [esp + 4], 0x15c
mov dword [esp], str..._wine_dlls_msvcrt_tests_dir.c
call fcn.0044c860
mov eax, dword [ebp - 0x640]
mov dword [esp + 4], ebx
mov dword [esp], esi
call eax
mov dword [esp + 8], esi
test eax, eax
mov dword [esp + 4], str.Invalid_Path_returned__s_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x15d
mov dword [esp], str..._wine_dlls_msvcrt_tests_dir.c
call fcn.0044c860
mov dword [esp], esi
mov eax, dword [ebp - 0x644]
mov dword [esp + 8], 0x104
mov dword [esp + 4], str..._test
call eax
mov dword [esp + 4], str._fullpath_failed_n
test eax, eax
setne al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
lea eax, [ebp - 0x324]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x63c]
call eax
mov edx, ebx
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x4067c9
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
mov ecx, eax
add cl, al
sbb edx, 3
mov dword [edx], 0x74736574
mov byte [edx + 4], 0
mov dword [esp + 4], 0x160
mov dword [esp], str..._wine_dlls_msvcrt_tests_dir.c
call fcn.0044c860
mov dword [esp], esi
mov eax, dword [ebp - 0x640]
mov dword [esp + 4], ebx
call eax
mov dword [esp + 8], esi
test eax, eax
mov dword [esp + 4], str.Invalid_Path_returned__s_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x161
mov dword [esp], str..._wine_dlls_msvcrt_tests_dir.c
call fcn.0044c860
mov dword [esp], esi
mov esi, dword [ebp - 0x644]
mov dword [esp + 8], 0xa
mov dword [esp + 4], str..._test
call esi
mov dword [esp + 4], str._fullpath_failed_to_generate_error_n
test eax, eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4589e0
mov dword [esp], 0
call esi
mov dword [esp + 4], 0x164
mov dword [esp], str..._wine_dlls_msvcrt_tests_dir.c
mov esi, eax
call fcn.0044c860
xor eax, eax
test esi, esi
mov dword [esp + 4], str.No_path_returned_n
setne al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x63c]
mov dword [esp], ebx
call eax
mov edx, ebx
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x4068e0
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
mov ecx, eax
add cl, al
sbb edx, 3
mov dword [edx], 0x74736574
mov byte [edx + 4], 0
mov dword [esp + 4], 0x167
mov dword [esp], str..._wine_dlls_msvcrt_tests_dir.c
call fcn.0044c860
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x640]
mov dword [esp], esi
call eax
mov dword [esp + 8], esi
test eax, eax
mov dword [esp + 4], str.Invalid_Path_returned__s_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_free]
lea eax, [ebp - 0x428]
mov dword [esp], eax
mov eax, dword [ebp - 0x650]
call eax
mov edx, dword [ebp - 0x64c]
sub esp, 4
test edx, edx
jne 0x406992
mov eax, dword [ebp - 0x648]
test eax, eax
jne 0x4069a8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
mov eax, dword [ebp - 0x648]
sub esp, 4
test eax, eax
je 0x40698a
lea eax, [ebp - 0x324]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret