Function at 0x4022d0
Capabilities:
Access peb ldr_data
Create directory
Get kernel32 base address
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x48
mov eax, dword [ecx]
mov ebx, dword [ecx + 4]
cmp eax, 5
ja case.0x4022f2.3
jmp dword [eax*4 + 0x406160]
mov esi, dword [ebp - 0x20]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], esi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
xor edi, edi
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
test byte [0x405008], 8
jne 0x402540
mov edx, dword [ebx + 0x24]
xor eax, eax
test edx, edx
setne al
lea esp, [ebp - 0x10]
neg eax
pop ecx
mov edi, eax
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebx + 0x14]
xor edi, edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
movzx eax, word [ebx + 0x1c]
mov edx, dword [ebx + 4]
shl eax, 0x18
sar eax, 0x1f
and eax, 0xfde9
call dbg.strdupAtoW
mov edx, dword [0x407014]
mov dword [ebp - 0x20], eax
test edx, edx
je 0x402580
cmp word [eax], 0x5c
jne 0x4027f0
mov ebx, eax
add ebx, 2
cmp word [ebx], 0x5c
je 0x4023b4
mov edx, dword [0x407004]
test edx, edx
je 0x4025a1
cmp word [edx], 0
je 0x4027df
mov eax, edx
mov esi, esi
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x4023e0
sub eax, edx
sar eax, 1
mov edx, eax
cmp word [ebx], 0
je 0x4027d8
mov eax, ebx
nop
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402400
sub eax, ebx
sar eax, 1
lea eax, [edx + eax + 1]
mov dword [esp + 4], 0
mov esi, dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword fs:[0x18]
add eax, eax
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov edi, eax
mov edx, eax
mov eax, dword [0x407004]
sub esp, 0xc
add eax, 2
movzx ecx, word [eax - 2]
add edx, 2
test cx, cx
mov word [edx - 2], cx
jne 0x402443
cmp word [edi], 0
mov eax, edi
je 0x402469
nop
add eax, 2
cmp word [eax], 0
jne 0x402460
mov edx, ebx
nop
lea esi, [esi]
add edx, 2
movzx ecx, word [edx - 2]
add eax, 2
test cx, cx
mov word [eax - 2], cx
jne 0x402470
mov eax, ebx
call dbg.match_files
test eax, eax
mov dword [ebp - 0x1c], edi
jne 0x4025c0
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
xor edi, edi
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov dword [ebp - 0x20], edx
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
cmp ebx, eax
je 0x402322
mov edx, dword [ebp - 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
xor edi, edi
test byte [0x405008], 1
je 0x402322
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], 0x405008
mov dword [esp], 0
call sym._wine_dbg_log.constprop.11
jmp 0x402322
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 + 8], str.extract_notify
mov dword [esp + 4], 0x405008
mov dword [esp], 3
mov dword [esp + 0x10], eax
call sym._wine_dbg_log.constprop.11
jmp 0x40233d
mov esi, dword [ebp - 0x20]
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 0x4023bd
mov eax, ebx
call dbg.match_files
test eax, eax
je 0x4022f9
mov esi, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x1c], ebx
lea esi, [esi]
mov eax, dword [0x40700c]
test eax, eax
jne 0x4027c0
mov eax, dword [ebp - 0x1c]
cmp word [eax], 0
je 0x4027f8
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4025e0
sub eax, dword [ebp - 0x1c]
sar eax, 1
lea edx, [eax + eax + 2]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov esi, eax
mov edx, eax
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
lea esi, [esi]
add eax, 2
movzx ecx, word [eax - 2]
add edx, 2
test cx, cx
mov word [edx - 2], cx
jne 0x402620
mov eax, dword [sym.imp.ucrtbase.dll_wcschr]
mov dword [esp + 4], 0x5c
mov dword [esp], esi
mov dword [ebp - 0x24], eax
call eax
mov edi, eax
mov eax, esi
shr eax, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword fs:[0x18]
test edi, edi
mov dword [ebp - 0x28], eax
je 0x402733
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x24]
jmp 0x402692
lea edx, [edi + 2]
mov ecx, 0x5c
mov word [edi], cx
mov dword [esp + 4], 0x5c
mov dword [esp], edx
call ebx
test eax, eax
mov edi, eax
je 0x402730
xor eax, eax
mov word [edi], ax
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
jne 0x402670
test byte [0x405008], 8
je 0x402670
mov eax, dword [ebp - 0x28]
test esi, esi
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x24], eax
je 0x4027e6
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4027a0
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
mov ecx, str._invalid_
jne 0x4026fa
mov eax, esi
call sym._wine_dbgstr_wn.part.0.constprop.15
mov ecx, eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.Couldnt_create_directory__s___error:__ld_n
mov dword [esp + 8], str.create_directories
mov dword [esp + 4], 0x405008
mov dword [esp], 3
mov dword [esp + 0x14], eax
call sym._wine_dbg_log.constprop.11
jmp 0x402670
mov ebx, dword [ebp - 0x30]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
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], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov edi, eax
jmp 0x40249d
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.13
mov ecx, eax
jmp 0x4026fa
mov eax, dword [ebp - 0x1c]
mov dword [esp], str.extracting__s_n
mov dword [esp + 4], eax
call dbg.wprintf
jmp 0x4025cd
xor eax, eax
jmp 0x40240d
xor edx, edx
jmp 0x4023ef
mov ecx, str._null_
jmp 0x4026fa
mov ebx, dword [ebp - 0x20]
jmp 0x4023bd
mov edx, 2
jmp 0x4025f2