Function at 0x402250
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp ebx, 5
ja case.0x402268.1
jmp dword [ebx*4 + 0x405158]
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
xor edx, edx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x404008], 8
jne 0x402580
mov eax, dword [esi + 0x24]
neg eax
sbb edx, edx
lea esp, [ebp - 0xc]
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
movzx eax, word [esi + 0x1c]
mov edx, dword [esi + 4]
and ax, 0x80
neg ax
sbb eax, eax
and eax, 0xfde9
call dbg.strdupAtoW
mov edx, dword [0x407014]
mov dword [ebp - 0x1c], eax
test edx, edx
je 0x4025c0
cmp word [eax], 0x5c
mov esi, eax
jne 0x4025df
lea esi, [esi]
nop
add esi, 2
cmp word [esi], 0x5c
je 0x4022f0
mov edx, dword [0x407004]
test edx, edx
je 0x4026c8
cmp word [edx], 0
je 0x402748
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x402318
sub eax, edx
sar eax, 1
cmp word [esi], 0
je 0x40233f
mov edx, esi
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x402330
sub edx, esi
sar edx, 1
add eax, edx
lea eax, [eax + eax + 2]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x20], eax
call eax
mov ecx, dword [0x407004]
mov edi, eax
sub esp, 0xc
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, word [ecx + eax]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x402380
cmp word [edi], 0
mov edx, edi
je 0x4023a9
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x4023a0
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [esi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4023b0
mov eax, esi
call dbg.match_files
mov ecx, dword [sym.imp.kernel32.dll_HeapFree]
mov edx, eax
test eax, eax
je 0x402662
mov eax, dword [0x40700c]
test eax, eax
jne 0x402730
cmp word [edi], 0
je 0x4023fe
mov ebx, edi
lea esi, [esi]
add ebx, 2
cmp word [ebx], 0
jne 0x4023f0
sub ebx, edi
add ebx, 2
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x20]
call eax
mov ecx, eax
sub esp, 0xc
xor eax, eax
lea esi, [esi]
movzx edx, word [edi + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x402428
mov eax, dword [sym.imp.ucrtbase.dll_wcschr]
mov dword [esp], ecx
mov dword [esp + 4], 0x5c
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x2c], eax
call eax
mov ecx, dword [ebp - 0x20]
mov ebx, eax
mov eax, ecx
shr eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x28], eax
test ebx, ebx
je 0x4025f8
mov dword [ebp - 0x30], esi
mov esi, ecx
mov dword [ebp - 0x34], edi
mov edi, dword [ebp - 0x2c]
jmp 0x4024a2
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 0x4025f0
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 0x402480
test byte [0x404008], 8
je 0x402480
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x20], eax
test edx, edx
je 0x402718
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 0x402502
mov eax, esi
call sym._wine_dbgstr_wn.part.0.constprop.0
mov ecx, dword [ebp - 0x20]
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], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x402480
test byte [0x404008], 1
je case.0x402268.0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.Unexpected_notification_type__d._n
mov dword [esp + 8], str.extract_notify
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp case.0x402268.0
mov eax, dword [esi + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 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], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40229d
mov dword [esp + 4], 0x5c
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsrchr]
lea esi, [eax + 2]
test eax, eax
jne 0x4022f9
mov esi, dword [ebp - 0x1c]
jmp 0x4022f9
mov ecx, esi
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
mov dword [esp + 8], ecx
mov ecx, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov dword [ebp - 0x20], ecx
call ecx
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], edi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov ecx, dword [ebp - 0x20]
sub esp, 0x1c
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov ebx, dword fs:[0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov dword [ebp - 0x1c], ecx
call ecx
mov edx, dword [ebp - 0x20]
sub esp, 0xc
cmp esi, edi
je 0x402281
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov ecx, dword [ebp - 0x1c]
call ecx
mov edx, dword [ebp - 0x20]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov eax, esi
call dbg.match_files
test eax, eax
je 0x4026e8
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov edi, esi
mov dword [ebp - 0x20], eax
jmp 0x4023d7
mov edi, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp case.0x402268.0
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x402502
mov dword [esp + 4], edi
mov dword [esp], str.extracting__s_n
call dbg.wprintf
jmp 0x4023e4
xor eax, eax
jmp 0x402325