Function at 0x41d510
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c2d1
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x60c9c8]
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 eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x224], ebx
cmp eax, 0x11
jne 0x41d752
call fcn.0043e2f8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41d56f
push 0x80004005
call fcn.00402a80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x220]
lea edi, [esi + 0x158]
push ecx
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00416300
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.004034d0
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d5d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.00531fb0
mov eax, dword [ebx]
push eax
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.00532f33
lea edx, [ebp - 0x218]
push 0x5c
push edx
call fcn.00533c38
mov esi, eax
add esp, 0x20
test esi, esi
je 0x41d6e3
lea eax, [ebp - 0x220]
push eax
mov ecx, edi
call fcn.0041af90
xor ecx, ecx
mov word [esi], cx
add esi, 2
push 0x5c
push esi
mov byte [ebp - 4], 2
call fcn.0053309c
mov edi, eax
add esp, 8
test edi, edi
je 0x41d64c
add edi, 2
jmp 0x41d64e
mov edi, esi
mov ebx, dword [ebp - 0x21c]
cmp dword [ebx - 4], 1
jle 0x41d66f
mov edx, dword [ebx - 0xc]
push edx
lea ecx, [ebp - 0x21c]
call fcn.00402d60
mov ebx, dword [ebp - 0x21c]
mov esi, dword [ebp - 0x224]
lea eax, [ebp - 0x218]
push eax
push ebx
push 0x55d250
add esi, 0x12
push 0x104
push esi
call fcn.00533b0b
add esp, 0x14
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x41d6a6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
push esi
push 0x55d250
push 0x104
push esi
call fcn.00533b0b
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d728
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41d728
mov ebx, dword [ebp - 0x21c]
cmp dword [ebx - 4], 1
jle 0x41d704
mov ecx, dword [ebx - 0xc]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00402d60
mov ebx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x218]
push edx
push ebx
push 0x55d250
add eax, 0x12
push 0x104
push eax
call fcn.00533b0b
add esp, 0x14
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d74b
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, 1
jmp 0x41d767
cmp eax, 0x13
jne 0x41d765
mov eax, dword [ebx]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
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.00531f97
mov esp, ebp
pop ebp
ret 0xc