Function at 0x4042f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x764
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x206
push eax
lea ecx, [ebp - 0x316]
push ecx
mov dword [ebp - 0x760], esi
mov word [ebp - 0x318], ax
call fcn.004238b0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x726]
push eax
mov word [ebp - 0x728], dx
call fcn.004238b0
lea edx, [ebp - 0x318]
add esp, 0xc
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404354
lea eax, [ebp - 0x318]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404370
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x31a], 0x5c
lea eax, [ebp + eax*2 - 0x318]
jne 0x404397
xor ecx, ecx
mov word [eax - 2], cx
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x51e]
push eax
mov word [ebp - 0x520], dx
call fcn.004238b0
add esp, 0xc
lea ecx, [ebp - 0x318]
push 0x5c
push ecx
call fcn.0041d4a8
add esp, 8
test eax, eax
je 0x4045dd
add eax, 2
push 0x5c
push eax
call fcn.0041d4a8
add esp, 8
mov dword [ebp - 0x75c], eax
test eax, eax
je 0x4045dd
lea ebx, [ebx]
lea edx, [ebp - 0x318]
sub eax, edx
sar eax, 1
push eax
mov eax, edx
push eax
lea ecx, [ebp - 0x520]
push ecx
call fcn.0041d0af
add esp, 0xc
push 0x103
lea edx, [ebp - 0x10f]
push 0
push edx
mov byte [ebp - 0x110], 0
call fcn.004238b0
add esp, 0xc
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x520]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
lea edi, [ebx + 1]
push edi
call fcn.0041d02f
mov esi, eax
add esp, 4
test esi, esi
je 0x4044a3
push edi
push 0
push esi
call fcn.004238b0
add esp, 0xc
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x520]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edx, [ebp - 0x110]
mov byte [esi + ebx], 0
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404490
push esi
call fcn.0041c454
add esp, 4
lea edx, [ebp - 0x758]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.0041cb89
add esp, 8
test eax, eax
jne 0x4044e4
mov ecx, dword [ebp - 0x75c]
add ecx, 2
push 0x5c
push ecx
call fcn.0041d4a8
add esp, 8
mov dword [ebp - 0x75c], eax
test eax, eax
je 0x4045e5
jmp 0x4043f0
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
lea edx, [ebp - 0x520]
push edx
call edi
test eax, eax
je 0x404567
mov eax, dword [ebp - 0x75c]
add eax, 2
push 0x5c
push eax
call fcn.0041d4a8
mov esi, eax
add esp, 8
test esi, esi
je 0x4045eb
jmp 0x404520
lea edx, [ebp - 0x318]
mov ecx, esi
sub ecx, edx
sar ecx, 1
push ecx
mov eax, edx
push eax
lea ecx, [ebp - 0x520]
push ecx
call fcn.0041d0af
add esp, 0xc
push 0
lea edx, [ebp - 0x520]
push edx
call edi
test eax, eax
je 0x4045a2
push 0x5c
add esi, 2
push esi
call fcn.0041d4a8
mov esi, eax
add esp, 8
test esi, esi
jne 0x404520
jmp 0x4045eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x520]
push eax
push str.wmcFuncFileSystem__CreateFullDirectory__CreateDirectory
lea ecx, [ebp - 0x728]
push str.__s_:
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x520]
push edx
push str.wmcFuncFileSystem__CreateFullDirectory__CreateDirectory
lea eax, [ebp - 0x728]
push str.__s_:
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4045f1
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [ebp - 0x760]
push 0x103
lea ecx, [ebp - 0x10f]
push 0
push ecx
mov byte [ebp - 0x110], 0
call fcn.004238b0
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push esi
call fcn.004098d0
lea eax, [ebp - 0x758]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.0041cb89
add esp, 0x10
test eax, eax
je 0x404673
push 0
push esi
call edi
test eax, eax
jne 0x404673
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.wmcFuncFileSystem__CreateFullDirectory__CreateDirectory
lea edx, [ebp - 0x728]
push str.__s_:
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041bcde
mov esp, ebp
pop ebp
ret