Function at 0x413c60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cac0
mov eax, dword fs:[0]
push eax
mov eax, 0x4104
call fcn.00476960
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
mov dword [ebp - 0x4100], edx
xor edi, edi
mov dword [ebp - 0x2c], 0x427df0
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push ecx
mov dword [ebp - 0x40e8], edi
mov dword [ebp - 0x28], 0x427e10
mov dword [ebp - 0x34], 0x427df0
mov dword [ebp - 0x30], 0x427e10
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x413ceb
call esi
test eax, eax
jne 0x414189
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x427fe0
mov dword [ebp - 0x20], 0x428000
mov dword [ebp - 0x40d8], 0x4280a0
mov dword [ebp - 0x40d4], 0x428100
mov dword [ebp - 0x40d0], 0x428110
mov dword [ebp - 0x40cc], 0x428160
mov dword [ebp - 0x40c8], eax
mov dword [ebp - 0x40c0], edi
mov dword [ebp - 0x40c4], edi
call fcn.00428180
lea ecx, [ebp - 0xb8]
call fcn.00428420
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x40d8]
call fcn.0042a9a0
mov ebx, eax
add esp, 8
mov dword [ebp - 0x40ec], ebx
test ebx, ebx
je 0x413d7e
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0xb8]
call fcn.004284f0
test ebx, ebx
jne 0x4140ba
xor edx, edx
mov dword [ebp - 0x40fc], 0xffffffff
mov dword [ebp - 0x40e4], edi
mov dword [ebp - 0x40f8], edi
mov dword [ebp - 0x40dc], edx
cmp dword [ebp - 0x78], edx
jbe 0x4140aa
mov eax, dword [ebp - 0x70]
mov ecx, edx
and ecx, 7
mov dword [ebp - 0x40f0], 0
mov ebx, 0x80
mov dword [ebp - 0x40e0], 0
sar ebx, cl
mov ecx, edx
shr ecx, 3
mov dword [ebp - 0x4104], ebx
mov dword [ebp - 0x4108], ecx
movzx eax, byte [ecx + eax]
lea ecx, [edx*4]
and eax, ebx
mov dword [ebp - 0x410c], ecx
mov ebx, dword [ebp - 0x44]
add ebx, ecx
mov dword [ebp - 0x18], eax
mov esi, dword [ebx + 4]
sub esi, dword [ebx]
cmp esi, dword [ebp - 0x40e8]
jbe 0x413e2b
push edi
call fcn.0047e690
add esp, 4
mov dword [ebp - 0x40e8], esi
add esi, esi
je 0x414104
push esi
call fcn.0047f333
mov edi, eax
add esp, 4
test edi, edi
je 0x4140a4
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
sub edx, ecx
test edi, edi
je 0x413e54
mov eax, dword [ebp - 0x40]
lea esi, [eax + ecx*2]
test edx, edx
je 0x413e54
mov ecx, edi
sub esi, edi
mov ax, word [esi + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x413e44
cmp dword [ebp - 0x40ec], 0
jne 0x4140a4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
jne 0x413ebb
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x40e0]
push eax
lea eax, [ebp - 0x40f0]
push eax
lea eax, [ebp - 0x40f8]
push eax
lea eax, [ebp - 0x40e4]
push eax
lea eax, [ebp - 0x40fc]
push eax
push dword [ebp - 0x40dc]
lea edx, [ebp - 0x40d8]
lea ecx, [ebp - 0xb8]
call fcn.0042ad50
add esp, 0x20
mov dword [ebp - 0x40ec], eax
test eax, eax
jne 0x4140a4
xor ecx, ecx
cmp word [edi], cx
je 0x413ede
mov eax, edi
lea ebx, [ecx + 0x5c]
cmp word [eax], 0x2f
jne 0x413ed0
mov word [eax], bx
inc ecx
cmp word [edi + ecx*2], 0
lea eax, [edi + ecx*2]
jne 0x413ec7
mov ebx, dword [ebp - 0x18]
push dword [ebp - 0x4100]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.00412940
mov ecx, edi
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413f00
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x14]
call fcn.0040fed0
push 0x5c
push dword [ebp - 0x14]
call fcn.0047897d
mov ecx, dword [ebp - 0x14]
add esp, 8
test eax, eax
je 0x41416a
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x41416a
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
lea ecx, [ebp - 0x14]
call fcn.004142e0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x18]
mov ecx, esi
call fcn.00413a10
push 0
test ebx, ebx
je 0x413fc1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x413f79
call dword [sym.imp.KERNEL32.dll_GetLastError]
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x413f97
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41408e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41408e
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40f4], eax
cmp eax, 0xffffffff
jne 0x413ff3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x414108
mov ecx, dword [ebp - 0x40e4]
lea eax, [ebp - 0x40e0]
mov edx, dword [ebp - 0x40f0]
mov ebx, dword [ebp - 0x40e0]
push eax
mov dword [ebp - 0x40e0], ebx
lea edx, [edx + ecx]
lea ecx, [ebp - 0x40f4]
call fcn.00427ed0
add esp, 4
test eax, eax
jne 0x414108
cmp dword [ebp - 0x40e0], ebx
jne 0x414108
lea ecx, [ebp - 0x40f4]
call fcn.00427e20
test eax, eax
jne 0x41414e
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x414077
mov edx, dword [ebp - 0x4108]
mov ecx, dword [ebp - 0x4104]
test byte [edx + eax], cl
je 0x414077
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x410c]
push dword [ecx + eax]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x18]
call fcn.0040fc90
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0040fc90
mov edx, dword [ebp - 0x40dc]
inc edx
mov dword [ebp - 0x40dc], edx
cmp edx, dword [ebp - 0x78]
jb 0x413da5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x40e4]
lea eax, [ebp - 0x2c]
push eax
call dword [ebp - 0x28]
add esp, 8
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0xb8]
call fcn.004284f0
push edi
call fcn.0047e690
mov eax, dword [ebp - 0x1c]
add esp, 4
cmp eax, 0xffffffff
je 0x4140e6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4140e6
call esi
mov al, 1
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
xor edi, edi
jmp 0x4140a4
or ebx, 0xffffffff
mov byte [ebp - 4], 0
mov eax, ebx
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x414126
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4140a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4140a4
lea ecx, [ebp - 0x18]
call fcn.0040fc90
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0040fc90
jmp 0x4140a4
mov dword [ebp - 4], 0xffffffff
lea edx, [ecx - 0x10]
or ebx, 0xffffffff
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x414189
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
jmp 0x4140e8