Function at 0x413a10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ca88
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4c6374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.00412940
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov edi, dword [eax - 0xc]
lea ecx, [edi - 1]
test ecx, ecx
js 0x413a75
cmp ecx, edi
jg 0x413a75
mov ebx, 0x5c
cmp word [eax + ecx*2], bx
je 0x413ab4
lea esi, [edi + 1]
test esi, esi
jns 0x413a7f
push 0x80070057
call fcn.0040f6f0
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x413a9c
push esi
lea ecx, [ebp - 0x14]
call fcn.0040ffa0
mov eax, dword [ebp - 0x14]
mov word [eax + edi*2], bx
mov eax, dword [ebp - 0x14]
cmp esi, dword [eax - 8]
jg 0x413a75
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax + esi*2], cx
xor edi, edi
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], edi
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 1
call fcn.0040f990
mov ecx, eax
test ecx, ecx
jne 0x413ae7
push 0x80004005
call fcn.0040f6f0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 2
xor ebx, ebx
mov eax, dword [ebp - 0x14]
mov byte [ebp - 0x25], 0
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x413bd9
nop word [eax + eax]
test ebx, ebx
js 0x413a75
cmp ebx, ecx
jg 0x413a75
movzx edx, word [eax + ebx*2]
cmp edx, 0x5c
je 0x413b6c
cmp ebx, ecx
jg 0x413a75
mov eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x30], eax
lea edi, [eax + 1]
test edi, edi
js 0x413a75
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x413b64
push edi
lea ecx, [ebp - 0x18]
call fcn.0040ffa0
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
jmp 0x413bb1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call fcn.00414190
mov esi, dword [ebp - 0x18]
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x2c], eax
lea edi, [eax + 1]
test edi, edi
js 0x413a75
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x413ba9
push edi
lea ecx, [ebp - 0x18]
call fcn.0040ffa0
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, 0x5c
mov word [esi + eax*2], cx
cmp edi, dword [esi - 8]
jg 0x413a75
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
inc ebx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
cmp ebx, ecx
jl 0x413b10
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
cmp edi, ebx
je 0x413bf7
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne byte [ebp - 0x25]
add edi, 4
cmp edi, ebx
jne 0x413be0
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413c15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x24]
call fcn.004143b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x413c3c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x25]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret