Function at 0x40a5d0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4a0aa0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d9700]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
call fcn.0046416b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a611
push 0x80004005
call fcn.00405a40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], 0
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x40a64f
push 0x104
lea ecx, [esp + 0x18]
call fcn.004059c0
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x40a674
push 0x5c
push eax
call fcn.0047d130
add esp, 8
test eax, eax
je 0x40a674
sub eax, dword [ebx]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a6b0
add edi, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a7db
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ecx, dword [ebx]
mov edx, dword [ecx - 0xc]
lea eax, [esi + 1]
test eax, eax
jl 0x40a7a2
cmp eax, edx
jge 0x40a7a2
add ecx, eax
push 0x5c
push ecx
call fcn.0047d130
add esp, 8
test eax, eax
je 0x40a7a2
sub eax, dword [ebx]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40a7a2
push ebp
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.0040b2d0
mov byte [esp + 0x24], 1
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x40a757
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40a745
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40a745
push eax
call fcn.0040bba0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40a738
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebx + 0x10]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x14], edi
jmp 0x40a757
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00405a90
mov edi, dword [esp + 0x14]
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a77c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push edi
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40a6b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40a6b0
jmp 0x40a7b7
mov ebx, dword [ebx]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40a7b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [edi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a7db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret