Function at 0x402190
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.0x402148.1
jmp dword [eax*4 + 0x405158]
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x404008], 8
jne 0x4023c0
mov eax, dword [ebx + 0x24]
neg eax
sbb eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, word [ebx + 0x1c]
mov edx, dword [ebx + 4]
and ax, 0x80
neg ax
sbb eax, eax
and eax, 0xfde9
call sym._strdupAtoW
mov esi, dword [0x407014]
mov dword [ebp - 0x10], eax
test esi, esi
je 0x402400
cmp word [eax], 0x5c
mov esi, eax
jne 0x40241f
lea esi, [esi]
nop
add esi, 2
cmp word [esi], 0x5c
je 0x4021d0
mov eax, dword [0x407004]
test eax, eax
je 0x4024b0
mov edi, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [esp], eax
call edi
mov dword [esp], esi
mov ebx, eax
call edi
lea eax, [ebx + eax + 1]
add eax, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [0x407004]
mov edi, eax
xor eax, eax
lea esi, [esi]
movzx edx, word [ecx + eax]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x402218
cmp word [edi], 0
mov edx, edi
je 0x402239
add edx, 2
cmp word [edx], 0
jne 0x402230
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [esi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x402240
mov eax, esi
call sym._match_files
mov ebx, dword [sym.imp.ucrtbase.dll_free]
test eax, eax
je 0x402480
mov ebx, dword [0x40700c]
test ebx, ebx
jne 0x4024f8
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov ecx, dword [sym.imp.ucrtbase.dll_wcschr]
mov dword [esp + 4], 0x5c
mov dword [ebp - 0x14], eax
mov dword [esp], eax
mov dword [ebp - 0x18], ecx
call ecx
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov ecx, dword fs:[0x18]
shr eax, 0x10
mov dword [ebp - 0x20], eax
test ebx, ebx
je 0x402436
mov dword [ebp - 0x24], esi
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
jmp 0x4022e2
lea edx, [ebx + 2]
mov eax, 0x5c
mov word [ebx], ax
mov dword [esp + 4], 0x5c
mov dword [esp], edx
call edi
mov ebx, eax
test eax, eax
je 0x402430
xor ecx, ecx
mov word [ebx], cx
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
jne 0x4022c0
test byte [0x404008], 8
je 0x4022c0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x18], eax
test esi, esi
je 0x402510
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x4024e0
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x40234a
mov eax, esi
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], 0x404008
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4022c0
test byte [0x404008], 1
je case.0x402148.0
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], 0x404008
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp case.0x402148.0
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], 0x404008
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40217d
mov dword [esp + 4], 0x5c
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsrchr]
lea esi, [eax + 2]
test eax, eax
jne 0x4021d9
mov esi, dword [ebp - 0x10]
jmp 0x4021d9
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call ebx
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], edi
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call ebx
cmp esi, edi
mov eax, dword [ebp - 0x14]
je 0x402161
mov dword [ebp - 0x10], eax
mov dword [esp], edi
call ebx
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, esi
call sym._match_files
test eax, eax
je 0x4024c8
mov edi, esi
jmp 0x402265
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp case.0x402148.0
mov dword [esp + 4], esi
mov dword [esp], str._04x
call sym._wine_dbg_sprintf.constprop.0
jmp 0x40234a
mov dword [esp + 4], edi
mov dword [esp], str.extracting__s_n
call sym._wprintf
jmp 0x402273
mov eax, str._null_
jmp 0x40234a