Function at 0x10006590
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000e2a6
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x10013034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x27c], edi
mov dword [ebp - 0x274], 0
mov esi, 1
mov dword [ebp - 4], esi
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 0xc]
mov dword [ebp - 0x274], esi
test eax, eax
jne 0x10006610
push 0x1000fe60
lea eax, [ebp + 8]
push eax
lea ebx, [esi + 1]
call fcn.10007ca0
mov ecx, dword [ebp + 8]
mov esi, dword [edi]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x10006663
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x10006659
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x10006659
call fcn.10007d50
mov dword [ebp - 0x268], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x1000664c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x268]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x10006663
mov ebx, dword [ecx - 0xc]
push ecx
push edi
call fcn.10007ca0
mov edx, dword [edi]
cmp dword [edx - 0xc], 0xc8
jle 0x100066af
mov eax, 0xc8
lea ecx, [ebp - 0x268]
mov edx, edi
call fcn.10006eb0
mov byte [ebp - 4], 2
call fcn.10006910
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100066af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, edi
call fcn.10003900
lea ecx, [ebp - 0x26c]
push 0x100136d8
push ecx
mov ebx, str.temp_
call fcn.10006fd0
add esp, 8
lea edx, [ebp - 0x264]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x26c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x100066f5
test byte [ebp - 0x264], 0x10
jne 0x10006704
mov ecx, dword [ebp - 0x26c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, [ebp - 0x278]
push edi
push edx
lea ebx, [ebp - 0x26c]
call fcn.10006f20
push eax
lea eax, [ebp - 0x270]
push eax
mov ebx, 0x1000fe68
mov byte [ebp - 4], 4
call fcn.10006fd0
add esp, 0x10
mov byte [ebp - 4], 5
mov ecx, dword [eax]
mov esi, dword [edi]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x10006789
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x1000677f
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x1000677f
call fcn.10007d50
mov dword [ebp - 0x268], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x10006772
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x268]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x10006789
mov ebx, dword [ecx - 0xc]
push ecx
push edi
call fcn.10007ca0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x270]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100067af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x278]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100067d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100067fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000681e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000d260
mov esp, ebp
pop ebp
ret 4