Function at 0x41d700
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f0fe
mov eax, dword fs:[0]
push eax
mov eax, 0x4064
call fcn.00406240
mov eax, dword [0x4620f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x4014], 7
mov dword [ebp - 0x4018], 0
mov word [ebp - 0x4028], cx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x402c], 7
mov dword [ebp - 0x4030], ecx
mov word [ebp - 0x4040], cx
mov dword [ebp - 0x4044], 7
mov dword [ebp - 0x4048], ecx
mov word [ebp - 0x4058], cx
push ecx
push eax
lea eax, [ebp - 0x4028]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebx - 8]
call fcn.0041f5c0
test al, al
je 0x41dc16
push 0
push edi
lea eax, [ebp - 0x4040]
push eax
lea ecx, [ebx - 8]
call fcn.0041f5c0
test al, al
je 0x41dc16
push 0
push edi
lea eax, [ebp - 0x4058]
push eax
lea ecx, [ebx - 8]
call fcn.00419e00
test al, al
je 0x41dc16
mov eax, dword [ebp - 0x4048]
cmp eax, 3
jne 0x41d7f5
push 0x5c
push 1
lea ecx, [ebp - 0x4040]
call fcn.00403be0
jmp 0x41d802
dec eax
lea ecx, [ebp - 0x4058]
push eax
call fcn.004042d0
mov eax, dword [ebp - 0x4048]
add eax, dword [ebp - 0x4030]
lea esi, [eax*2 + 0x14]
mov dword [ebp - 0x405c], esi
cmp esi, 0x4000
jbe 0x41d897
push str.Error_occurred_while_creating_the_file.
call fcn.004029e0
add esp, 4
push eax
mov eax, dword [ebp - 0x402c]
push 0x4000a
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0x3b21fa62
mov dword [ecx + 4], 0xf35f747b
mov dword [ecx + 8], 0x44f9a8
mov dword [ecx + 0xc], 0x44f85c
mov dword [ecx + 0x10], 0x359
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0x405c]
call fcn.00412b70
push eax
mov eax, dword [ebx - 4]
mov byte [ebp - 4], 4
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.004030c0
lea ecx, [ebp - 0x405c]
mov byte [ebp - 4], 2
call fcn.00402f20
jmp 0x41dca1
mov eax, dword [ebx - 4]
lea ecx, [ebp - 0x4064]
mov eax, dword [eax + 4]
add eax, ebx
push eax
lea eax, [ebp - 0x4028]
push eax
call fcn.0042c470
mov eax, dword [ebx - 4]
mov byte [ebp - 4], 5
mov eax, dword [eax + 4]
mov eax, dword [eax + ebx]
test eax, eax
je 0x41d8cd
cmp dword [eax + 4], 0
jne 0x41dc02
lea ecx, [ebp - 0x406c]
call fcn.00436e20
cmp dword [ebp - 0x4014], 8
lea eax, [ebp - 0x4028]
push 0
cmovae eax, dword [ebp - 0x4028]
push eax
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41d996
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41d996
push str.Error_occurred_while_creating_the_file.
call fcn.004029e0
add esp, 4
push eax
push 0x4000a
lea eax, [ebp - 0x4028]
push eax
mov eax, dword [ebp - 0x402c]
push 0x44f994
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0x3b21fa6d
mov dword [ecx + 4], 0xf35f747b
mov dword [ecx + 8], 0x44fa70
mov dword [ecx + 0xc], 0x44f9f4
mov dword [ecx + 0x10], 0x364
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x405c]
push eax
call fcn.0041d0b0
add esp, 0x2c
push eax
mov eax, dword [ebx - 4]
mov byte [ebp - 4], 7
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.004030c0
lea ecx, [ebp - 0x405c]
mov byte [ebp - 4], 6
call fcn.00402f20
jmp 0x41dbf3
cmp dword [ebp - 0x4014], 8
lea eax, [ebp - 0x4028]
push 0
cmovae eax, dword [ebp - 0x4028]
push 0x2200000
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4060], eax
cmp eax, 0xffffffff
jne 0x41da56
push str.Error_occurred_while_creating_the_file.
call fcn.004029e0
add esp, 4
push eax
push 0x4000a
lea eax, [ebp - 0x4028]
push eax
mov eax, dword [ebp - 0x402c]
push str.OpenDirectoryW
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0x3b21fa74
mov dword [ecx + 4], 0xf35f747b
mov dword [ecx + 8], 0x44fb48
mov dword [ecx + 0xc], 0x44facc
mov dword [ecx + 0x10], 0x36b
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x405c]
push eax
call fcn.0041d0b0
add esp, 0x2c
push eax
mov eax, dword [ebx - 4]
mov byte [ebp - 4], 8
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.004030c0
lea ecx, [ebp - 0x405c]
mov byte [ebp - 4], 6
call fcn.00402f20
jmp 0x41dbbd
push 0x4000
lea eax, [ebp - 0x4010]
push 0
push eax
call fcn.00405c60
mov edi, dword [ebp - 0x4030]
lea eax, [esi - 8]
mov esi, dword [ebp - 0x4048]
lea ecx, [ebp - 0x4040]
mov word [ebp - 0x400c], ax
mov dword [ebp - 0x4010], 0xa0000003
lea eax, [edi + edi]
mov word [ebp - 0x4006], ax
add eax, 2
cmp dword [ebp - 0x402c], 8
mov word [ebp - 0x4004], ax
lea eax, [esi + esi]
cmovae ecx, dword [ebp - 0x4040]
mov word [ebp - 0x4002], ax
lea eax, [edi + edi]
push eax
push ecx
lea eax, [ebp - 0x4000]
push eax
call fcn.00405610
cmp dword [ebp - 0x4044], 8
lea ecx, [ebp - 0x4058]
mov eax, 0x3f
cmovae ecx, dword [ebp - 0x4058]
mov word [ebp - 0x3ffe], ax
lea eax, [esi + esi]
push eax
lea eax, [ebp - 0x3ffe]
push ecx
lea eax, [eax + edi*2]
push eax
call fcn.00405610
mov esi, dword [ebp - 0x4060]
lea eax, [ebp - 0x4070]
add esp, 0x24
push 0
push eax
push 0
push 0
push dword [ebp - 0x405c]
lea eax, [ebp - 0x4010]
push eax
push 0x900a4
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x41dbda
push str.Error_occurred_while_creating_the_file.
call fcn.004029e0
add esp, 4
push eax
push 0x4000a
lea eax, [ebp - 0x4028]
push eax
mov eax, dword [ebp - 0x402c]
push str.FSCTL_SET_REPARSE_POINT
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0x3b21fa87
mov dword [ecx + 4], 0xf35f747b
mov dword [ecx + 8], 0x44fc58
mov dword [ecx + 0xc], str.winnt_dir::CreateSymLink
mov dword [ecx + 0x10], 0x37e
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x4060]
push eax
call fcn.0041d0b0
add esp, 0x2c
push eax
mov eax, dword [ebx - 4]
mov byte [ebp - 4], 9
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.004030c0
lea ecx, [ebp - 0x4060]
mov byte [ebp - 4], 6
call fcn.00402f20
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x4014], 8
lea eax, [ebp - 0x4028]
cmovae eax, dword [ebp - 0x4028]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x41dbf3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx - 4]
push 0x465148
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.004030c0
lea ecx, [ebp - 0x406c]
mov byte [ebp - 4], 5
call fcn.00436eb0
lea ecx, [ebp - 0x4064]
mov byte [ebp - 4], 2
call fcn.0042c690
jmp 0x41dca1
push str.Error_occurred_while_creating_the_file.
call fcn.004029e0
add esp, 4
push eax
mov eax, dword [ebp - 0x402c]
push 0x4000a
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0x3b21fa57
mov dword [ecx + 4], 0xf35f747b
mov dword [ecx + 8], 0x44f8e8
mov dword [ecx + 0xc], 0x44f6dc
mov dword [ecx + 0x10], 0x34e
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0x4060]
call fcn.00412b70
push eax
mov eax, dword [ebx - 4]
mov byte [ebp - 4], 3
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.004030c0
mov ecx, dword [ebp - 0x4060]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x41dca1
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x41dca1
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx + 8]
push ecx
mov eax, dword [eax]
call eax
add esp, 4
mov ecx, esi
test esi, esi
jne 0x41dc84
cmp dword [ebp - 0x4044], 8
jb 0x41dcb8
push dword [ebp - 0x4058]
call fcn.00404a15
add esp, 4
xor eax, eax
mov dword [ebp - 0x4044], 7
cmp dword [ebp - 0x402c], 8
mov dword [ebp - 0x4048], 0
mov word [ebp - 0x4058], ax
jb 0x41dcec
push dword [ebp - 0x4040]
call fcn.00404a15
add esp, 4
xor eax, eax
mov dword [ebp - 0x402c], 7
cmp dword [ebp - 0x4014], 8
mov dword [ebp - 0x4030], 0
mov word [ebp - 0x4040], ax
jb 0x41dd20
push dword [ebp - 0x4028]
call fcn.00404a15
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004051a4
mov esp, ebp
pop ebp
ret 0x10