Function at 0x4726d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
jmp 0x4726e0
cmp byte [edi + 0x9c], 0
jne 0x4726f2
cmp dword [edi + 0x98], 0
jne 0x472704
mov eax, dword [edi + 0x70]
xor ecx, ecx
test eax, eax
cmovg ecx, eax
test ecx, ecx
je 0x472907
push 4
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
lea esi, [edi + 0x58]
push esi
call fcn.00482260
add esp, 0x10
test al, al
jne 0x472736
push 0xffffffffffffffff
lea ecx, [edi + 0x78]
mov dword [ebp - 4], 0
call fcn.00481530
jmp 0x4726e0
lock dec dword [esi + 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x47279a
mov esi, dword [eax + 0x20]
lea edx, [ebp - 8]
xor ebx, ebx
push ebx
push edx
push esi
push dword [eax + 0x10]
mov dword [ebp - 8], ebx
push dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x47276f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x472772
jmp 0x472776
mov ebx, dword [ebp - 8]
cmp esi, ebx
je 0x472786
mov eax, dword [ebp - 4]
mov ecx, 1
mov eax, dword [eax + 4]
add eax, 0x1c
xchg dword [eax], ecx
mov eax, dword [ebp - 4]
neg esi
mov eax, dword [eax + 4]
add eax, 0x18
lock xadd dword [eax], esi
jmp 0x4728d0
mov esi, dword [eax + 8]
test esi, esi
je 0x4728b4
cmp byte [esi], 0
je 0x4728b4
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push esi
lea eax, [ebp - 0x24]
push str._s.async_u.tmp
push eax
call fcn.0046ac70
add esp, 0x10
test byte [ebp - 0x15], 0x80
je 0x4727da
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4727dd
mov eax, 0x59934c
jmp 0x4727dd
lea eax, [ebp - 0x24]
push 1
push eax
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
call fcn.00472910
add esp, 0xc
test al, al
je 0x47289b
mov eax, dword [ebp - 4]
mov ecx, 0x59934c
mov eax, dword [eax + 8]
test eax, eax
cmovne ecx, eax
test byte [ebp - 0x15], 0x80
je 0x47281b
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x47281e
mov eax, 0x59934c
jmp 0x47281e
lea eax, [ebp - 0x24]
push ecx
push eax
call fcn.00471170
add esp, 8
test al, al
jne 0x47289b
test byte [ebp - 0x15], 0x80
je 0x472840
mov ecx, dword [ebp - 0x24]
test ecx, ecx
jne 0x472843
mov ecx, 0x59934c
jmp 0x472843
lea ecx, [ebp - 0x24]
push ecx
mov eax, esp
push ecx
lea ecx, [ebp - 0x14]
mov dword [eax], 0
call fcn.00470330
lea ecx, [ebp - 0x14]
call fcn.00471950
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov dword [ebp - 0x14], vtable.CPathString.0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x472884
push eax
call fcn.0056b4c4
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x47289b
push eax
call fcn.0056b4c4
mov dword [ebp - 0x10], 0
add esp, 4
test byte [ebp - 0x15], 0x80
je 0x4728d0
call fcn.0047f570
push 0
push dword [ebp - 0x24]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
jmp 0x4728d0
push str.Invalid_FileWriterItem_t
push 0x14df
push str.c:_buildslave_steam_rel_client_win32_build_src_tier1_fileio.cpp
call fcn.00476e80
add esp, 0xc
test al, al
jne 0x4728d0
int3
mov esi, dword [ebp - 4]
test esi, esi
je 0x4728fb
lea ecx, [esi + 0xc]
call fcn.0046a920
call fcn.0047f570
push 0
push dword [esi + 8]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
push 0x38
push esi
call fcn.0056b425
add esp, 8
lock inc dword [edi + 0x84]
jmp 0x4726e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret