Function at 0x40dd70
Capabilities:
Access peb ldr_data
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x42a9c8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4340a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x28], 0
mov eax, dword [0x435210]
mov edx, dword [eax + 0xc]
mov ecx, 0x435210
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x28], 1
mov eax, dword [0x435210]
mov edx, dword [eax + 0xc]
mov ecx, 0x435210
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 0x40deb9
test edx, edx
jl 0x40df10
cmp edx, eax
jg 0x40df10
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 0x40de23
mov ecx, edi
lea eax, [esp + 0x18]
call fcn.00401b90
mov esi, dword [esp + 0x18]
mov byte [esi + ebp], bl
test edi, edi
jl 0x40df10
cmp edi, dword [esi - 8]
jg 0x40df10
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
cmp bl, 0x5c
je 0x40de48
cmp bl, 0x2f
jne 0x40dea1
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 0x40dea1
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x40de94
mov ecx, dword [eax]
cmp ecx, dword [edi]
jne 0x40de94
call fcn.004031e0
mov ebp, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x40de8b
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 0x40dea1
mov edi, dword [esi - 0xc]
push esi
lea eax, [esp + 0x18]
call fcn.00401be0
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 0x40ddea
cmp dword [esp + 0x34], 0
je 0x40df27
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 0x40df27
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x40df1a
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40df1a
call fcn.004031e0
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40df07
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 0x40df27
push 0x80070057
call fcn.00401720
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00401be0
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 0x40df55
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 0x40df76
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 0x40df9e
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