Function at 0x478050
Capabilities:
Create directory
Delete directory
Delete file
Get common file path
Read file on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x928]
push ebx
mov esi, dword fs:[0x18]
sub esp, 0x994
mov byte [ebp - 0x95d], 0
mov edi, dword [sym.imp.kernel32.dll_GetTempPathA]
mov dword [ebp - 0x965], 0x6f6d6572
mov dword [ebp - 0x961], 0x656d6576
mov dword [esp + 4], eax
mov dword [esp], 0x104
call edi
sub esp, 8
mov ebx, eax
mov eax, 0x515
call fcn.0045b740
mov eax, dword [esi + 0x34]
mov dword [esp + 4], 0x598124
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.0045bef0
mov eax, 0x516
call fcn.0045b740
xor eax, eax
cmp ebx, 0x103
mov dword [esp + 4], 0x59813c
setbe al
mov dword [esp], eax
call fcn.0045bef0
lea eax, [ebp - 0x720]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x928]
mov dword [esp + 4], 0x59ec58
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
sub esp, 0x10
mov ebx, eax
mov eax, 0x519
call fcn.0045b740
mov eax, dword [esi + 0x34]
mov dword [esp + 4], 0x598160
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.0045bef0
lea eax, [ebp - 0x720]
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x10000000
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
mov dword [ebp - 0x970], eax
call eax
sub esp, 0x1c
mov ebx, eax
mov eax, 0x51e
call fcn.0045b740
xor eax, eax
cmp ebx, 0xffffffff
je 0x4792fc
mov dword [esp], eax
mov dword [esp + 4], str.CREATE_NEW_should_fail_if_file_exists_and_last_error_value_should_be_ERROR_FILE_EXISTS_n
mov esi, dword fs:[0x18]
call fcn.0045bef0
lea eax, [ebp - 0x720]
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x10000000
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
mov eax, dword [ebp - 0x970]
call eax
sub esp, 0x1c
mov ebx, eax
mov eax, 0x524
call fcn.0045b740
mov edx, dword [esi + 0x34]
xor eax, eax
cmp ebx, 0xffffffff
je 0x478229
xor eax, eax
cmp edx, 0xb7
sete al
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.hFile__p__last_error__lu_n
mov esi, dword fs:[0x18]
call fcn.0045bef0
mov eax, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], ebx
mov dword [ebp - 0x97c], eax
call eax
lea eax, [ebp - 0x720]
mov dword [esi + 0x34], 0xdeadbeef
sub esp, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x10000000
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
mov eax, dword [ebp - 0x970]
call eax
sub esp, 0x1c
mov ebx, eax
mov eax, 0x52c
call fcn.0045b740
mov edx, dword [esi + 0x34]
xor eax, eax
cmp ebx, 0xffffffff
je 0x4782c7
xor eax, eax
cmp edx, 0xb7
sete al
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.hFile__p__last_error__lu_n
mov esi, dword fs:[0x18]
call fcn.0045bef0
mov dword [esp], ebx
mov eax, dword [ebp - 0x97c]
call eax
lea eax, [ebp - 0x720]
sub esp, 4
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_DeleteFileA]
mov dword [ebp - 0x974], eax
call eax
sub esp, 4
mov ebx, eax
mov eax, 0x532
call fcn.0045b740
mov eax, dword [esi + 0x34]
mov dword [esp], ebx
mov dword [esp + 4], 0x59878f
mov dword [esp + 8], eax
call fcn.0045bef0
lea eax, [ebp - 0x720]
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x10000000
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
mov eax, dword [ebp - 0x970]
call eax
sub esp, 0x1c
mov ebx, eax
mov eax, 0x537
call fcn.0045b740
mov ecx, dword [esi + 0x34]
xor eax, eax
cmp ebx, 0xffffffff
je 0x478398
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.hFile__p__last_error__lu_n
mov esi, dword fs:[0x18]
call fcn.0045bef0
mov dword [esp], ebx
mov eax, dword [ebp - 0x97c]
call eax
lea eax, [ebp - 0x720]
sub esp, 4
mov dword [esp], eax
mov eax, dword [ebp - 0x974]
call eax
sub esp, 4
mov ebx, eax
mov eax, 0x53d
call fcn.0045b740
mov eax, dword [esi + 0x34]
mov dword [esp], ebx
mov dword [esp + 4], 0x59878f
mov dword [esp + 8], eax
call fcn.0045bef0
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], str.c:.
mov eax, dword [ebp - 0x970]
call eax
sub esp, 0x1c
mov ebx, eax
mov eax, 0x541
call fcn.0045b740
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 4], str.hFile_should_have_been_INVALID_HANDLE_VALUE_n
sete al
mov dword [esp], eax
call fcn.0045bef0
mov eax, 0x542
call fcn.0045b740
mov edx, dword [esi + 0x34]
mov eax, 1
cmp edx, 0x7b
je 0x478495
mov ebx, dword [0x8f0770]
cmp edx, 2
sete cl
xor eax, eax
test ebx, ebx
sete al
and eax, ecx
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.LastError_should_have_been_ERROR_INVALID_NAME_or_ERROR_FILE_NOT_FOUND_but_got__lu_n
call fcn.0045bef0
lea eax, [ebp - 0x61c]
mov dword [esp + 4], 0x104
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
sub esp, 8
mov ebx, eax
mov eax, 0x548
call fcn.0045b740
xor eax, eax
cmp ebx, 0x103
mov dword [esp + 4], 0x597efc
setbe al
mov dword [esp], eax
mov esi, dword fs:[0x18]
call fcn.0045bef0
mov eax, 0x549
call fcn.0045b740
mov eax, dword [esi + 0x34]
mov dword [esp + 4], 0x597f1c
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.0045bef0
lea eax, [ebp - 0x928]
mov dword [esp], 0x104
mov dword [esp + 4], eax
call edi
mov edi, 0x597da0
sub esp, 8
mov ebx, eax
mov eax, 0x54d
call fcn.0045b740
mov eax, dword [esi + 0x34]
mov dword [esp + 4], 0x598124
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.0045bef0
lea eax, [ebp - 0x928]
mov dword [esp + 4], eax
lea eax, [ebp - 0x824]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll_strcpy]
mov dword [ebp - 0x978], eax
call eax
lea eax, [ebp - 0x965]
mov dword [esp + 4], eax
lea eax, [ebp - 0x824]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll_strcat]
mov dword [ebp - 0x980], eax
call eax
lea eax, [ebp - 0x824]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
sub esp, 8
mov ebx, eax
mov eax, 0x551
call fcn.0045b740
mov eax, dword [esi + 0x34]
mov dword [esp], ebx
mov ebx, 0x59eb44
mov dword [esp + 4], str.Createdirectory_failed__gle_ld_n
mov dword [esp + 8], eax
call fcn.0045bef0
lea eax, [ebp - 0x214]
mov dword [esp], 0x104
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x928]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
sub esp, 4
jmp 0x478688
mov edx, dword fs:[0x18]
cmp dword [edx + 0x34], 5
mov dword [ebp - 0x974], edx
jne 0x478726
mov ecx, dword [ebx]
cmp ecx, 5
mov dword [ebp - 0x984], ecx
je 0x478726
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x478a20
mov eax, 0x576
call fcn.0045b740
mov ecx, dword [ebp - 0x984]
mov dword [esp + 0xc], ecx
mov edx, dword [ebp - 0x974]
mov eax, dword [edx + 0x34]
mov dword [esp], str.Either_no_authority_to_volume__or_is_todo_wine_for__s_err_ld_should_be__ld_n
mov dword [esp + 8], eax
lea eax, [ebp - 0x720]
mov dword [esp + 4], eax
call fcn.0045b8a0
mov edi, dword [ebx + 0x10]
add ebx, 0x14
test edi, edi
je 0x478805
cmp byte [edi + 1], 0x3a
mov byte [ebp - 0x720], 0
je 0x4789f0
cmp byte [edi], 0x5c
jne 0x4786a8
cmp byte [edi + 5], 0x3a
je 0x478bd0
lea eax, [ebp - 0x928]
mov dword [esp + 4], eax
lea eax, [ebp - 0x720]
mov dword [esp], eax
mov eax, dword [ebp - 0x978]
call eax
lea eax, [ebp - 0x720]
mov dword [esp + 4], edi
mov dword [esp], eax
mov eax, dword [ebp - 0x980]
call eax
mov dword [esp + 0x18], 0
mov eax, dword [ebx + 8]
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x720]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0xc0000000
mov dword [esp], eax
mov eax, dword [ebp - 0x970]
call eax
sub esp, 0x1c
mov edi, eax
cmp eax, 0xffffffff
je 0x478610
mov eax, dword [ebx + 0xc]
xor edx, edx
test eax, eax
je 0x47873b
mov eax, dword [0x8f0770]
xor edx, edx
test eax, eax
setne dl
mov dword [ebp - 0x974], edx
call fcn.0057d110
mov edx, dword [ebp - 0x974]
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
add ecx, ecx
or ecx, edx
mov dword [eax + 0x10], ecx
jmp 0x478795
xor edx, edx
test eax, eax
sete dl
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x720]
mov dword [esp + 0x10], ecx
mov dword [esp + 8], eax
mov dword [esp], edx
mov dword [esp + 0xc], edi
mov dword [esp + 4], str.CreateFileA_failed_on__s__hFile__p__err_lu__should_be__lu_n
call fcn.0045bef0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
je 0x4787e0
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x57e
mov eax, dword [ebx]
mov ecx, dword [esi + 0x34]
cmp edi, 0xffffffff
jne 0x478760
mov edx, 1
cmp eax, dword [esi + 0x34]
je 0x478767
mov edx, dword [esi + 0x34]
cmp dword [ebx + 4], edx
sete dl
movzx edx, dl
jmp 0x478767
cmp edi, 0xffffffff
je 0x47867a
add ebx, 0x14
mov dword [esp], edi
mov eax, dword [ebp - 0x97c]
call eax
mov edi, dword [ebx - 4]
sub esp, 4
test edi, edi
jne 0x478688
lea eax, [ebp - 0x824]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
sub esp, 4
mov ebx, eax
mov eax, 0x589
call fcn.0045b740
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x34]
mov dword [esp], ebx
mov dword [esp + 4], str.RemoveDirectoryA:_error__ld_n
mov dword [esp + 8], eax
call fcn.0045bef0
lea eax, [ebp - 0x214]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x928]
sub esp, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000000
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
mov eax, dword [ebp - 0x970]
call eax
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
je 0x4788a8
cmp dword [esi + 0x34], 3
jne 0x478bf7
mov eax, 0x5a5
call fcn.0045b740
lea eax, [ebp - 0x928]
mov dword [esp], str.Probable_Win9x__got_ERROR_PATH_NOT_FOUND_w__FILE_FLAG_BACKUP_SEMANTICS_or__s_n
mov dword [esp + 4], eax
call fcn.0045b8a0
mov eax, dword [str._A:]
mov dword [ebp - 0x720], eax
mov eax, dword [0x59eaeb]
mov dword [ebp - 0x71d], eax
movzx eax, byte [ebp - 0x61c]
mov byte [ebp - 0x71c], al
lea eax, [ebp - 0x720]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20000080
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0xc0000000
mov dword [esp], eax
mov eax, dword [ebp - 0x970]
call eax
sub esp, 0x1c
mov edi, eax
cmp eax, 0xffffffff
je 0x478fdf
mov eax, 0x5b6
call fcn.0045b740
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.CreateFileA_did_not_open__s__last_error_lu_n
mov dword [esp], 1
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x720]
mov dword [esp + 8], eax
call fcn.0045bef0
lea eax, [ebp - 0x96c]
mov dword [ebp - 0x96c], 0x200
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x414]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x200
mov dword [ebp - 0x984], eax
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_ReadFile]
mov ecx, dword [0x8f0770]
sub esp, 0x14
mov ebx, eax
mov dword [ebp - 0x974], ecx
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x974]
test ecx, ecx
setne cl
movzx ecx, cl
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x478a87
lea eax, [ebp - 0x720]
mov dword [esp + 4], edi
mov dword [esp], eax
mov eax, dword [ebp - 0x978]
call eax
movzx eax, byte [ebp - 0x61c]
mov byte [ebp - 0x720], al
jmp 0x4786d8
mov eax, 0x578
call fcn.0045b740
lea eax, [ebp - 0x720]
mov dword [esp], str.Do_not_have_authority_to_access_volumes._Test_for__s_skipped_n
mov dword [esp + 4], eax
call fcn.0045b8a0
jmp 0x47867a
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x5bf
lea eax, [ebp - 0x720]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.Failed_to_read_volume__last_error__lu___lu__for__s_n
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.0045bef0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x478a48
test ebx, ebx
jne 0x4793ca
mov dword [esp], edi
mov eax, dword [ebp - 0x97c]
call eax
sub esp, 4
mov eax, dword [str._A:]
mov dword [ebp - 0x720], eax
mov eax, dword [0x59eaeb]
mov dword [ebp - 0x71d], eax
movzx eax, byte [ebp - 0x61c]
mov byte [ebp - 0x71c], al
lea eax, [ebp - 0x720]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov ecx, 0x5c
mov word [ebp + eax - 0x720], cx
lea eax, [ebp - 0x720]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20000080
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0xc0000000
mov dword [esp], eax
mov eax, dword [ebp - 0x970]
call eax
mov esi, dword [0x8f0770]
sub esp, 0x1c
mov ebx, eax
call fcn.0057d110
xor ecx, ecx
mov edx, eax
mov eax, dword [eax + 0x10]
mov dword [edx + 0x14], 1
add eax, eax
test esi, esi
setne cl
or eax, ecx
mov dword [edx + 0x10], eax
mov esi, dword fs:[0x18]
jmp 0x478b8e
lea ecx, [ebp - 0x720]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], str.CreateFileA_should_have_returned_ERROR_PATH_NOT_FOUND_on__s__but_got__lu_n
call fcn.0045bef0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
je 0x478c60
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x5d3
xor eax, eax
mov edx, dword [esi + 0x34]
cmp ebx, 0xffffffff
jne 0x478b68
xor eax, eax
cmp edx, 3
sete al
jmp 0x478b68
lea eax, [ebp - 0x720]
mov dword [esp + 4], edi
mov dword [esp], eax
mov eax, dword [ebp - 0x978]
call eax
movzx eax, byte [ebp - 0x61c]
mov byte [ebp - 0x71c], al
jmp 0x4786d8
mov eax, 0x594
call fcn.0045b740
lea eax, [ebp - 0x928]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.CreateFileA_did_not_work__last_error__lu_on_volume___s__n
mov dword [esp + 8], eax
mov esi, dword [esi + 0x34]
xor eax, eax
test esi, esi
sete al
mov dword [esp], eax
call fcn.0045bef0
lea eax, [ebp - 0x95c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetFileInformationByHandle]
sub esp, 8
test eax, eax
jne 0x479394
mov dword [esp], ebx
mov eax, dword [ebp - 0x97c]
call eax
sub esp, 4
jmp 0x4788c8
cmp ebx, 0xffffffff
je 0x478c73
mov dword [esp], ebx
mov eax, dword [ebp - 0x97c]
call eax
sub esp, 4
mov eax, dword [str._A:]
mov dword [ebp - 0x720], eax
mov eax, dword [0x59eaeb]
mov dword [ebp - 0x71d], eax
lea eax, [ebp - 0x928]
mov byte [ebp - 0x71c], 0
mov dword [esp + 4], eax
lea eax, [ebp - 0x720]
mov dword [esp], eax
mov eax, dword [ebp - 0x980]
call eax
lea eax, [ebp - 0x720]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000000
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0xc0000000
mov dword [esp], eax
mov eax, dword [ebp - 0x970]
call eax
sub esp, 0x1c
mov ebx, eax
mov eax, 0x5e2
call fcn.0045b740
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.CreateFileA_should_have_worked_on__s__but_got__lu_n
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x720]
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.0045bef0
cmp ebx, 0xffffffff
je 0x478d3d
mov dword [esp], ebx
mov eax, dword [ebp - 0x97c]
call eax
sub esp, 4
mov eax, dword [str._A:]
mov dword [ebp - 0x720], eax
mov eax, dword [0x59eaeb]
mov byte [ebp - 0x71e], 0x2e
mov dword [ebp - 0x71d], eax
movzx eax, byte [ebp - 0x61c]
mov byte [ebp - 0x71c], al
lea eax, [ebp - 0x720]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20000080
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0xc0000000
mov dword [esp], eax
mov eax, dword [ebp - 0x970]
call eax
sub esp, 0x1c
mov ebx, eax
mov eax, 0x5f1
call fcn.0045b740
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.CreateFileA_did_not_open__s__last_error_lu_n
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x720]
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.0045bef0
cmp ebx, 0xffffffff
je 0x478df9
mov dword [esp], ebx
mov eax, dword [ebp - 0x97c]
call eax
sub esp, 4
mov eax, dword [0x76d168]
test eax, eax
je 0x4792de
mov edx, 0x5c3a
lea esi, [ebp - 0x720]
lea edi, [ebp - 0x518]
mov byte [ebp - 0x71d], 0
mov word [ebp - 0x71f], dx
movzx edx, byte [ebp - 0x61c]
mov byte [ebp - 0x720], dl
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call eax
sub esp, 0xc
mov ebx, eax
mov eax, 0x604
call fcn.0045b740
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 8], esi
mov dword [esp + 4], str.GetVolumeNameForVolumeMountPointA_failed__for__s__last_error_ld_n
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.0045bef0
test ebx, ebx
je 0x4792c0
mov eax, 0x607
call fcn.0045b740
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll_strlen]
mov dword [esp + 8], edi
cmp eax, 0x31
mov dword [esp + 4], str.GetVolumeNameForVolumeMountPointA_returned_wrong_length_name___s__n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0045bef0
mov dword [esp + 4], edi
mov dword [esp], esi
mov eax, dword [ebp - 0x978]
call eax
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20000080
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0xc0000000
mov eax, dword [ebp - 0x970]
call eax
mov ebx, eax
mov eax, dword [0x8f0770]
sub esp, 0x1c
call fcn.0045b110
jmp 0x478f50
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x613
lea eax, [ebp - 0x720]
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
sete al
mov dword [esp + 0xc], ebx
mov dword [esp], eax
mov dword [esp + 4], str.CreateFileA_should_not_have_opened__s__hFile__p_n
call fcn.0045bef0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x478f10
mov eax, dword [0x8f0770]
mov esi, dword fs:[0x18]
call fcn.0045b110
jmp 0x478fa6
lea ecx, [ebp - 0x720]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], str.CreateFileA_should_have_returned_ERROR_PATH_NOT_FOUND_on__s__but_got__lu_n
call fcn.0045bef0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
je 0x47902e
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x617
xor eax, eax
mov edx, dword [esi + 0x34]
cmp ebx, 0xffffffff
jne 0x478f80
xor eax, eax
cmp edx, 3
sete al
jmp 0x478f80
mov ebx, dword fs:[0x18]
cmp dword [ebx + 0x34], 5
je 0x47930a
cmp dword [ebx + 0x34], 0x35
je 0x47930a
mov eax, 0x5b6
call fcn.0045b740
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.CreateFileA_did_not_open__s__last_error_lu_n
mov dword [esp], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x720]
mov dword [esp + 8], eax
call fcn.0045bef0
jmp 0x478ab0
cmp ebx, 0xffffffff
je 0x479041
mov dword [esp], ebx
mov eax, dword [ebp - 0x97c]
call eax
sub esp, 4
lea eax, [ebp - 0x720]
mov dword [esp + 4], edi
mov dword [esp], eax
mov eax, dword [ebp - 0x978]
call eax
lea eax, [ebp - 0x925]
mov dword [esp + 4], eax
lea eax, [ebp - 0x720]
mov dword [esp], eax
mov eax, dword [ebp - 0x980]
call eax
lea eax, [ebp - 0x720]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000000
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0xc0000000
mov dword [esp], eax
mov eax, dword [ebp - 0x970]
call eax
mov esi, dword [0x8f0770]
sub esp, 0x1c
mov ebx, eax
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
xor ecx, ecx
test esi, esi
setne cl
or edx, ecx
mov dword [eax + 0x10], edx
mov esi, dword fs:[0x18]
jmp 0x47912b
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x628
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.CreateFileA_should_have_opened__s__but_got__lu_n
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x720]
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.0045bef0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x4790e8
cmp ebx, 0xffffffff
je 0x479151
mov dword [esp], ebx
mov eax, dword [ebp - 0x97c]
call eax
sub esp, 4
lea eax, [ebp - 0x720]
mov dword [esp + 4], edi
mov dword [esp], eax
mov eax, dword [ebp - 0x978]
call eax
lea eax, [ebp - 0x720]
mov byte [ebp - 0x71e], 0x2e
mov byte [ebp - 0x6f0], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20000080
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0xc0000000
mov dword [esp], eax
mov eax, dword [ebp - 0x970]
call eax
sub esp, 0x1c
mov edi, eax
cmp eax, 0xffffffff
je 0x479331
mov eax, 0x63c
call fcn.0045b740
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.CreateFileA_did_not_open__s__last_error_lu_n
mov dword [esp], 1
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x720]
mov dword [esp + 8], eax
call fcn.0045bef0
lea eax, [ebp - 0x96c]
mov dword [ebp - 0x96c], 0x200
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x414]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x200
mov dword [ebp - 0x984], eax
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_ReadFile]
mov ebx, eax
mov eax, dword [0x8f0770]
sub esp, 0x14
call fcn.0045b110
jmp 0x47928f
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x645
lea eax, [ebp - 0x720]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.Failed_to_read_volume__last_error__lu___lu__for__s_n
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.0045bef0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x479250
test ebx, ebx
jne 0x4793f0
mov dword [esp], edi
mov eax, dword [ebp - 0x97c]
call eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x653
call fcn.0045b740
mov dword [esp], str.GetVolumeNameForVolumeMountPointA_not_functioning_n
call fcn.0045bec0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x656
call fcn.0045b740
mov dword [esp], str.GetVolumeNameForVolumeMountPointA_not_found_n
call fcn.0045bec0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
cmp dword [esi + 0x34], 0x50
sete al
jmp 0x4781a6
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x35
je 0x479379
mov eax, 0x5fa
call fcn.0045b740
mov dword [esp], str.Do_not_have_authority_to_access_volumes._Tests_skipped_n
call fcn.0045b8a0
jmp 0x478df9
mov ebx, dword fs:[0x18]
cmp dword [ebx + 0x34], 5
je 0x479416
mov eax, 0x63c
call fcn.0045b740
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.CreateFileA_did_not_open__s__last_error_lu_n
mov dword [esp], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x720]
mov dword [esp + 8], eax
call fcn.0045bef0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x5f8
call fcn.0045b740
mov dword [esp], str.Probable_Win9x__got_ERROR_BAD_NETPATH__53__n
call fcn.0045b8a0
jmp 0x478df9
mov eax, 0x59d
lea esi, [ebp - 0x928]
call fcn.0045b740
mov eax, dword [ebp - 0x95c]
mov dword [esp + 8], esi
mov dword [esp + 4], str.CreateFileA_probably_did_not_open_temp_directory__s_correctly_n___file_information_does_not_include_FILE_ATTRIBUTE_DIRECTORY__actual0x_08lx_n
mov dword [esp + 0xc], eax
and eax, 0x10
mov dword [esp], eax
call fcn.0045bef0
jmp 0x478c4a
mov eax, 0x5c3
call fcn.0045b740
mov dword [esp], str.buffer_is_n
call fcn.0045b8b0
mov eax, dword [ebp - 0x984]
call fcn.0045b980
jmp 0x478aa2
mov eax, 0x649
call fcn.0045b740
mov dword [esp], str.buffer_is_n
call fcn.0045b8b0
mov eax, dword [ebp - 0x984]
call fcn.0045b980
jmp 0x4792aa
mov eax, 0x650
call fcn.0045b740
mov dword [esp], str.Do_not_have_authority_to_access_volumes._Tests_skipped_n
call fcn.0045b8a0
jmp 0x4792d6