Function at 0x40ff90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6982b5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x75f140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x38]
call fcn.0044909b
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.0041b770
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], eax
call fcn.0042a586
mov ecx, eax
test ecx, ecx
je 0x41023c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x6c1a00
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00402960
test al, al
jne 0x41001e
push 1
push 0x6c1a00
lea ecx, [ebp - 0x10]
call fcn.00403730
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x20]
call fcn.0040b610
mov edx, dword [ebp - 0x10]
or ebx, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41004f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov esi, esp
mov dword [ebp - 0x14], esi
call fcn.0042a586
test eax, eax
je 0x41023c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
mov edi, dword [ebp + 8]
mov ecx, esi
push edi
mov byte [ebp - 4], 4
call fcn.00402960
test al, al
jne 0x4100a2
test edi, edi
jne 0x410089
xor ecx, ecx
jmp 0x410099
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410090
sub ecx, edx
push ecx
push edi
mov ecx, esi
call fcn.00403730
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.0041bf80
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x24]
call fcn.0041b9b0
cmp dword [ebp - 0x30], 2
jne 0x410216
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.0042a586
mov ecx, eax
test ecx, ecx
je 0x410246
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x6c1a10
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00402960
test al, al
jne 0x410108
push 1
push 0x6c1a10
lea ecx, [ebp - 0x10]
call fcn.00403730
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x20]
call fcn.0040b610
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410136
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x30], 0
jle 0x410250
push ecx
mov esi, esp
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00407700
add esp, 4
lea ecx, [ebp - 0x24]
add eax, 0x10
mov dword [esi], eax
call fcn.0041bf80
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x38]
call fcn.004496a0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x24]
call fcn.0041b9b0
call fcn.0042a586
mov ecx, eax
test ecx, ecx
je 0x41023c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x30]
xor esi, esi
mov byte [ebp - 4], 7
lea ecx, [edx - 1]
test ecx, ecx
jle 0x4101f6
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [eax]
test esi, esi
js 0x410250
cmp esi, edx
jge 0x410250
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x10]
mov eax, dword [eax + esi*4]
push dword [eax - 0xc]
push eax
call fcn.0040d9b0
push 0
push dword [ebp - 0x10]
call edi
push 1
push 0x6c1a10
lea ecx, [ebp - 0x10]
call fcn.0040d9b0
mov edx, dword [ebp - 0x30]
inc esi
lea eax, [edx - 1]
cmp esi, eax
jl 0x4101b0
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41020f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x410218
xor esi, esi
lea ecx, [ebp - 0x24]
call fcn.0041b8d0
lea ecx, [ebp - 0x38]
call fcn.004490b2
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 0x80004005
call fcn.00402130
push 0x80004005
call fcn.00402130
call fcn.004273da
int3