Function at 0x40e450
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x44ae40
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push edi
mov eax, dword [0x4606b0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
call fcn.00415588
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e490
push 0x80004005
call fcn.00407b00
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 + 0x28], 0
call fcn.00415588
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e4c2
push 0x80004005
call fcn.00407b00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.00407530
mov eax, dword [esi]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push eax
call ebx
test eax, eax
je 0x40e50e
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40e71d
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x40e6cd
push 0x453db4
push eax
call fcn.00434b98
add esp, 8
test eax, eax
je 0x40e6cd
mov ecx, dword [esi]
sub eax, ecx
cmp eax, 0xffffffff
je 0x40e6cd
cmp dword [ecx - 0xc], 0
jge 0x40e548
or edi, 0xffffffff
jmp 0x40e563
push 0x453db4
push ecx
call fcn.00434b98
add esp, 8
test eax, eax
jne 0x40e55f
or edi, 0xffffffff
jmp 0x40e563
sub eax, dword [esi]
mov edi, eax
lea ecx, [edi + 1]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00406150
mov byte [esp + 0x28], 2
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004063c0
mov byte [esp + 0x28], 1
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 0x40e5ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi]
mov eax, dword [ecx - 0xc]
sub eax, edi
dec eax
push eax
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0040ee10
mov byte [esp + 0x28], 3
mov ecx, dword [eax]
mov edi, dword [esi]
lea eax, [ecx - 0x10]
sub edi, 0x10
cmp eax, edi
je 0x40e61f
cmp dword [edi + 0xc], 0
lea ebp, [edi + 0xc]
jl 0x40e613
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40e613
push eax
call fcn.004076d0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x40e606
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0x10
mov dword [esi], ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
jmp 0x40e61f
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00407800
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e644
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
push edi
call ebx
test eax, eax
jne 0x40e50e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40e50e
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00407530
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e694
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e6b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004063c0
mov edi, dword [esp + 0x14]
push edi
call ebx
test eax, eax
jne 0x40e6f8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40e663
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00407530
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e729
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x28], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e749
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret