Function at 0x40edf0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46cfd8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x495574]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040eb50
add esp, 4
mov dword [ebp - 4], 0
or esi, 0xffffffff
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [eax - 0xc], 0
jne 0x40ee44
xor bl, bl
jmp 0x40ef7b
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push str.KbdEdit
call fcn.0040e2b0
add esp, 4
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
call fcn.0040def0
test eax, eax
jne 0x40ee7c
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ee7c
xor bl, bl
jmp 0x40ef2a
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push str.LayoutidTracking.bin
call fcn.0040e2b0
add esp, 4
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov edi, dword [ebx]
sub edi, 0x10
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x40eed7
cmp dword [edi + 0xc], 0
jl 0x40eecc
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x40eecc
push edx
call fcn.00403cc0
add esp, 4
mov ecx, edi
mov esi, eax
call fcn.00404850
lea eax, [esi + 0x10]
or esi, 0xffffffff
mov dword [ebx], eax
jmp 0x40eed7
push dword [ecx - 0xc]
push ecx
mov ecx, ebx
call fcn.004041d0
mov byte [ebp - 4], 1
mov eax, esi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40ef22
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, 0x471758
jne 0x40efe0
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40efe0
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [edx + 4]
call edi
jmp 0x40ef28
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov bl, 1
mov byte [ebp - 4], 0
mov eax, esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40ef7b
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x1c], edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, 0x471758
jne 0x40eff0
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x1c], edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40efe9
push 0
push dword [edx + 4]
call edi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40efcc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, 0x471758
jne 0x40eff9
mov eax, dword [ecx + 4]
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
cmp ecx, vtable.ATL::CWin32Heap.0
jne 0x40eff7
push 0
push dword [eax + 4]
call edi
mov al, bl
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 al, bl
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 ecx, edx
call edi
jmp 0x40ef22
mov ecx, edx
call dword [ebp - 0x1c]
jmp 0x40ef7b
mov ecx, edx
call dword [ebp - 0x1c]
jmp 0x40ef7b
mov ecx, eax
call esi
jmp 0x40efcc