Function at 0x40dab0
Capabilities:
Access peb ldr_data
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4287e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x431040]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x28], 0
mov eax, dword [0x4321e8]
mov edx, dword [eax + 0xc]
mov ecx, 0x4321e8
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x28], 1
mov eax, dword [0x4321e8]
mov edx, dword [eax + 0xc]
mov ecx, 0x4321e8
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x28], 2
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx - 0xc]
xor edx, edx
mov dword [esp + 0x1c], edx
test eax, eax
jle 0x40dbf9
test edx, edx
jl 0x40dc50
cmp edx, eax
jg 0x40dc50
mov bl, byte [edx + ecx]
mov ebp, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
lea edi, [ebp + 1]
sub eax, edi
or eax, ecx
jge 0x40db63
mov ecx, edi
lea eax, [esp + 0x18]
call fcn.00401540
mov esi, dword [esp + 0x18]
mov byte [esi + ebp], bl
test edi, edi
jl 0x40dc50
cmp edi, dword [esi - 8]
jg 0x40dc50
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
cmp bl, 0x5c
je 0x40db88
cmp bl, 0x2f
jne 0x40dbe1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [esp + 0x14]
lea eax, [esi - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x40dbe1
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x40dbd4
mov ecx, dword [eax]
cmp ecx, dword [edi]
jne 0x40dbd4
call fcn.00402bb0
mov ebp, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x40dbcb
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add ebp, 0x10
mov dword [esp + 0x14], ebp
jmp 0x40dbe1
mov edi, dword [esi - 0xc]
push esi
lea eax, [esp + 0x18]
call fcn.004015b0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx - 0xc]
inc edx
cmp edx, eax
mov dword [esp + 0x1c], edx
jl 0x40db2a
cmp dword [esp + 0x34], 0
je 0x40dc67
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x40dc67
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x40dc5a
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40dc5a
call fcn.00402bb0
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40dc47
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebp, 0x10
mov dword [esp + 0x14], ebp
jmp 0x40dc67
push 0x80070057
call fcn.00401590
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.004015b0
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
mov edi, eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [esp + 0x28], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dcb6
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dcde
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret