Function at 0x40cd3f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46dad2
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1240
call fcn.0045c0d0
mov eax, dword [0x498fa4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1238], esi
mov ebx, edx
call fcn.0040a7a8
test ebx, ebx
je 0x40d134
push ebx
call fcn.00457fd3
pop ecx
cmp eax, 4
jb 0x40d134
xor eax, eax
mov word [ebp - 0x1c], ax
push 0x11fe
lea edi, [ebp - 0x1a]
push eax
stosd dword es:[edi], eax
mov word [ebp - 0x1220], ax
lea eax, [ebp - 0x121e]
push eax
call fcn.00458750
add esp, 0xc
push ebx
lea ecx, [ebp - 0x1224]
call fcn.00401b81
and dword [ebp - 4], 0
push 0x5c
push 0x2f
lea ebx, [ebp - 0x1224]
call fcn.0040d996
lea eax, [ebp - 0x122c]
xor ebx, ebx
push eax
inc ebx
mov eax, ebx
lea ecx, [ebp - 0x1224]
call fcn.004038f6
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
jne 0x40ce1f
test ecx, ecx
jge 0x40ce0f
push 0x80070057
call fcn.004026e4
movzx eax, word [eax]
mov byte [ebp - 0x1225], 0
cmp ax, 0x5c
je 0x40ce25
mov byte [ebp - 0x1225], bl
mov ecx, dword [ebp - 0x122c]
add ecx, 0xfffffff0
call fcn.00402595
cmp byte [ebp - 0x1225], 0
je 0x40ce47
lea edi, [ebp - 0x1224]
call fcn.0040df82
push 0
push 0
lea eax, [ebp - 0x1220]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1224]
call fcn.0045b492
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1224]
add esp, 0x14
add ecx, 0xfffffff0
call fcn.00402595
lea ecx, [ebp - 0x1250]
call fcn.004039c3
lea eax, [ebp - 0x1220]
push eax
lea ecx, [ebp - 0x1230]
mov dword [ebp - 4], ebx
call fcn.00401b81
mov eax, ebx
lea edx, [ebp - 0x122c]
lea ecx, [ebp - 0x1230]
mov byte [ebp - 4], 2
call fcn.00403940
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
jne 0x40cec7
test ecx, ecx
jl 0x40ce05
movzx eax, word [eax]
cmp ax, 0x5c
je 0x40cec9
xor bl, bl
mov ecx, dword [ebp - 0x122c]
add ecx, 0xfffffff0
call fcn.00402595
test bl, bl
je 0x40cf19
mov eax, dword [ebp - 0x1230]
mov eax, dword [eax - 0xc]
lea ecx, [ebp - 0x122c]
push ecx
dec eax
lea ecx, [ebp - 0x1230]
call fcn.004038f6
push eax
lea ecx, [ebp - 0x1230]
mov byte [ebp - 4], 3
call fcn.00401f86
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x122c]
add ecx, 0xfffffff0
call fcn.00402595
mov esi, 0x49ed00
push esi
lea ecx, [ebp - 0x1224]
call fcn.00401e4f
mov edi, 0x482b30
push edi
lea eax, [ebp - 0x1234]
mov byte [ebp - 4], 4
and dword [ebp - 0x122c], 0
push eax
lea ecx, [ebp - 0x122c]
lea ebx, [ebp - 0x1230]
call fcn.0040377c
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x1224]
call fcn.00401f86
mov ecx, dword [ebp - 0x1234]
add ecx, 0xfffffff0
call fcn.00402595
mov eax, dword [ebp - 0x1224]
cmp dword [eax - 0xc], 0
je 0x40d01e
lea eax, [ebp - 0x1224]
push eax
lea ecx, [ebp - 0x1250]
mov byte [ebp - 4], 6
call fcn.00403a25
push edi
lea eax, [ebp - 0x1234]
push eax
lea ecx, [ebp - 0x122c]
lea ebx, [ebp - 0x1230]
mov dword [ebp - 4], 4
call fcn.0040377c
mov byte [ebp - 4], 8
jmp 0x40cf57
lea ecx, [ebp - 0x1250]
call fcn.00403e5c
push dword [ebp - 0x1250]
call fcn.00457fb9
pop ecx
mov eax, esi
jmp 0x40d143
lea ecx, [eax - 0x10]
call fcn.00402595
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1230]
add ecx, 0xfffffff0
call fcn.00402595
mov eax, dword [ebp - 0x1240]
sub eax, dword [ebp - 0x1244]
test eax, 0xfffffffc
jne 0x40d062
mov esi, dword [ebp - 0x1238]
mov eax, dword [esi]
push 0x80070057
mov ecx, esi
call dword [eax + 4]
mov esi, dword [esi + 0x10]
jmp 0x40d000
push esi
lea ecx, [ebp - 0x1224]
call fcn.00401e4f
push 0x482b24
lea ecx, [ebp - 0x1224]
mov byte [ebp - 4], 9
call fcn.00403ec4
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x1224]
call fcn.00403ec4
mov eax, dword [ebp - 0x1240]
sub eax, dword [ebp - 0x1244]
xor esi, esi
sar eax, 2
test eax, eax
jbe 0x40d11e
push edi
lea ecx, [ebp - 0x1224]
call fcn.00403ec4
push esi
lea ecx, [ebp - 0x1250]
call fcn.0040da18
push eax
lea ecx, [ebp - 0x1224]
call fcn.0040daa2
mov ebx, dword [ebp - 0x1224]
push ebx
call fcn.0044e770
pop ecx
test eax, eax
jne 0x40d0e7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40d0fd
mov eax, dword [ebp - 0x1240]
sub eax, dword [ebp - 0x1244]
inc esi
sar eax, 2
cmp esi, eax
jb 0x40d0a6
jmp 0x40d124
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x1238]
call fcn.0040aa9e
mov esi, dword [eax + 0x10]
lea ecx, [ebx - 0x10]
call fcn.00402595
jmp 0x40d000
mov ebx, dword [ebp - 0x1224]
mov esi, dword [ebp - 0x1238]
call fcn.0040a7a8
mov esi, dword [esi + 0x10]
jmp 0x40d111
mov eax, dword [esi]
push 0x80070057
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00457fc4
leave
ret