Function at 0x40d930
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4357c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x446414]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401bd0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x10]
mov edi, dword [ecx - 0xc]
lea eax, [edi - 1]
cmp eax, ebx
jl 0x40d985
cmp eax, edi
jg 0x40d985
cmp word [ecx + eax*2], 0x5c
je 0x40d9ca
lea esi, [edi + 1]
cmp esi, ebx
jge 0x40d98f
push 0x80070057
call fcn.00402dc0
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x40d9ad
mov eax, esi
lea ecx, [ebp - 0x10]
call fcn.004022e0
mov ecx, dword [ebp - 0x10]
mov edx, 0x5c
mov word [ecx + edi*2], dx
mov eax, dword [ebp - 0x10]
cmp esi, dword [eax - 8]
jg 0x40d985
mov dword [eax - 0xc], esi
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov word [ecx + esi*2], ax
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
mov dword [ebp - 0x1c], 1
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
xor edx, edx
xor edi, edi
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 0xc]
mov dword [ebp - 0x18], ebx
test eax, eax
jle 0x40daeb
test ebx, ebx
js 0x40d985
cmp ebx, eax
jg 0x40d985
movzx ecx, word [ecx + ebx*2]
cmp ecx, 0x5c
je 0x40da78
cmp ebx, eax
jg 0x40d985
mov ebx, dword [esi - 0xc]
lea edi, [ebx + 1]
mov dword [ebp - 0x20], ecx
test edi, edi
js 0x40d985
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40da59
mov eax, edi
lea ecx, [ebp - 0x14]
call fcn.004022e0
mov esi, dword [ebp - 0x14]
mov dx, word [ebp - 0x20]
mov word [esi + ebx*2], dx
cmp edi, dword [esi - 8]
jg 0x40d985
mov ebx, dword [ebp - 0x18]
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
jmp 0x40dad3
lea ecx, [ebp - 0x14]
lea edi, [ebp - 0x30]
call fcn.0040eb70
mov esi, dword [ebp - 0x14]
mov edx, dword [esi - 0xc]
lea edi, [edx + 1]
mov dword [ebp - 0x20], edx
test edi, edi
js 0x40d985
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40dab8
mov eax, edi
lea ecx, [ebp - 0x14]
call fcn.004022e0
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov ecx, 0x5c
mov word [esi + edx*2], cx
cmp edi, dword [esi - 8]
jg 0x40d985
xor edx, edx
mov dword [esi - 0xc], edi
mov word [esi + edi*2], dx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 0xc]
inc ebx
mov dword [ebp - 0x18], ebx
cmp ebx, eax
jl 0x40da09
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov ebx, edx
cmp edx, edi
je 0x40db0d
mov eax, dword [ebx]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40db03
mov dword [ebp - 0x1c], eax
add ebx, 4
cmp ebx, edi
jne 0x40daf1
mov edx, dword [ebp - 0x30]
mov byte [ebp - 4], 1
test edx, edx
je 0x40db51
mov ebx, edx
cmp edx, edi
je 0x40db48
jmp 0x40db20
mov eax, dword [ebx]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40db3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 4
cmp ebx, edi
jne 0x40db20
mov edx, dword [ebp - 0x30]
push edx
call fcn.0041fcdf
add esp, 4
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40db71
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40db97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret