Function at 0x40e570
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489c30
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4c4074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040df70
test al, al
je 0x40e5b7
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
mov ecx, dword [edx - 0xc]
cmp ecx, 3
jl 0x40e5f3
test ecx, ecx
js 0x40e808
cmp word [edx], 0x5c
jne 0x40e5f3
cmp ecx, 1
jl 0x40e812
cmp word [edx + 2], 0x5c
jne 0x40e5f3
cmp ecx, 2
jl 0x40e81c
cmp word [edx + 4], 0x3f
mov byte [ebp - 0xd], 1
jne 0x40e5f7
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov edx, esi
lea ecx, [ebp - 0x30]
call fcn.0040e1c0
cmp dword [ebp - 0x2c], 0
jle 0x40e826
mov ecx, dword [ebp - 0x30]
mov ebx, dword [ecx]
mov ecx, dword [ebx - 0x10]
lea edi, [ebx - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
mov ecx, eax
lea eax, [edi + 0xc]
jl 0x40e64b
cmp ecx, dword [edi]
jne 0x40e64b
lock inc dword [eax]
jmp 0x40e675
mov eax, dword [ecx]
lea esi, [edi + 4]
push 2
push dword [esi]
call dword [eax]
mov edi, eax
test edi, edi
je 0x40e832
mov eax, dword [esi]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov edx, dword [esi]
inc edx
push edx
push ebx
call fcn.004024f0
add esp, 8
add edi, 0x10
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
xor eax, eax
mov ecx, dword [ebp - 0x2c]
dec ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], ecx
lea ebx, [eax + 1]
cmp ecx, ebx
jle 0x40e7bf
mov ecx, dword [edi - 0x10]
lea esi, [edi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x40e6b5
cmp ecx, dword [esi]
jne 0x40e6b5
lock inc dword [eax]
jmp 0x40e6e6
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x40e832
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
lea ecx, [eax + 0x10]
mov edx, dword [esi + 4]
add esi, 0x10
inc edx
push edx
push esi
call fcn.004024f0
mov esi, dword [ebp - 0x20]
add esp, 8
lea eax, [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
push 1
push 0x4a8ad8
call fcn.004023a0
test ebx, ebx
js 0x40e826
cmp ebx, dword [ebp - 0x2c]
jge 0x40e826
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x1c]
mov eax, dword [eax + ebx*4]
push dword [eax - 0xc]
push eax
call fcn.004023a0
mov esi, dword [ebp - 0x1c]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e748
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp eax, 0xb7
je 0x40e748
cmp byte [ebp - 0xd], 0
je 0x40e793
push 1
push 0x4a8ad8
lea ecx, [ebp - 0x14]
call fcn.004023a0
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + ebx*4]
lea ecx, [ebp - 0x14]
push dword [eax - 0xc]
push eax
call fcn.004023a0
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40e785
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x14]
inc ebx
cmp ebx, dword [ebp - 0x24]
jge 0x40e7bc
jmp 0x40e696
cmp ebx, 1
jle 0x40e7a0
lea ecx, [ebp - 0x14]
call fcn.0040deb0
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40e7bc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
xor esi, esi
cmp eax, 0xb7
cmovne esi, eax
mov byte [ebp - 4], 0
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40e7e5
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00407e70
mov eax, esi
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 0x80070057
call fcn.004024c0
push 0x80070057
call fcn.004024c0
push 0x80070057
call fcn.004024c0
push 1
push 0xc000008c
call fcn.004086a0
call fcn.004024e0
int3