Function at 0x4141e0
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b5b6
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x58213c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push edi
push eax
call fcn.00413a00
add esp, 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], 0xffffffff
test al, 0x10
je 0x41425a
cmp eax, 0xffffffff
je 0x41425a
mov eax, dword [ebp + 8]
mov dword [eax], 0x582008
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.0041bd90
mov ecx, dword [edi]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 1
cmp eax, ecx
je 0x4143b6
push ecx
push eax
call fcn.00408280
add esp, 8
test eax, eax
je 0x4143b6
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.004141e0
mov eax, dword [ebp - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 2
cmp byte [eax], 0
jne 0x4143a5
push 0x54fb50
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.00428a70
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call fcn.00413a00
add esp, 8
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4142ed
mov dword [ebp - 0x18], 0x582008
lea eax, [ebp - 0x18]
mov edi, 0x582008
lea ebx, [esi + 3]
jmp 0x414300
lea eax, [ebp - 0x1c]
push eax
call fcn.0041c290
add esp, 4
mov ebx, 4
mov edi, dword [eax]
or ebx, 8
mov dword [eax], 0x582008
test bl, 4
je 0x414334
mov ecx, dword [ebp - 0x1c]
and ebx, 0xfffffffb
add ecx, 0xfffffff8
cmp ecx, section..data
je 0x414334
mov eax, esi
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x414334
push ecx
call fcn.00511f41
add esp, 4
test bl, 2
je 0x41435c
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff8
cmp ecx, section..data
je 0x41435c
mov eax, esi
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41435c
push ecx
call fcn.00511f41
add esp, 4
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff8
mov dword [ebp - 0x10], edi
cmp ecx, section..data
je 0x414382
mov eax, esi
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x414382
push ecx
call fcn.00511f41
add esp, 4
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff8
cmp ecx, section..data
je 0x4143a5
mov eax, esi
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x4143a5
push ecx
call fcn.00511f41
add esp, 4
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0x582008
mov dword [edi], eax
jmp 0x4143f9
lea eax, [ebp - 0x18]
push str.Cannot_create_parent_directory
push eax
call fcn.00408a10
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.004185e0
mov ecx, dword [ebp - 0x18]
add esp, 0x10
add ecx, 0xfffffff8
or esi, 0xffffffff
cmp ecx, section..data
je 0x4143f9
mov eax, esi
lock xadd dword [ecx], eax
dec eax
cmp eax, esi
jne 0x4143f9
push ecx
call fcn.00511f41
add esp, 4
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff8
cmp eax, section..data
je 0x414419
lock xadd dword [eax], esi
dec esi
cmp esi, 0xffffffff
jne 0x414419
push eax
call fcn.00511f41
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4