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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x70016d
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 0x53d329
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x53d130
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 0x53d189
cmp dword [edi + 0x14], 8
mov ebx, edi
jb 0x53d153
mov ebx, dword [edi]
call esi
cmp eax, 2
je 0x53d165
call esi
cmp eax, 3
je 0x53d165
mov al, 1
jmp 0x53d167
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 0x8e
push eax
call fcn.0053af00
mov eax, dword [ebp + 8]
add esp, 0x18
jmp 0x53d195
shr ebx, 4
and bl, 1
jne 0x53d329
cmp eax, 2
je 0x53d1d5
cmp eax, 3
je 0x53d1d5
cmp dword [edi + 0x14], 8
jb 0x53d1a7
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.0053af00
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 0x53d1e8
mov ebx, dword [edi]
mov dword [ebp + 8], ebx
test esi, esi
je 0x53d2d4
push 0x100
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.006c2360
add esp, 0xc
lea ecx, [ebp - 0x124]
dec esi
push 0x74e298
push 0x74e294
call fcn.004a26c0
test al, al
jne 0x53d26a
or eax, 0xffffffff
cmp esi, eax
cmovb eax, esi
lea ecx, [ebx + eax*2]
movzx ebx, word [ecx]
mov eax, 0x5c
mov esi, 0x74e294
lea edx, [eax - 0x5a]
cmp ax, bx
je 0x53d265
cmp edx, 1
je 0x53d256
movzx eax, word [esi + 2]
add esi, 2
dec edx
cmp ax, bx
jne 0x53d240
test esi, esi
jne 0x53d265
cmp ecx, dword [ebp + 8]
je 0x53d260
sub ecx, 2
jmp 0x53d22b
or ecx, 0xffffffff
jmp 0x53d29f
sub ecx, dword [ebp + 8]
jmp 0x53d29d
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 0x53d292
cmp byte [ebp + eax - 0x124], 0
jne 0x53d29b
cmp ecx, ebx
je 0x53d2d4
sub ecx, 2
jmp 0x53d280
sub ecx, ebx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x53d2d4
push ecx
push 0
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.004a13a0
push eax
mov dword [ebp - 4], 0
call fcn.0053d0f0
add esp, 4
lea ecx, [ebp - 0x24]
mov bl, al
call fcn.00471710
test bl, bl
je 0x53d1c2
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x53d2e6
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x53d329
cmp dword [edi + 0x14], 8
jb 0x53d2fb
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.0053af00
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