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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0xb38]
lea esi, [ebp - 0x41c]
push ebx
lea ebx, [ebp - 0x624]
mov edi, dword fs:[0x18]
sub esp, 0xb9c
mov dword [esp + 4], eax
mov eax, dword [sym.imp.kernel32.dll_GetTempPathA]
mov dword [esp], 0x104
mov dword [ebp - 0xb88], eax
call eax
lea eax, [ebp - 0xb38]
sub esp, 8
mov dword [esp + 4], eax
lea eax, [ebp - 0xa34]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll_strcpy]
mov dword [ebp - 0xb98], eax
call eax
lea eax, [ebp - 0xb38]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea ecx, [ebp - 0xb38]
mov edx, str._assembly_xmlns_urn:schemas_microsoft_com:asm.v1__manifestVersion_1.0___assemblyIdentity_version_1.2.3.4___name_testdep1__type_win32__processorArchitecture_x86____file_name_testlib1.dll___windowClass_versioned_yes__wndClass1__windowClass__windowClass_wndClass2__windowClass___typelib_tlbid_99999999_8888_7777_6666_555555555558__version_1.0__helpdir_______file__file_name_testlib1_2.dll______assembly_
add eax, ecx
mov dword [eax], 0x6e69616d
mov dword [eax + 4], 0x646e775f
mov dword [eax + 8], 0x2e736c63
mov dword [eax + 0xc], 0x696e616d
mov dword [eax + 0x10], 0x74736566
mov byte [eax + 0x14], 0
mov eax, 0x58182c
call fcn.00402500
mov edx, str._assembly_xmlns_urn:schemas_microsoft_com:asm.v1__manifestVersion_1.0___assemblyIdentity_version_4.3.2.1___name_testdep2__type_win32__processorArchitecture_x86_____file_name_testlib2.dll____windowClass_versioned_no__wndClass3__windowClass___windowClass_wndClass4__windowClass___typelib_tlbid_99999999_8888_7777_6666_555555555555__version_1.0__helpdir_help__resourceid_409___________flags_HiddeN_CoNTROL_rESTRICTED______typelib_tlbid_99999999_8888_7777_6666_555555555556__version_1.0__helpdir_help1__resourceid_409______typelib_tlbid_99999999_8888_7777_6666_555555555557__version_1.0__helpdir_______file__file_name_testlib2_2.dll______assembly_
mov eax, str.testdep2.manifest
call fcn.00402500
mov edx, str._assembly_xmlns_urn:schemas_microsoft_com:asm.v1__manifestVersion_1.0___assemblyIdentity_version_1.2.3.4__name_Wine.Test__type_win32_____dependency___dependentAssembly____assemblyIdentity_type_win32__name_testdep1__version_1.2.3.4__processorArchitecture_x86_______dependentAssembly___dependency__dependency___dependentAssembly____assemblyIdentity_type_win32__name_testdep2__version_4.3.2.1__processorArchitecture_x86_______dependentAssembly___dependency___assembly_
mov eax, 0x581850
call fcn.00402500
lea eax, [ebp - 0x82c]
mov dword [esp + 8], 0x104
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x214]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
sub esp, 0xc
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
sub esp, 8
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_wcscpy]
mov dword [esp], ebx
mov dword [esp + 4], str.main_wndcls.manifest
call dword [sym.imp.msvcrt.dll_wcscat]
mov eax, dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [ebp - 0xb50], ebx
mov dword [ebp - 0xb48], esi
mov dword [ebp - 0xb4c], 0
mov dword [ebp - 0xb40], 0
mov dword [ebp - 0xb3c], 0
mov dword [ebp - 0xb58], 0x20
mov dword [ebp - 0xb54], 0x8c
mov dword [ebp - 0xb44], 0x7c
mov dword [esp], 0
mov dword [ebp - 0xb94], eax
call eax
mov dword [ebp - 0xb3c], eax
sub esp, 4
lea eax, [ebp - 0xb58]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_CreateActCtxW]
mov dword [ebp - 0xb84], eax
call eax
sub esp, 4
mov ebx, eax
mov eax, 0xb1c
call fcn.004012e0
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.CreateActCtx_error__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
xor esi, esi
mov dword [esp], eax
call fcn.00401dd0
mov eax, dword [sym.imp.kernel32.dll_ReleaseActCtx]
mov dword [esp], ebx
mov ebx, 0x583e00
mov dword [ebp - 0xb7c], eax
call eax
mov dword [ebp - 0xb80], esi
mov dword [ebp - 0xb90], 0x583e00
sub esp, 4
jmp 0x40516f
call fcn.0057d110
mov dword [eax], 0x58109f
mov dword [eax + 4], 0xb28
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.CreateActCtx_error__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00401dd0
mov dword [esp], esi
mov eax, dword [ebp - 0xb7c]
call eax
sub esp, 4
mov eax, dword [ebp - 0xb54]
add dword [ebp - 0xb58], 4
and eax, 0x88
cmp eax, 8
jne 0x4050e2
lea eax, [ebp - 0x214]
mov dword [ebp - 0xb50], eax
lea eax, [ebp - 0xb58]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp], eax
mov eax, dword [ebp - 0xb84]
call eax
sub esp, 4
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x58109f
mov dword [eax + 4], 0xb36
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.CreateActCtx_error__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00401dd0
mov dword [esp], esi
mov eax, dword [ebp - 0xb7c]
call eax
sub esp, 4
call fcn.0057d110
mov edx, dword [eax + 0xbec]
test edx, edx
je 0x405156
sub edx, 1
mov dword [eax + 0xbec], edx
add dword [ebp - 0xb80], 1
mov eax, dword [ebp - 0xb80]
add ebx, 0xc
cmp eax, 5
je 0x405230
mov eax, dword [ebp - 0xb80]
mov dword [esp], 0x581b76
mov dword [esp + 4], eax
call fcn.004010f0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [ebp - 0xb54], eax
lea eax, [ebp - 0xb58]
mov dword [ebp - 0xb58], edx
mov dword [esp], eax
mov eax, dword [ebp - 0xb84]
call eax
mov edx, dword [ebx + 8]
sub esp, 4
mov esi, eax
test edx, edx
je 0x405080
mov dword [ebp - 0xb8c], edx
call fcn.0057d110
mov dword [eax], 0x58109f
mov dword [eax + 4], 0xb2d
xor eax, eax
cmp esi, 0xffffffff
sete al
mov dword [esp + 4], str.CreateActCtx_should_fail_n
mov dword [esp], eax
call fcn.00401dd0
call fcn.0057d110
mov dword [eax], 0x58109f
mov dword [eax + 4], 0xb2e
mov eax, dword [edi + 0x34]
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0xb8c]
xor eax, eax
mov dword [esp + 4], 0x581b93
mov dword [esp + 8], edx
cmp dword [edi + 0x34], edx
sete al
mov dword [esp], eax
call fcn.00401dd0
jmp 0x4050bf
mov dword [ebp - 0xb6c], 0
lea eax, [ebp - 0xb38]
mov dword [ebp - 0xb70], eax
lea eax, [ebp - 0xa34]
mov dword [ebp - 0xb68], eax
mov dword [ebp - 0xb60], 0
mov dword [ebp - 0xb5c], 0
mov dword [ebp - 0xb78], 0x20
mov dword [ebp - 0xb74], 0x8c
mov dword [ebp - 0xb64], 0x7c
mov dword [esp], 0
mov eax, dword [ebp - 0xb94]
call eax
mov dword [ebp - 0xb5c], eax
sub esp, 4
lea eax, [ebp - 0xb78]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_CreateActCtxA]
mov esi, dword fs:[0x18]
mov dword [ebp - 0xb84], eax
call eax
sub esp, 4
mov ebx, eax
mov eax, 0xb44
call fcn.004012e0
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.CreateActCtx_error__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
xor edi, edi
mov dword [esp], eax
call fcn.00401dd0
mov dword [esp], ebx
mov eax, dword [ebp - 0xb7c]
call eax
mov dword [ebp - 0xb80], edi
mov ebx, dword [ebp - 0xb90]
sub esp, 4
jmp 0x4053ff
call fcn.0057d110
mov dword [eax], 0x58109f
mov dword [eax + 4], 0xb50
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.CreateActCtx_error__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00401dd0
mov dword [esp], edi
mov eax, dword [ebp - 0xb7c]
call eax
sub esp, 4
mov eax, dword [ebp - 0xb74]
add dword [ebp - 0xb78], 4
and eax, 0x88
cmp eax, 8
jne 0x405372
lea eax, [ebp - 0x82c]
mov dword [ebp - 0xb70], eax
lea eax, [ebp - 0xb78]
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp], eax
mov eax, dword [ebp - 0xb84]
call eax
sub esp, 4
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x58109f
mov dword [eax + 4], 0xb5e
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.CreateActCtx_error__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00401dd0
mov dword [esp], edi
mov eax, dword [ebp - 0xb7c]
call eax
sub esp, 4
call fcn.0057d110
mov edx, dword [eax + 0xbec]
test edx, edx
je 0x4053e6
sub edx, 1
mov dword [eax + 0xbec], edx
add dword [ebp - 0xb80], 1
mov eax, dword [ebp - 0xb80]
add ebx, 0xc
cmp eax, 5
je 0x4054c0
mov eax, dword [ebp - 0xb80]
mov dword [esp], 0x581b76
mov dword [esp + 4], eax
call fcn.004010f0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov dword [esi + 0x34], 0xdeadbeef
mov dword [ebp - 0xb74], eax
lea eax, [ebp - 0xb78]
mov dword [ebp - 0xb78], edx
mov dword [esp], eax
mov eax, dword [ebp - 0xb84]
call eax
mov edx, dword [ebx + 8]
sub esp, 4
mov edi, eax
test edx, edx
je 0x405310
mov dword [ebp - 0xb8c], edx
call fcn.0057d110
mov dword [eax], 0x58109f
mov dword [eax + 4], 0xb55
xor eax, eax
cmp edi, 0xffffffff
sete al
mov dword [esp + 4], str.CreateActCtx_should_fail_n
mov dword [esp], eax
call fcn.00401dd0
call fcn.0057d110
mov dword [eax], 0x58109f
mov dword [eax + 4], 0xb56
mov eax, dword [esi + 0x34]
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0xb8c]
xor eax, eax
mov dword [esp + 4], 0x581b93
mov dword [esp + 8], edx
cmp dword [esi + 0x34], edx
sete al
mov dword [esp], eax
call fcn.00401dd0
jmp 0x40534f
xor edx, edx
xor eax, eax
mov dword [ebp + eax - 0xb74], edx
add eax, 4
cmp eax, 0x1c
jb 0x4054c4
mov dword [ebp - 0xb78], 0x20
lea eax, [ebp - 0xb38]
mov dword [ebp - 0xb70], eax
lea eax, [ebp - 0xb78]
mov dword [esp], eax
mov edi, dword [ebp - 0xb84]
call edi
sub esp, 4
mov ebx, eax
mov eax, 0xb6a
call fcn.004012e0
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.failed_to_generate_context__error__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00401dd0
mov dword [esp], ebx
mov eax, dword [ebp - 0xb7c]
call eax
lea eax, [ebp - 0xa34]
sub esp, 4
mov dword [esp + 4], 0x104
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0xa34]
mov dword [ebp - 0xb6c], 0
mov dword [ebp - 0xb68], eax
lea eax, [ebp - 0xb38]
sub esp, 8
mov dword [ebp - 0xb70], eax
lea eax, [ebp - 0xb78]
mov dword [ebp - 0xb64], 0
mov dword [ebp - 0xb60], 0
mov dword [ebp - 0xb5c], 0
mov dword [ebp - 0xb78], 0x20
mov dword [ebp - 0xb74], 4
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp], eax
call edi
mov edi, dword [0x8f0770]
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
xor ecx, ecx
test edi, edi
setne cl
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x40565b
call fcn.0057d110
mov dword [eax], 0x58109f
mov dword [eax + 4], 0xb79
xor eax, eax
cmp ebx, 0xffffffff
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.got_handle__p_n
call fcn.00401dd0
call fcn.0057d110
mov dword [eax], 0x58109f
mov dword [eax + 4], 0xb7a
mov eax, dword [esi + 0x34]
mov dword [esp + 4], 0x581be2
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 0x36b1
sete al
mov dword [esp], eax
call fcn.00401dd0
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 0x4055f0
mov dword [ebp - 0xb90], edx
cmp ebx, 0xffffffff
je 0x405687
mov dword [esp], ebx
mov eax, dword [ebp - 0xb7c]
call eax
sub esp, 4
lea eax, [ebp - 0xa34]
mov dword [esp], 0x104
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xb88]
call eax
lea eax, [ebp - 0xa34]
mov dword [ebp - 0xb68], eax
sub esp, 8
lea eax, [ebp - 0xb78]
mov dword [esp], eax
mov esi, dword [ebp - 0xb84]
call esi
sub esp, 4
mov ebx, eax
mov eax, 0xb82
call fcn.004012e0
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
setne al
mov dword [esp + 4], str.got_handle__p_n
mov dword [esp], eax
call fcn.00401dd0
mov dword [esp], ebx
mov eax, dword [ebp - 0xb7c]
lea ebx, [ebp - 0x930]
call eax
lea eax, [ebp - 0xa34]
sub esp, 4
mov dword [esp + 4], eax
mov dword [esp], ebx
mov eax, dword [ebp - 0xb98]
call eax
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
add eax, ebx
mov dword [eax], 0x74736574
mov dword [eax + 4], 0x31706564
mov dword [eax + 8], 0x6c6c642e
mov byte [eax + 0xc], 0
mov eax, ebx
call fcn.004049e0
lea eax, [ebp - 0xb78]
mov dword [esp], eax
call esi
sub esp, 4
mov esi, eax
mov eax, 0xb8a
call fcn.004012e0
mov eax, 1
mov ecx, dword fs:[0x18]
mov edx, dword [ecx + 0x34]
cmp esi, 0xffffffff
je 0x405fb8
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], 0x581be2
call fcn.00401dd0
mov dword [esp], esi
mov eax, dword [ebp - 0xb7c]
call eax
mov edi, dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
mov dword [esp], ebx
lea ebx, [ebp - 0x728]
mov dword [ebp - 0xb80], edi
call edi
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], 0x104
mov esi, dword [ebp - 0xb88]
call esi
sub esp, 8
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
add eax, ebx
mov dword [eax], 0x6e69616d
mov dword [eax + 4], 0x646e775f
mov dword [eax + 8], 0x2e736c63
mov dword [eax + 0xc], 0x696e616d
mov dword [eax + 0x10], 0x74736566
mov byte [eax + 0x14], 0
mov dword [esp], ebx
call edi
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call esi
sub esp, 8
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov edx, 0x74
add eax, ebx
mov word [eax + 0x10], dx
mov dword [eax], 0x74736574
mov dword [eax + 4], 0x31706564
mov dword [eax + 8], 0x6e616d2e
mov dword [eax + 0xc], 0x73656669
mov dword [esp], ebx
call edi
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], 0x104
mov dword [ebp - 0xb88], esi
call esi
sub esp, 8
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov ecx, 0x74
add eax, ebx
mov word [eax + 0x10], cx
mov dword [eax], 0x74736574
mov dword [eax + 4], 0x32706564
mov dword [eax + 8], 0x6e616d2e
mov dword [eax + 0xc], 0x73656669
mov dword [esp], ebx
call edi
mov dword [ebp - 0xb6c], 0
mov dword [ebp - 0xb68], 0
sub esp, 4
mov dword [ebp - 0xb60], 0
mov dword [ebp - 0xb5c], 0
mov dword [ebp - 0xb78], 0x20
mov dword [ebp - 0xb74], 0x88
mov dword [ebp - 0xb70], str.dummyfile.dll
mov dword [ebp - 0xb64], 0x14
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [ebp - 0xb5c], eax
sub esp, 4
lea eax, [ebp - 0xb78]
mov edi, dword fs:[0x18]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp], eax
mov eax, dword [ebp - 0xb84]
call eax
sub esp, 4
mov esi, eax
mov eax, 0xb9c
call fcn.004012e0
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.got_handle__p_n
mov dword [esp], eax
call fcn.00401dd0
mov eax, 0xb9d
call fcn.004012e0
mov eax, dword [edi + 0x34]
mov dword [esp + 4], 0x581be2
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edi + 0x34], 0x716
sete al
mov dword [ebp - 0xb8c], edi
lea edi, [ebp - 0xa34]
mov dword [esp], eax
call fcn.00401dd0
mov edx, str._assembly_xmlns_urn:schemas_microsoft_com:asm.v1__manifestVersion_1.0___assemblyIdentity_version_1.0.0.0___name_Wine.Test__type_win32____assemblyIdentity___assembly_
mov eax, str.testdir.manifest
call fcn.00402500
lea ecx, [ebp - 0xb38]
mov dword [esp], 0x104
mov dword [esp + 4], ecx
mov esi, dword [ebp - 0xb88]
call esi
lea ecx, [ebp - 0xb38]
lea esi, [ebp - 0xb38]
sub esp, 8
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0xb38]
sub esp, 4
mov dword [esp], ecx
call sub.msvcrt.dll_strlen
lea ecx, [ebp - 0xb38]
lea edx, [ecx + eax]
mov dword [edx], 0x65737361
mov dword [edx + 4], 0x796c626d
mov dword [edx + 8], 0x7269645f
mov byte [edx + 0xc], 0
mov ecx, dword [ebp + eax - 0xb2f]
mov dword [ebp + eax - 0xa2b], ecx
add eax, 0xc
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xb38]
mov esi, 0x74
mov dword [ebp - 0xb6c], 0
mov dword [ebp - 0xb64], 0
add eax, ecx
lea ecx, [ebp - 0xa34]
mov edi, dword [ebp - 0xb8c]
mov dword [ebp - 0xb68], ecx
lea ecx, [ebp - 0xb78]
mov word [eax + 0x10], si
mov dword [eax], 0x7365745c
mov dword [eax + 4], 0x72696474
mov dword [eax + 8], 0x6e616d2e
mov dword [eax + 0xc], 0x73656669
mov dword [ebp - 0xb60], 0
mov dword [ebp - 0xb5c], 0
mov dword [ebp - 0xb78], 0x20
mov dword [ebp - 0xb74], 4
mov dword [ebp - 0xb70], str.testdir.manifest
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp], ecx
mov eax, dword [ebp - 0xb84]
call eax
sub esp, 4
mov esi, eax
mov eax, 0xbaf
call fcn.004012e0
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.got_handle__p_n
mov dword [esp], eax
call fcn.00401dd0
mov eax, 0xbb0
call fcn.004012e0
mov edx, dword [edi + 0x34]
mov eax, 1
cmp edx, 3
je 0x405af1
mov esi, dword [0x8f0770]
cmp edx, 2
sete cl
xor eax, eax
test esi, esi
sete al
and eax, ecx
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], 0x581be2
mov esi, dword fs:[0x18]
call fcn.00401dd0
lea eax, [ebp - 0xa34]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
lea eax, [ebp - 0xa34]
mov dword [esi + 0x34], 0xdeadbeef
mov dword [ebp - 0xb68], eax
sub esp, 8
lea eax, [ebp - 0xb78]
mov dword [ebp - 0xb6c], 0
mov dword [ebp - 0xb64], 0
mov dword [ebp - 0xb60], 0
mov dword [ebp - 0xb5c], 0
mov dword [ebp - 0xb78], 0x20
mov dword [ebp - 0xb74], 4
mov dword [ebp - 0xb70], str.testdir.manifest
mov dword [esp], eax
mov edi, dword [ebp - 0xb84]
call edi
sub esp, 4
mov edi, eax
mov eax, 0xbbd
call fcn.004012e0
xor eax, eax
cmp edi, 0xffffffff
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.got_handle__p_n
mov dword [esp], eax
call fcn.00401dd0
mov eax, 0xbbe
call fcn.004012e0
mov eax, dword [esi + 0x34]
mov dword [esp + 4], 0x581be2
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 2
sete al
mov dword [esp], eax
call fcn.00401dd0
mov dword [esp], 0x6248a0
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
mov edx, str._assembly_xmlns_urn:schemas_microsoft_com:asm.v1__manifestVersion_1.0___assemblyIdentity_version_1.0.0.0___name_Wine.Test__type_win32____assemblyIdentity___assembly_
mov eax, str.assembly_dir_testdir.manifest
sub esp, 4
call fcn.00402500
lea eax, [ebp - 0xa34]
mov dword [ebp - 0xb6c], 0
mov dword [ebp - 0xb68], eax
lea eax, [ebp - 0xb78]
mov dword [ebp - 0xb64], 0
mov dword [ebp - 0xb60], 0
mov dword [ebp - 0xb5c], 0
mov dword [ebp - 0xb78], 0x20
mov dword [ebp - 0xb74], 4
mov dword [ebp - 0xb70], str.testdir.manifest
mov dword [esp], eax
mov edi, dword [ebp - 0xb84]
call edi
sub esp, 4
mov esi, eax
mov eax, 0xbc9
call fcn.004012e0
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 8], esi
setne al
mov dword [esp + 4], str.got_handle__p_n
mov dword [esp], eax
call fcn.00401dd0
mov dword [esp], esi
mov eax, dword [ebp - 0xb7c]
call eax
lea ecx, [ebp - 0xb38]
mov dword [ebp - 0xb6c], 0
mov dword [ebp - 0xb70], ecx
lea ecx, [ebp - 0xa34]
sub esp, 4
mov dword [ebp - 0xb68], ecx
lea ecx, [ebp - 0xb78]
mov dword [ebp - 0xb64], 0
mov dword [ebp - 0xb60], 0
mov dword [ebp - 0xb5c], 0
mov dword [ebp - 0xb78], 0x20
mov dword [ebp - 0xb74], 4
mov dword [esp], ecx
call edi
sub esp, 4
mov esi, eax
mov eax, 0xbd3
call fcn.004012e0
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 8], esi
setne al
mov dword [esp + 4], str.got_handle__p_n
mov dword [esp], eax
call fcn.00401dd0
mov dword [esp], esi
mov eax, dword [ebp - 0xb7c]
call eax
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], 0x104
mov esi, dword [ebp - 0xb88]
call esi
sub esp, 8
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
add eax, ebx
mov dword [eax], 0x74736574
mov dword [eax + 4], 0x2e726964
mov dword [eax + 8], 0x696e616d
mov dword [eax + 0xc], 0x74736566
mov byte [eax + 0x10], 0
mov dword [esp], ebx
mov eax, dword [ebp - 0xb80]
call eax
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call esi
sub esp, 8
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov ecx, 0x74
add eax, ebx
mov word [eax + 0x1c], cx
mov dword [eax], 0x65737361
mov dword [eax + 4], 0x796c626d
mov dword [eax + 8], 0x7269645f
mov dword [eax + 0xc], 0x7365745c
mov dword [eax + 0x10], 0x72696474
mov dword [eax + 0x14], 0x6e616d2e
mov dword [eax + 0x18], 0x73656669
mov dword [esp], ebx
mov eax, dword [ebp - 0xb80]
call eax
lea eax, [ebp - 0xa34]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
lea eax, [ebp - 0xb78]
mov dword [ebp - 0xb6c], 0
mov dword [ebp - 0xb68], 0
sub esp, 4
mov dword [ebp - 0xb60], 0
mov dword [ebp - 0xb5c], 0
mov dword [ebp - 0xb78], 0x20
mov dword [ebp - 0xb70], 0x581c2e
mov dword [ebp - 0xb64], 0x7c
mov dword [ebp - 0xb74], 8
mov dword [esp], eax
call edi
sub esp, 4
mov ebx, eax
mov eax, 0xbe1
call fcn.004012e0
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 4], str.CreateActCtxA_succeeded_n
sete al
mov dword [esp], eax
call fcn.00401dd0
xor edx, edx
xor eax, eax
mov dword [ebp + eax - 0xb70], edx
add eax, 4
cmp eax, 0x18
jb 0x405e7e
mov dword [ebp - 0xb78], 0x20
mov edi, dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov dword [ebp - 0xb64], 1
mov edx, dword [ebp - 0xb90]
mov dword [ebp - 0xb74], 0x88
mov esi, dword fs:[0x18]
nop
mov ebx, dword [edx*4 + 0x583de8]
mov dword [ebp - 0xb7c], edx
mov dword [esp], 0x581c53
mov dword [esp + 4], ebx
call fcn.004010f0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], str.C:windowsexplorer.exe
call edi
sub esp, 0xc
mov dword [ebp - 0xb5c], eax
call fcn.0057d110
mov dword [eax], 0x58109f
mov dword [eax + 4], 0xbee
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.LoadLibraryExA_failed__error__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0xb5c]
xor eax, eax
test edx, edx
setne al
mov dword [esp], eax
call fcn.00401dd0
lea eax, [ebp - 0xb78]
mov dword [esp], eax
mov eax, dword [ebp - 0xb84]
call eax
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x58109f
mov dword [eax + 4], 0xbf0
xor eax, eax
cmp ebx, 0xffffffff
sete al
mov dword [esp + 4], str.CreateActCtxA_succeeded_n
mov dword [esp], eax
call fcn.00401dd0
mov eax, dword [ebp - 0xb5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
call fcn.0057d110
mov edx, dword [ebp - 0xb7c]
mov ecx, dword [eax + 0xbec]
test ecx, ecx
je 0x405fa1
sub ecx, 1
mov dword [eax + 0xbec], ecx
add edx, 1
cmp edx, 3
jne 0x405ec0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [0x8f0770]
cmp edx, 0x36b1
sete cl
xor eax, eax
test edi, edi
sete al
and eax, ecx
jmp 0x40576f