Function at 0x436ff0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x473fb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [ecx]
push esi
sub eax, 0x10
push edi
push eax
call fcn.004026d0
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 8], esi
mov eax, dword [esi - 4]
mov edi, 1
cmp eax, edi
mov dword [esp + 0x18], 0
jle 0x437044
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0xc]
call fcn.00402f20
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
test esi, esi
jne 0x437053
xor eax, eax
jmp 0x437067
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x437058
sub eax, edx
js 0x437209
cmp eax, dword [esi - 8]
jg 0x437209
push ebx
push edi
lea ecx, [esp + 0x14]
push ecx
mov dword [esi - 0xc], eax
lea ecx, [esp + 0x14]
mov byte [eax + esi], 0
call fcn.0040b5e0
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, edi
jne 0x4370a7
test ecx, ecx
jge 0x43709e
push 0x80070057
call fcn.00401210
cmp byte [eax], 0x5c
jne 0x4370a7
xor bl, bl
jmp 0x4370a9
mov bl, 1
mov eax, dword [esp + 0x10]
push ebp
add eax, 0xfffffff0
or ebp, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4370ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x4370dd
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0040b640
mov esi, dword [esp + 0x10]
cmp dword [esi - 4], edi
jle 0x4370f3
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.00402f20
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootA]
test eax, eax
je 0x437164
test esi, esi
jne 0x437106
xor eax, eax
jmp 0x43711b
mov eax, esi
lea edx, [eax + 1]
jmp 0x437110
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x437110
sub eax, edx
js 0x43715a
cmp eax, dword [esi - 8]
jg 0x43715a
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
lea eax, [esi - 0x10]
mov dword [esp + 0x20], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x437142
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop ebp
pop ebx
pop edi
mov eax, 0x50
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push 0x80070057
call fcn.00401210
cmp dword [esi - 4], edi
jle 0x43717a
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.00402f20
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
cmp dword [esi - 4], edi
jle 0x437197
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402f20
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, ebp
je 0x4371d6
test al, 0x10
je 0x4371d6
lea eax, [esi - 0x10]
mov dword [esp + 0x20], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x4371c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea eax, [esi - 0x10]
mov dword [esp + 0x20], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4371f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
pop ebp
pop ebx
pop edi
mov eax, 0x80004005
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
push 0x80070057
call fcn.00401210
int3