joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a740
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], vtable.CPathString.0
mov dword [ebp - 0x10], 0
call fcn.0049c290
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CPathString.0
mov dword [ebp - 4], 0
call fcn.0049c290
lea ecx, [ebp - 0xc]
call fcn.0049c0c0
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0049c0c0
movzx ecx, byte [ebp + 0x10]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x49a7b2
push eax
call fcn.0054a474
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x49a7c2
push eax
call fcn.0054a474
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x49a7d2
push eax
call fcn.0054a474
add esp, 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x49a7e2
push ecx
call fcn.0054a474
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49a7f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CPathString.0
mov dword [ebp - 4], 0
call fcn.0049c290
push 0
lea ecx, [ebp - 0xc]
call fcn.0049c0c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x49a838
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x49a838
xor bl, bl
jmp 0x49a83a
mov bl, 1
mov eax, dword [ebp - 4]
test eax, eax
je 0x49a84a
push eax
call fcn.0054a474
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x49a85a
push eax
call fcn.0054a474
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49a950
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CPathString.0
mov dword [ebp - 4], 0
call fcn.0049c290
lea ecx, [ebp - 0xc]
call fcn.0049c0c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x49a997
push eax
call fcn.0054a474
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x49a9a7
push ecx
call fcn.0054a474
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49a9b0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.CPathString.0
mov dword [ebp - 0x1c], 0
call fcn.0049c290
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebx], 0
mov dword [ebx + 4], 0
test edi, edi
je 0x49a9f8
mov dword [edi], 0
mov dword [edi + 4], 0
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x49aa0c
mov dword [esi], 0
mov dword [esi + 4], 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x24]
call fcn.0049c0c0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x49aa58
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
test edi, edi
je 0x49aa45
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [edi], eax
mov dword [edi + 4], ecx
test esi, esi
je 0x49aa54
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov bl, 1
jmp 0x49aa5a
xor bl, bl
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x49aa6a
push eax
call fcn.0054a474
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x49aa7a
push eax
call fcn.0054a474
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49aaa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CPathString.0
mov dword [ebp - 4], 0
call fcn.0049c290
lea ecx, [ebp - 0xc]
call fcn.0049c0c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49aade
test al, 0x10
je 0x49aade
mov bl, 1
jmp 0x49aae0
xor bl, bl
mov eax, dword [ebp - 4]
test eax, eax
je 0x49aaf0
push eax
call fcn.0054a474
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x49ab00
push eax
call fcn.0054a474
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49abf0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
mov dword [edi + 0x30], 0
cmp eax, 0xffffffff
je 0x49ac23
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x49ac1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], 0xffffffff
mov ebx, dword [ebp + 0xc]
mov eax, ebx
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
and eax, 0xffffffb3
je 0x49ac77
push eax
push str.unsupported_flags_0x_x_passed_to_CFileReader::BOpenFile
push 0x1383
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier1_fileio.cpp
call fcn.00534000
add esp, 0x10
test al, al
jne 0x49ac74
int3
and ebx, 0x4c
cmp byte [edi + 0x2c], 0
je 0x49ad84
xor esi, esi
mov dword [ebp - 0xc], vtable.CPathString.0
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], esi
call fcn.0049c290
push 0x3a
push dword [ebp - 8]
call fcn.0054bdf0
add esp, 8
test eax, eax
je 0x49ad02
mov ecx, dword [ebp - 8]
mov edx, 0x100
sub eax, ecx
lea esi, [eax + 2]
mov eax, 0xff
cmp esi, eax
cmova esi, eax
cmp esi, edx
mov eax, esi
cmova eax, edx
push eax
push ecx
lea eax, [ebp - 0x118]
push eax
call fcn.00544870
add esp, 0xc
mov byte [ebp + esi - 0x118], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
xor esi, esi
jmp 0x49ad1a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
mov dword [ebp - 0xc], vtable.CPathString.0
mov eax, dword [ebp - 4]
cmovne esi, dword [ebp + 0xc]
test eax, eax
je 0x49ad3e
push eax
call fcn.0054a474
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x49ad55
push eax
call fcn.0054a474
add esp, 4
mov dword [ebp - 8], 0
mov dword [edi + 0x30], esi
test esi, esi
je 0x49ad61
or ebx, 2
jmp 0x49ad84
push dword [ebp + 8]
push str.Failed_to_get_sector_size_for_drive_file__s_is_on__not_using_unbuffered_IO
push 0x1392
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier1_fileio.cpp
call fcn.00534000
add esp, 0x10
test al, al
jne 0x49ad80
int3
mov byte [edi + 0x2c], 0
push edi
push ebx
test bl, 0x40
mov ecx, 0
push 0
mov eax, 3
cmovne eax, ecx
push eax
push 1
push dword [ebp + 8]
call fcn.0049b950
add esp, 0x18
test eax, eax
jne 0x49adba
cmp dword [edi], 0xffffffff
je 0x49adba
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x49b1f0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push dword [ebp + 8]
call fcn.0049ccf0
add esp, 4
mov dword [ebp - 0xc], vtable.CPathString.0
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], 0
push 0
push dword [ebp + 8]
call fcn.0049c290
lea ecx, [ebp - 0xc]
call fcn.0049c0c0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x49b241
push eax
call fcn.0054a474
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x49b251
push ecx
call fcn.0054a474
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49b540
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], vtable.CPathString.0
mov dword [ebp - 0x10], 0
call fcn.0049c290
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CPathString.0
mov dword [ebp - 4], 0
call fcn.0049c290
lea ecx, [ebp - 0xc]
call fcn.0049c0c0
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0049c0c0
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x49b5af
push eax
call fcn.0054a474
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x49b5bf
push eax
call fcn.0054a474
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x49b5cf
push eax
call fcn.0054a474
add esp, 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x49b5df
push ecx
call fcn.0054a474
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49b7d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], vtable.CPathString.0
mov dword [ebp - 0x10], 0
call fcn.0049c290
mov edi, dword [ebp - 0x14]
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.0049a950
add esp, 4
test al, al
jne 0x49b8d7
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49b811
sub ecx, edx
lea esi, [edi - 1]
add esi, ecx
cmp esi, edi
jbe 0x49b89d
cmp byte [esi], 0x5c
jne 0x49b895
push 0
push edi
lea ecx, [ebp - 0xc]
mov byte [esi], 0
mov dword [ebp - 0xc], vtable.CPathString.0
mov dword [ebp - 4], 0
call fcn.0049c290
lea ecx, [ebp - 0xc]
call fcn.0049c0c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], vtable.CPathString.0
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x49b877
push eax
call fcn.0054a474
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x49b88e
push eax
call fcn.0054a474
add esp, 4
mov dword [ebp - 8], 0
mov byte [esi], 0x5c
test bl, bl
jne 0x49b89c
dec esi
cmp esi, edi
ja 0x49b823
jmp 0x49b89d
inc esi
mov al, byte [esi]
test al, al
je 0x49b8c2
cmp al, 0x5c
jne 0x49b8ba
push ecx
mov eax, esp
mov byte [esi], 0
mov dword [eax], edi
call fcn.0049a7f0
add esp, 4
mov byte [esi], 0x5c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x49b8a3
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.0049a7f0
add esp, 4
test al, al
jne 0x49b8d7
xor bl, bl
jmp 0x49b8d9
mov bl, 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x49b8e9
push eax
call fcn.0054a474
add esp, 4
test edi, edi
je 0x49b8f6
push edi
call fcn.0054a474
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49b950
Capabilities:
Inspect section memory permissions
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], vtable.CPathString.0
mov dword [ebp - 0xc], 0
call fcn.0049c290
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
mov eax, dword [ebp + 0x1c]
shl ecx, 0x1f
mov edx, ecx
or edx, 0x40000000
mov dword [eax], 0xffffffff
mov eax, ebx
and al, 2
mov eax, 0xc0000000
cmove edx, ecx
cmp ebx, 4
cmove edx, eax
mov eax, edx
or eax, 4
and bl, 8
cmove eax, edx
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
cmp eax, 7
ja case.default.0x49b9ea
jmp dword [eax*4 + 0x49bafc]
xor edi, edi
jmp 0x49b9de
mov edi, 1
jmp 0x49b9de
mov edi, 2
jmp 0x49b9de
mov edi, 3
jmp 0x49b9de
mov edi, 7
mov eax, dword [ebp + 0x14]
cmp eax, 3
ja case.default.0x49b9ea
jmp dword [eax*4 + 0x49bb1c]
mov ebx, 3
jmp 0x49ba0b
mov ebx, 4
jmp 0x49ba0b
mov ebx, 1
jmp 0x49ba0b
mov ebx, 2
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x18]
and ecx, 1
shl ecx, 0x1e
sub ecx, 0xffffff80
mov edx, ecx
or edx, 0x20000000
and al, 2
cmove edx, ecx
mov ecx, dword [ebp + 0x18]
mov esi, edx
mov eax, ecx
or esi, 0x8000000
and al, 8
cmove esi, edx
test cl, 0x10
je 0x49ba4a
and esi, 0xffffff7f
or esi, 0x100
mov eax, ecx
mov ecx, esi
or ecx, 0x4000000
and al, 0x20
push 0
cmove ecx, esi
push ecx
push ebx
push 0
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.0049c0c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [ebp + 0x1c]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x49ba86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x49bad0
mov ebx, dword [ebp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileTime]
test bl, 4
je 0x49baad
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0xffffffff
push ecx
push 0
push eax
mov dword [ebp - 4], 0xffffffff
call esi
test bl, bl
jns 0x49bac7
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0
push 0
lea eax, [ebp - 8]
push eax
push dword [edi]
call esi
xor esi, esi
jmp 0x49bad0
mov esi, 0x57
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x49bae0
push eax
call fcn.0054a474
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x49baf0
push eax
call fcn.0054a474
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49bd40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
test eax, eax
push ebx
lea ebx, [ebp - 4]
cmovne ebx, eax
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], ebx
xor ebx, ebx
test edi, edi
je 0x49bdb0
xor esi, esi
lea eax, [ebp + 0x14]
push esi
push eax
mov ecx, 0x40000000
mov dword [ebp + 0x14], esi
cmp edi, ecx
mov eax, edi
cmova eax, ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x49bd9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x49bda3
mov ecx, dword [ebp - 4]
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x49bda7
test ebx, ebx
jne 0x49bdb0
add dword [ebp + 0xc], esi
add ebx, esi
sub edi, esi
jmp 0x49bd5c
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49beb0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x1c], vtable.CPathString.0
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], edi
call fcn.0049c290
mov ebx, dword [ebp - 0x18]
push 0x3a
push ebx
call fcn.0054bdf0
add esp, 8
test eax, eax
je 0x49bf33
sub eax, ebx
mov ecx, 0x100
lea esi, [eax + 2]
mov eax, 0xff
cmp esi, eax
cmova esi, eax
cmp esi, ecx
mov eax, esi
cmova eax, ecx
push eax
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.00544870
add esp, 0xc
mov byte [ebp + esi - 0x11c], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x11c]
push eax
jmp 0x49bf45
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
mov eax, dword [ebp - 0x14]
cmovne edi, dword [ebp - 4]
test eax, eax
je 0x49bf61
push eax
call fcn.0054a474
add esp, 4
test ebx, ebx
je 0x49bf6e
push ebx
call fcn.0054a474
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49ccf0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CPathString.0
mov dword [ebp - 4], 0
call fcn.0049c290
lea ecx, [ebp - 0xc]
call fcn.0049c0c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49cd41
test al, 3
je 0x49cd3d
and eax, 0xfffffffc
lea ecx, [ebp - 0xc]
push eax
call fcn.0049c0c0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bl, 1
jmp 0x49cd43
xor bl, bl
mov eax, dword [ebp - 4]
test eax, eax
je 0x49cd53
push eax
call fcn.0054a474
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x49cd63
push eax
call fcn.0054a474
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49d1c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x49d224
mov edi, dword [esi + 0x20]
lea ecx, [ebp - 4]
push ebx
xor ebx, ebx
push ebx
push ecx
push edi
push dword [esi + 0x10]
mov dword [ebp - 4], ebx
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x49d1fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x49d200
jmp 0x49d204
mov ebx, dword [ebp - 4]
cmp edi, ebx
je 0x49d211
mov eax, dword [esi + 4]
mov ecx, 1
add eax, 0x1c
xchg dword [eax], ecx
mov eax, dword [esi + 4]
neg edi
add eax, 0x18
lock xadd dword [eax], edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
test eax, eax
je 0x49d2ef
cmp byte [eax], 0
je 0x49d2ef
call sub.KERNEL32.dll_GetCurrentProcessId
mov ecx, dword [esi + 8]
mov edi, 0x6e0a80
test ecx, ecx
mov edx, edi
push eax
cmovne edx, ecx
lea eax, [ebp - 0x14]
push edx
push str._s.async_u.tmp
push eax
call fcn.0049eb40
add esp, 0x10
cmp byte [ebp - 5], 0
jge 0x49d270
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x49d273
mov eax, edi
jmp 0x49d273
lea eax, [ebp - 0x14]
push 1
push eax
lea eax, [esi + 0xc]
push eax
call fcn.0049d320
add esp, 0xc
test al, al
je 0x49d2d2
mov eax, dword [esi + 8]
test eax, eax
cmovne edi, eax
cmp byte [ebp - 5], 0
jge 0x49d2a2
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x49d2a5
mov eax, 0x6e0a80
jmp 0x49d2a5
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.0049b540
add esp, 8
test al, al
jne 0x49d2d2
cmp byte [ebp - 5], al
jge 0x49d2c6
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x49d2c9
mov eax, 0x6e0a80
jmp 0x49d2c9
lea eax, [ebp - 0x14]
push eax
call fcn.0049da40
add esp, 4
cmp byte [ebp - 5], 0
jge 0x49d30b
call fcn.00533ba0
push 0
push dword [ebp - 0x14]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.Invalid_FileWriterItem_t
push 0x1539
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier1_fileio.cpp
call fcn.00533fe0
add esp, 0xc
test al, al
jne 0x49d30b
int3
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x49d320
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], vtable.CPathString.0
mov dword [ebp - 0xc], 0
call fcn.0049c290
push dword [ebp - 0x10]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.0049f6a0
push dword [ebp - 4]
call fcn.005438b0
mov eax, dword [ebp - 4]
mov ecx, esp
mov dword [ecx], eax
call fcn.0049b7d0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
xor esi, esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x14]
call fcn.0049c0c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x49d3d4
call ebx
cmp eax, 0x20
jne 0x49d3d0
push 0xa
call fcn.0053b080
inc esi
add esp, 4
cmp esi, 0xa
jl 0x49d375
push str.INVALID_HANDLE_VALUE:_ERROR_SHARING_VIOLATION
push 0x880
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier1_fileio.cpp
call fcn.00533fe0
add esp, 0xc
test al, al
jne 0x49d3d0
int3
xor bl, bl
jmp 0x49d40e
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push 0
push eax
mov dword [ebp - 8], 0
push dword [esi + 0x14]
push dword [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [ebp + 0x10], 1
je 0x49d3fe
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x14]
cmp eax, dword [ebp - 8]
sete bl
call fcn.00533ba0
push 0
push dword [ebp - 4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x49d42f
push eax
call fcn.0054a474
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x49d43f
push eax
call fcn.0054a474
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49da40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CPathString.0
mov dword [ebp - 4], 0
call fcn.0049c290
lea ecx, [ebp - 0xc]
call fcn.0049c0c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x49da86
push eax
call fcn.0054a474
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x49da96
push ecx
call fcn.0054a474
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a1260
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov cl, 1
mov eax, dword [esi + 0x11c]
test eax, eax
je 0x4a1317
push eax
push 1
push 0xd
push str.Log_stopped._n
call fcn.0055be89
add esp, 0x10
cmp eax, 1
je 0x4a12a6
push str.1__ret
push 0xb68
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srccommonlogger.cpp
call fcn.00533fe0
add esp, 0xc
test al, al
jne 0x4a12a6
int3
add dword [esi + 0x120], 0xd
mov eax, dword [esi + 0x11c]
adc dword [esi + 0x124], 0
add dword [esi + 0x128], 0xd
push ebx
adc dword [esi + 0x12c], 0
test eax, eax
je 0x4a12e4
push eax
call fcn.0055afcd
add esp, 4
test eax, eax
sete bl
test bl, bl
jne 0x4a12e6
mov al, bl
pop ebx
pop esi
ret
mov bl, 1
push dword [esi + 0x11c]
call fcn.00559bad
add esp, 4
mov dword [esi + 0x11c], 0
mov al, bl
mov dword [esi + 0x120], 0
mov dword [esi + 0x124], 0
pop ebx
pop esi
ret
mov al, cl
pop esi
ret

Function at 0x4a1570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x11c], 0
je 0x4a15a3
push str.NULL__m_pFile
push 0xc0e
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srccommonlogger.cpp
call fcn.00533fe0
add esp, 0xc
test al, al
jne 0x4a15a3
int3
cmp byte [esi + 0xc], 0
lea ebx, [esi + 0xc]
jne 0x4a15c8
push str.0___m_rgchPrefixFileName_0_
push 0xc11
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srccommonlogger.cpp
call fcn.00533fe0
add esp, 0xc
test al, al
jne 0x4a15c8
int3
push 0x105
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00544870
add esp, 0xc
mov edi, 1
mov ecx, esi
call fcn.004a0d70
test al, al
je 0x4a1656
push ebx
push str._s.current.txt
lea eax, [ebp - 0x104]
push 0x104
push eax
call fcn.005443b0
add esp, 0x10
cmp byte [esi], 0
je 0x4a1619
push 0
lea ecx, [esi + 0x114]
call fcn.0049f6a0
lea eax, [ebp - 0x104]
push 0x6e0c38
push eax
call fcn.00559db5
add esp, 8
mov dword [esi + 0x11c], eax
test eax, eax
mov dword [esi + 0x120], 0
mov dword [esi + 0x124], 0
setne cl
mov byte [esi + 0x130], cl
test eax, eax
jne 0x4a169e
cmp byte [ebp + 8], 0
je 0x4a1693
push 0xfa
push 0
call fcn.00547330
push eax
call fcn.0053b080
push edi
lea eax, [ebp - 0x20c]
push eax
push str._s__d
push 0x105
push ebx
call fcn.005443b0
inc edi
add esp, 0x20
cmp edi, 0x32
jl 0x4a15e2
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [esi], 0
je 0x4a16bb
lea eax, [ebp - 0x104]
push eax
lea ecx, [esi + 0x114]
call fcn.0049f6a0
mov eax, dword [esi + 0x11c]
test eax, eax
je 0x4a1713
push dword [esi + 0x11c]
push 1
push 0xd
push str.Log_started._n
call fcn.0055be89
add esp, 0x10
cmp eax, 1
je 0x4a16f7
push str.1__ret
push 0xb68
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srccommonlogger.cpp
call fcn.00533fe0
add esp, 0xc
test al, al
jne 0x4a16f7
int3
add dword [esi + 0x120], 0xd
adc dword [esi + 0x124], 0
add dword [esi + 0x128], 0xd
adc dword [esi + 0x12c], 0
pop edi
mov byte [esi + 0x131], 1
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4