Function at 0x424ed0
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x5868f4]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [0x58b9d4]
push ebx
mov ebx, edx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
test eax, eax
je 0x424f19
mov esi, dword [0x58b9d8]
mov ecx, esi
push 1
push 1
push eax
push dword [0x58b4cc]
call dword [0x548398]
call esi
push 0
push 0x80
push 4
push 0
push 7
push 0x40000000
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42506f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
jne 0x424fa8
mov ecx, dword [ebp + 8]
xor edx, edx
push 1
call fcn.00430ed0
test eax, eax
jne 0x424fa8
mov eax, dword [0x58b9d4]
test eax, eax
je 0x424f81
mov esi, dword [0x58b9d8]
mov ecx, esi
push 1
push 1
push eax
push dword [0x58b4cc]
call dword [0x548398]
call esi
push 0
push 0x80
push 4
push 0
push 7
push 0x40000000
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42506f
push 0x1c8
lea eax, [esp + 0x5c]
mov ecx, 0x10
mov esi, str._windir_LogsQualysAgentLogs_
lea edi, [esp + 0x1c]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00516d20
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.004314d0
test eax, eax
jne 0x42513d
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0x10]
mov esi, 0x104
push eax
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.00408320
test eax, eax
js 0x42501f
mov eax, dword [esp + 0x10]
sub esi, eax
push 0x7fffffff
push dword [ebp + 0xc]
mov edx, esi
push ecx
lea ecx, [esp + 0x24]
lea ecx, [ecx + eax*2]
call fcn.00408260
mov eax, dword [0x58b9d4]
test eax, eax
je 0x425043
mov esi, dword [0x58b9d8]
mov ecx, esi
push 1
push 1
push eax
push dword [0x58b4cc]
call dword [0x548398]
call esi
push 0
push 0x80
push 4
push 0
push 7
push 0x40000000
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42513d
mov edi, dword [esp + 0xc]
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x587300], 6
jne 0x42508c
cmp eax, 0x1900000
jmp 0x425092
cmp eax, dword [0x58b4c4]
sbb ecx, ecx
inc ecx
test ecx, ecx
je 0x4250fc
test esi, esi
je 0x4250a4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x10]
lea edx, [ebp + 0x21c]
lea ecx, [ebp + 0x14]
call fcn.004252a0
mov eax, dword [0x58b9d4]
add esp, 4
test eax, eax
je 0x4250dc
mov esi, dword [0x58b9d8]
mov ecx, esi
push 1
push 1
push eax
push dword [0x58b4cc]
call dword [0x548398]
call esi
push 0
push 0x80
push 2
push 0
push 7
push 0x40000000
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x42513d
test eax, eax
jne 0x425122
mov eax, 0xfeff
lea edx, [esp + 0xc]
push ecx
mov word [esp + 0x10], ax
mov ecx, esi
lea eax, [esp + 0x18]
push eax
push 2
call fcn.00430e20
push ecx
lea eax, [esp + 0x18]
mov edx, edi
push eax
push ebx
mov ecx, esi
call fcn.00430e20
test esi, esi
je 0x42513d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret