Function at 0x42a080
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a14b0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x610304]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x14]
call fcn.0042aef0
mov dword [esp + 0x78], 0
mov ebx, dword [esp + 0x14]
test ebx, ebx
mov edi, dword [esp + 0x10]
je 0x42a11f
cmp word [edi + ebx*2 - 2], 0x5c
lea eax, [edi + ebx*2 - 2]
je 0x42a0ed
lea esp, [esp]
cmp eax, edi
je 0x42a11f
sub eax, 2
cmp word [eax], 0x5c
jne 0x42a0e0
sub eax, edi
sar eax, 1
test eax, eax
jle 0x42a11f
lea ecx, [ebx - 1]
cmp eax, ecx
jne 0x42a11f
cmp ebx, 3
jne 0x42a10c
cmp word [edi + 2], 0x3a
je 0x42a259
mov ecx, eax
lea edi, [esp + 0x10]
call fcn.0042b130
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x20]
call fcn.0042af50
mov byte [esp + 0x78], 1
mov esi, ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42a2ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42a213
test ebx, ebx
je 0x42a333
cmp word [edi + ebx*2 - 2], 0x5c
lea eax, [edi + ebx*2 - 2]
je 0x42a181
lea ebx, [ebx]
cmp eax, edi
je 0x42a333
sub eax, 2
cmp word [eax], 0x5c
jne 0x42a170
sub eax, edi
sar eax, 1
mov esi, eax
js 0x42a333
test esi, esi
je 0x42a333
cmp word [edi + esi*2 - 2], 0x3a
je 0x42a32c
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.0042b090
mov ebx, eax
lea ecx, [esp + 0x10]
cmp ebx, ecx
mov byte [esp + 0x78], 3
je 0x42a1f8
mov word [edi], 0
mov edx, dword [ebx + 4]
push edx
mov dword [esp + 0x18], 0
call fcn.0042b1c0
mov edi, dword [esp + 0x10]
mov edx, dword [ebx]
mov ecx, edi
lea ecx, [ecx]
movzx eax, word [edx]
mov word [ecx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x42a1e0
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], eax
mov byte [esp + 0x78], 1
mov ecx, dword [esp + 0x28]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ebx, dword [esp + 0x18]
add esp, 4
jmp 0x42a134
xor eax, eax
push 3
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
call fcn.0042b1c0
push edi
lea ecx, [esp + 0x38]
mov byte [esp + 0x7c], 2
call fcn.0042c0a0
test al, al
jne 0x42a277
mov edx, dword [esp + 0x5c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x54]
shr ecx, 4
test cl, 1
jne 0x42a29a
mov edx, dword [esp + 0x5c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x20]
add esp, 4
push eax
jmp 0x42a338
mov byte [esp + 0x78], 1
mov ecx, dword [esp + 0x5c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
call fcn.0042b000
cmp esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
jge 0x42a24c
movzx ecx, word [edi + esi*2 + 2]
cmp cx, 0x5c
lea eax, [edi + esi*2 + 2]
je 0x42a2e5
test cx, cx
je 0x42a2ed
movzx ecx, word [eax + 2]
add eax, 2
cmp cx, 0x5c
jne 0x42a2d3
sub eax, edi
sar eax, 1
mov esi, eax
jns 0x42a2f1
mov esi, dword [esp + 0x14]
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.0042b090
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x28]
test eax, eax
push ecx
setne bl
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
test bl, bl
je 0x42a333
cmp esi, dword [esp + 0x14]
jl 0x42a2c4
jmp 0x42a24c
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x42a338
mov edx, dword [esp + 0x1c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret