Function at 0x40cf50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e758
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x43a050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
call fcn.00401710
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, dword [esi - 0xc]
lea eax, [ebx - 1]
cmp eax, edx
jl 0x40cfac
cmp eax, ebx
jg 0x40cfac
cmp word [esi + eax*2], 0x5c
je 0x40cfed
lea edi, [ebx + 1]
cmp edi, edx
jge 0x40cfb6
push 0x80070057
call fcn.00401000
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40cfd6
mov eax, edi
lea ecx, [ebp - 0x14]
call fcn.004019a0
mov esi, dword [ebp - 0x14]
xor edx, edx
mov ecx, 0x5c
mov word [esi + ebx*2], cx
cmp edi, dword [esi - 8]
jg 0x40cfac
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 1
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
mov eax, dword [esi - 0xc]
xor ebx, ebx
mov byte [ebp + 0xb], 0
mov dword [ebp - 0x18], ebx
test eax, eax
jle 0x40d10c
jmp 0x40d033
mov esi, dword [ebp - 0x14]
test ebx, ebx
js 0x40cfac
cmp ebx, eax
jg 0x40cfac
movzx ecx, word [esi + ebx*2]
cmp ecx, 0x5c
je 0x40d0a5
cmp ebx, eax
jg 0x40cfac
mov edx, dword [edi - 0xc]
lea esi, [edx + 1]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
test esi, esi
js 0x40cfac
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x40d089
mov eax, esi
lea ecx, [ebp - 0x10]
call fcn.004019a0
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov ax, word [ebp - 0x1c]
mov word [edi + edx*2], ax
cmp esi, dword [edi - 8]
jg 0x40cfac
xor ecx, ecx
mov dword [edi - 0xc], esi
mov word [edi + esi*2], cx
jmp 0x40d0fa
lea ebx, [ebp - 0x10]
lea esi, [ebp - 0x28]
call fcn.00416130
mov ebx, dword [edi - 0xc]
lea esi, [ebx + 1]
test esi, esi
js 0x40cfac
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x40d0dc
mov eax, esi
lea ecx, [ebp - 0x10]
call fcn.004019a0
mov edi, dword [ebp - 0x10]
mov edx, 0x5c
mov word [edi + ebx*2], dx
cmp esi, dword [edi - 8]
jg 0x40cfac
mov ebx, dword [ebp - 0x18]
xor eax, eax
mov dword [edi - 0xc], esi
mov word [edi + esi*2], ax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx - 0xc]
inc ebx
mov dword [ebp - 0x18], ebx
cmp ebx, eax
jl 0x40d030
xor esi, esi
cmp dword [ebp - 0x24], esi
jle 0x40d141
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test esi, esi
js 0x40d1dc
cmp esi, dword [ebp - 0x24]
jge 0x40d1dc
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + esi*4]
push 0
push eax
call ebx
test eax, eax
setne byte [ebp + 0xb]
inc esi
cmp esi, dword [ebp - 0x24]
jl 0x40d119
add edi, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d161
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov byte [ebp - 4], 0
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x40d1a1
xor esi, esi
cmp dword [ebp - 0x24], esi
jle 0x40d198
mov eax, dword [edi + esi*4]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d192
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc esi
cmp esi, dword [ebp - 0x24]
jl 0x40d173
push edi
call fcn.0041ae9d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d1c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]