Function at 0x571000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x74461d
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x10], 0
je 0x571239
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x571040
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call esi
mov dword [ebp + 8], eax
cmp ebx, 0xffffffff
jne 0x571099
cmp dword [edi + 0x14], 8
mov ebx, edi
jb 0x571063
mov ebx, dword [edi]
call esi
cmp eax, 2
je 0x571075
call esi
cmp eax, 3
je 0x571075
mov al, 1
jmp 0x571077
xor al, al
push ebx
push str.failed_to_get_attributes_of_folder__s
push eax
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientWinUtil_srcFileSysUtil.cpp
push 0x94
push eax
call fcn.0056e9e0
mov eax, dword [ebp + 8]
add esp, 0x18
jmp 0x5710a5
shr ebx, 4
and bl, 1
jne 0x571239
cmp eax, 2
je 0x5710e5
cmp eax, 3
je 0x5710e5
cmp dword [edi + 0x14], 8
jb 0x5710b7
mov edi, dword [edi]
mov eax, dword [ebp + 4]
push edi
push str.Unexpected_error_in_folder_creation__s
push 1
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientWinUtil_srcFileSysUtil.cpp
push 0x27
push eax
call fcn.0056e9e0
add esp, 0x18
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
mov ebx, edi
mov esi, dword [edi + 0x10]
mov dword [ebp + 8], edi
jb 0x5710f8
mov ebx, dword [edi]
mov dword [ebp + 8], ebx
test esi, esi
je 0x5711e4
push 0x100
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.007051b0
add esp, 0xc
lea ecx, [ebp - 0x124]
dec esi
push 0x79cd68
push 0x79cd64
call fcn.004bdd20
test al, al
jne 0x57117a
or eax, 0xffffffff
cmp esi, eax
cmovb eax, esi
lea ecx, [ebx + eax*2]
movzx ebx, word [ecx]
mov eax, 0x5c
mov esi, 0x79cd64
lea edx, [eax - 0x5a]
cmp ax, bx
je 0x571175
cmp edx, 1
je 0x571166
movzx eax, word [esi + 2]
add esi, 2
dec edx
cmp ax, bx
jne 0x571150
test esi, esi
jne 0x571175
cmp ecx, dword [ebp + 8]
je 0x571170
sub ecx, 2
jmp 0x57113b
or ecx, 0xffffffff
jmp 0x5711af
sub ecx, dword [ebp + 8]
jmp 0x5711ad
or eax, 0xffffffff
mov edx, 0x100
cmp esi, eax
cmovb eax, esi
lea ecx, [ebx + eax*2]
nop word [eax + eax]
movzx eax, word [ecx]
cmp ax, dx
jae 0x5711a2
cmp byte [ebp + eax - 0x124], 0
jne 0x5711ab
cmp ecx, ebx
je 0x5711e4
sub ecx, 2
jmp 0x571190
sub ecx, ebx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x5711e4
push ecx
push 0
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.004bc880
push eax
mov dword [ebp - 4], 0
call fcn.00571000
add esp, 4
lea ecx, [ebp - 0x24]
mov bl, al
call fcn.00484ba0
test bl, bl
je 0x5710d2
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x5711f6
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x571239
cmp dword [edi + 0x14], 8
jb 0x57120b
mov edi, dword [edi]
mov eax, dword [ebp + 4]
push edi
push str.Failed_to_create_directory__s
push 1
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientWinUtil_srcFileSysUtil.cpp
push 0x35
push eax
call fcn.0056e9e0
add esp, 0x18
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret