Function at 0x401788
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x38
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp eax, 5
ja case.0x401728.1
jmp dword [eax*4 + 0x406158]
xor edi, edi
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [section..data], 8
jne 0x4018d0
mov eax, dword [ebx + 0x24]
xor edx, edx
test eax, eax
setne dl
lea esp, [ebp - 0xc]
mov edi, edx
pop ebx
pop esi
neg edi
mov eax, edi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x14]
xor edi, edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, word [ebx + 0x1c]
mov edx, dword [ebx + 4]
shl eax, 0x18
sar eax, 0x1f
and eax, 0xfde9
call sym._strdupAtoW
mov edx, dword [0x4050fc]
mov dword [ebp - 0x14], eax
test edx, edx
je 0x401910
cmp word [eax], 0x5c
mov ebx, eax
jne 0x401b08
lea esi, [esi]
add ebx, 2
cmp word [ebx], 0x5c
je 0x4017c0
mov eax, dword [0x4050f4]
mov esi, ebx
test eax, eax
je 0x401840
mov edi, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [esp], eax
call edi
mov dword [esp], ebx
mov esi, eax
call edi
lea eax, [esi + eax + 1]
add eax, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [0x4050f4]
mov esi, eax
xor eax, eax
nop
movzx edx, word [ecx + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x401800
cmp word [esi], 0
mov edx, esi
je 0x401829
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x401820
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [ebx + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401830
mov eax, dword [0x4050f8]
mov eax, dword [eax]
test eax, eax
je 0x401938
mov eax, ebx
call sym._match_files.part.0
mov edi, eax
test eax, eax
jne 0x401938
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [ebp - 0x10]
call eax
cmp ebx, esi
je 0x401732
mov dword [esp], esi
mov eax, dword [ebp - 0x10]
call eax
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
xor edi, edi
test byte [section..data], 1
je 0x401732
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unexpected_notification_type__d._n
mov dword [esp + 8], str.extract_notify
mov dword [esp + 4], 0x405000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401732
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0xc], str.Next_cab:_status__u__path__s__file__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.extract_notify
mov dword [esp + 4], 0x405000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40174d
mov esi, dword [ebp - 0x14]
mov dword [esp + 4], 0x5c
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcsrchr]
lea ebx, [eax + 2]
test eax, eax
cmove ebx, esi
jmp 0x4017c9
mov eax, dword [0x405108]
test eax, eax
jne 0x401ae0
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov ecx, dword [sym.imp.ucrtbase.dll_wcschr]
mov dword [esp + 4], 0x5c
mov dword [ebp - 0x10], eax
mov dword [esp], eax
mov dword [ebp - 0x18], ecx
call ecx
mov edi, eax
mov eax, dword [ebp - 0x10]
shr eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x1c], eax
test edi, edi
je 0x401a66
mov dword [ebp - 0x24], esi
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x10]
jmp 0x4019ba
mov edx, 0x5c
mov word [edi], dx
lea edx, [edi + 2]
mov dword [esp + 4], 0x5c
mov dword [esp], edx
call esi
mov edi, eax
test eax, eax
je 0x401a60
xor eax, eax
mov word [edi], ax
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
jne 0x401998
test byte [section..data], 8
je 0x401998
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x18], eax
test ebx, ebx
je 0x401af8
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x401ac0
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x401a22
mov eax, ebx
call sym._wine_dbgstr_wn.part.0.constprop.0
mov ecx, dword [ebp - 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Couldnt_create_directory__s___error:__ld_n
mov dword [esp + 0x14], ecx
mov dword [esp + 8], str.create_directories
mov dword [esp + 4], 0x405000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x401998
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x10], eax
call eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x40000000
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov edi, eax
jmp 0x401868
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x401a22
mov dword [esp + 4], esi
mov dword [esp], str.extracting__s_n
call sym._wprintf
jmp 0x401945
mov eax, str._null_
jmp 0x401a22
mov ebx, dword [ebp - 0x14]
jmp 0x4017c9