joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f6151
Capabilities:
Write file on windows

Disassembly:
push 0x14
mov eax, 0x599023
call fcn.00584f68
mov esi, ecx
push 0x5a3f7c
push str..CHttpResponseDataWriter::Flush
push str.CHttpResponseDataWriter::Flush
push 1
push 0x1b2
lea eax, [ebp - 0x20]
push str.....SourceCommonNetworkHttpHttpResponseDataWriter.cpp
push eax
call fcn.004b1d3b
add esp, 0x1c
xor edi, edi
cmp dword [esi], edi
je 0x4f61d2
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x4f61d2
cmp dword [esi + 0x18], edi
jbe 0x4f61d2
push 2
push edi
push eax
call dword [sym.imp.MSVCR80.dll_fseek]
push dword [esi + 0xc]
push dword [esi + 0x18]
push 1
push dword [esi + 0x10]
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x1c
cmp eax, dword [esi + 0x18]
je 0x4f61cf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004b1dba
mov eax, edi
call fcn.00585040
ret
mov dword [esi + 0x18], edi
xor edi, edi
inc edi
jmp 0x4f61bb

Function at 0x4f625d
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x599051
call fcn.00584f68
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [esi + 0xc]
and dword [ebp - 4], 0
test eax, eax
mov edi, dword [sym.imp.MSVCR80.dll_fclose]
je 0x4f6287
push eax
call edi
and dword [esi + 0xc], 0
pop ecx
lea ebx, [esi + 8]
push 0xffffffffffffffff
mov ecx, ebx
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
lea eax, [ebp - 0x10]
push eax
call sym.txupd.exe_class_CTXStringA___cdecl_Util::Convert::Utf8FromWS_wchar_t_const___int_
add esp, 0xc
cmp dword [esi + 4], 0
mov byte [ebp - 4], 1
je 0x4f630f
mov ecx, ebx
call sym.txupd.exe_public:_bool___thiscall_CTXStringW::IsEmpty_void_const
test al, al
jne 0x4f630f
push 0x5bcf30
mov ecx, ebx
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.MSVCR80.dll__wfopen]
test eax, eax
pop ecx
pop ecx
je 0x4f630f
push eax
call edi
pop ecx
mov ecx, ebx
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4f630f
mov ecx, ebx
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push dword [esi + 0x28]
push str.Id__lu__Delete_Http_TmpFile_Fail_Error___s_
push str.Http
push 2
push str.CHttpResponseDataWriter::CHttpResponseDataWriter
push 0x59
push str.....SourceCommonNetworkHttpHttpResponseDataWriter.cpp
call fcn.00452950
add esp, 0x20
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4f6321
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
and dword [esi + 0x10], 0
pop ecx
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4f6333
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
and dword [esi + 0x1c], 0
pop ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call sym.txupd.exe_public:_void___thiscall_CTXStringA::destructor_void_
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
call fcn.00585040
ret
Function at 0x4f69f9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
push esi
mov esi, ecx
jne 0x4f6a0a
xor eax, eax
jmp 0x4f6a83
cmp dword [esi], 0
push edi
jne 0x4f6a4a
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4f6a80
push 0
push dword [esi + 8]
push eax
call dword [sym.imp.MSVCR80.dll_fseek]
push dword [esi + 0x10]
lea edi, [esi + 0x14]
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x1c
test eax, eax
jbe 0x4f6a80
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax], edi
jmp 0x4f6a7b
mov eax, dword [esi + 4]
sub eax, dword [esi + 8]
je 0x4f6a80
cmp dword [esi + 0x414], 0
je 0x4f6a80
mov ecx, 0x400
cmp eax, ecx
jbe 0x4f6a6b
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
jmp 0x4f6a70
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [esi + 0x414]
add eax, dword [esi + 8]
mov dword [edx], eax
xor eax, eax
inc eax
jmp 0x4f6a82
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x50cde9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x44
mov eax, 0x59a531
call fcn.00584f68
mov esi, ecx
push 0x5a3f7c
push str..FS_CD
push str.CCDFileSystem::IsFileSystemDBExit
push 1
push 0x3a6
lea eax, [ebp - 0x20]
push str.....SourceCommonFileSystemCDFileSystemCDFileSystem.cpp
push eax
call fcn.004b1d3b
add esp, 0x1c
and dword [ebp - 4], 0
push 1
push str.CD::IsFileSystemDBExit
push 0x5bf138
push esi
lea ecx, [ebp - 0x50]
call fcn.0051db88
lea ecx, [esi + 8]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x50ce6c
test al, 0x10
jne 0x50ce6c
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.0051dd5e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004b1dba
xor eax, eax
inc eax
jmp 0x50ce86
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.0051dd5e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004b1dba
xor eax, eax
call fcn.00585040
ret

Function at 0x50d255
Capabilities:
Delete file

Disassembly:
push 0x44
mov eax, 0x59a55c
call fcn.00584f68
mov esi, ecx
push 0x5a3f7c
push str..FS_CD
push str.CCDFileSystem::UnInit
push 1
push 0x3f4
lea eax, [ebp - 0x20]
push str.....SourceCommonFileSystemCDFileSystemCDFileSystem.cpp
push eax
call fcn.004b1d3b
add esp, 0x1c
push 1
push 0x5bf6a8
push 0x5bf138
xor ebx, ebx
push esi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0051db88
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
mov byte [ebp - 4], 1
je 0x50d2da
cmp dword [esi + 0x20], ebx
je 0x50d2da
cmp dword [esi + 0x18], ebx
jne 0x50d2da
cmp dword [esi + 0x28], ebx
jne 0x50d2da
call sym.txupd.exe_public:_long_int___thiscall_CRootStorage::CloseDocument_void_
cmp dword [esi + 0x24], ebx
mov dword [esi + 0xc], ebx
je 0x50d2da
lea ecx, [esi + 8]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.0051dd5e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004b1dba
xor eax, eax
inc eax
call fcn.00585040
ret
Function at 0x50ebef
Capabilities:
Delete file

Disassembly:
push 0x18
mov eax, 0x59a9b8
call fcn.00584f68
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x1c]
lea esi, [edi + 0x10]
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0050eadd
jmp 0x50ec6a
lea ecx, [ebp - 0x1c]
call fcn.0050d404
mov ebx, dword [eax]
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push ebx
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
push str.sQe
push str.Assert
push 2
push str.CCDFileSystem::CCDFileSystem
push 0x2e
push str.....SourceCommonFileSystemCDFileSystemCDFileSystem.cpp
call fcn.0046fa20
mov ecx, dword [ebx + 4]
add esp, 0x1c
test ecx, ecx
je 0x50ec59
call sym.txupd.exe_public:_void___thiscall_CStream::LogObjReleaseError_void_
push 1
mov ecx, ebx
call fcn.0050c828
lea ecx, [ebp - 0x1c]
call fcn.0050cf10
mov eax, dword [esi + 4]
push esi
push eax
lea ecx, [ebp - 0x24]
call fcn.0050dfec
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0050ced5
test al, al
je 0x50ec17
mov ecx, esi
call fcn.0050ddbe
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x50ecb3
call sym.txupd.exe_public:_long_int___thiscall_CRootStorage::CloseDocument_void_
and dword [edi + 0xc], 0
cmp dword [edi + 0x24], 0
je 0x50ecb3
lea ecx, [edi + 8]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, esi
call fcn.0050de59
or dword [ebp - 4], 0xffffffff
lea ecx, [edi + 8]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
call fcn.00585040
ret

Function at 0x51354f
Capabilities:
Delete file

Disassembly:
push 0x30
mov eax, 0x59b2bf
call fcn.00584f68
mov esi, ecx
push 1
push 0x5c0608
push 0x5c03cc
push esi
lea ecx, [ebp - 0x3c]
call fcn.0051db88
mov eax, dword [esi + 0xc]
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x5135af
cmp dword [esi + 0x2c], edi
je 0x5135af
cmp dword [esi + 0x24], edi
jne 0x5135af
cmp dword [esi + 0x18], edi
jne 0x5135af
cmp dword [esi + 0x34], edi
jne 0x5135af
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [esi + 0x30], edi
mov dword [esi + 0xc], edi
je 0x5135af
lea ecx, [esi + 8]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0051dd5e
xor eax, eax
inc eax
call fcn.00585040
ret
Function at 0x5150d2
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x18
mov eax, 0x59b570
call fcn.00584f68
mov edi, ecx
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 0xc]
je 0x5151a4
test eax, eax
je 0x5151a4
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
lea esi, [edi + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 4]
push esi
push eax
lea ecx, [ebp - 0x24]
call fcn.005141e6
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.0051454c
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
jmp 0x515141
lea ecx, [ebp - 0x24]
call fcn.00513791
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
cmp dword [eax + 4], ecx
je 0x5151ac
lea ecx, [ebp - 0x24]
call fcn.00513089
mov eax, dword [esi + 4]
push esi
push eax
lea ecx, [ebp - 0x18]
call fcn.005141e6
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call fcn.00512f94
test al, al
je 0x515127
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call ebx
sub eax, dword [ebp - 0x1c]
cmp eax, 0xa
jbe 0x5151a4
push eax
push ecx
add edi, 8
mov ecx, esp
mov dword [ebp + 8], esp
push edi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
push str.Path_s_CostTime__d
push str.PerfFS.CloseStorage
push 4
push str.CSSFileSystem::CloseStorage
push 0x856
push 0x5c0640
call fcn.0046fa20
add esp, 0x20
call fcn.00585040
ret 4
push eax
lea ecx, [ebp - 0x10]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
push dword [ebp + 8]
xor esi, esi
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.00514b5d
lea eax, [ebp - 0x10]
push eax
call fcn.004e50e8
pop ecx
mov dword [ebp + 8], esi
jmp 0x51521d
inc dword [ebp + 8]
cmp dword [ebp + 8], 0x3e8
jge 0x51522c
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
lea eax, [ebp - 0x14]
push eax
call fcn.004e4eed
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0049f0c7
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.00514bfd
push esi
push 0x5c
lea ecx, [ebp - 0x10]
call sym.txupd.exe_public:_int___thiscall_CTXStringW::Find_wchar_t__int_const
test eax, eax
jge 0x5151d3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
jmp 0x515167
Function at 0x5157a7
Capabilities:
Delete file

Disassembly:
push 0x18
mov eax, 0x59b65a
call fcn.00584f68
mov esi, ecx
mov dword [ebp - 0x14], esi
xor edi, edi
cmp dword [esi + 0xc], edi
mov dword [ebp - 4], 4
je 0x5157ec
push esi
call fcn.00512bf5
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [esi + 0x30], edi
mov dword [esi + 0xc], edi
je 0x5157ec
lea ecx, [esi + 8]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ebx, [esi + 0x1c]
mov eax, dword [ebx + 4]
push ebx
push eax
lea ecx, [ebp - 0x1c]
call fcn.005141bf
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
call fcn.005145fd
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
jmp 0x51583c
lea ecx, [ebp - 0x1c]
call fcn.00513753
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00513c54
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.00513033
mov eax, dword [ebx + 4]
push ebx
push eax
lea ecx, [ebp - 0x24]
call fcn.005141bf
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00512f69
test al, al
je 0x515814
mov ecx, ebx
call fcn.00513e75
lea edi, [esi + 0x10]
mov eax, dword [edi + 4]
push edi
push eax
lea ecx, [ebp - 0x1c]
call fcn.005141e6
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.0051454c
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
jmp 0x5158b0
lea ecx, [ebp - 0x1c]
call fcn.00513791
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0051427f
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.00513089
mov eax, dword [edi + 4]
push edi
push eax
lea ecx, [ebp - 0x24]
call fcn.005141e6
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00512f94
test al, al
je 0x515888
mov ecx, edi
call fcn.00513e48
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 3
call fcn.005156b6
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 2
call fcn.005156b6
mov ecx, ebx
call fcn.00513fbe
mov ecx, edi
call fcn.00513f5b
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 8]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
call fcn.00585040
ret
Function at 0x5163a7
Capabilities:
Accept command line arguments

Disassembly:
push 0x14
mov eax, 0x59b81a
call fcn.00584f68
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x38], ebx
jne 0x51645c
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x10]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t__
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call sym.txupd.exe_void___cdecl_Util::Misc::SplitCmdString_class_CTXStringW_const___class_std::vector_class_CTXStringW__class_std::allocator_class_CTXStringW____
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
xor eax, eax
inc eax
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], eax
je 0x516447
mov edi, dword [ebp - 0x18]
sub edi, dword [ebp - 0x1c]
sar edi, 2
cmp edi, eax
jbe 0x516447
push dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
call fcn.004a76a1
mov ecx, eax
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
cmp eax, ebx
je 0x51643f
push 0xa
push 0x5c0950
push eax
call dword [sym.imp.MSVCR80.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x51643f
mov dword [esi + 0x3c], ebx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jb 0x516411
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
mov dword [esi + 0x38], eax
call fcn.004a8c51
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x38], eax
je 0x5164a3
cmp dword [esi + 0x3c], ebx
je 0x51649f
add esi, 8
push esi
lea eax, [ebp - 0x10]
push 0x5c0900
push eax
call sym.txupd.exe_class_CTXStringW___cdecl_operator_wchar_t_const___class_CTXStringW_const__
add esp, 0xc
push ebx
push 0x5b2004
lea ecx, [ebp - 0x10]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x10]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
xor eax, eax
jmp 0x5164a6
xor eax, eax
inc eax
call fcn.00585040
ret

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

Disassembly:
push 0x30
mov eax, 0x59b8f5
call fcn.00584f68
mov esi, ecx
push 1
push str.SS::IsFileSystemDBExit
push 0x5c03cc
push esi
lea ecx, [ebp - 0x3c]
call fcn.0051db88
and dword [ebp - 4], 0
mov ecx, esi
call fcn.005163a7
lea ecx, [esi + 8]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x516796
test al, 0x10
jne 0x516796
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0051dd5e
xor eax, eax
inc eax
jmp 0x5167a4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0051dd5e
xor eax, eax
call fcn.00585040
ret
Function at 0x51a7bd
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x51a7e1
test al, 7
je 0x51a7e1
and eax, 0xfffffff8
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x51a7e3
xor eax, eax
pop ebp
ret 4

Function at 0x51d6ec
Capabilities:
Accept command line arguments

Disassembly:
push 0x1c
mov eax, 0x59c98b
call fcn.00584f68
call fcn.0051db49
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x10]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t__
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call sym.txupd.exe_void___cdecl_Util::Misc::SplitCmdString_class_CTXStringW_const___class_std::vector_class_CTXStringW__class_std::allocator_class_CTXStringW____
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
xor edi, edi
inc edi
cmp dword [ebp - 0x24], ebx
je 0x51d7c1
mov esi, dword [ebp - 0x20]
sub esi, dword [ebp - 0x24]
sar esi, 2
cmp esi, edi
jbe 0x51d7c1
push edi
lea ecx, [ebp - 0x28]
call fcn.004a76a1
mov ecx, eax
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x51d793
push 0xb
push str._FSLogScene
push eax
call dword [sym.imp.MSVCR80.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x51d79a
push 6
push str._FSLog
push dword [ebp - 0x18]
call dword [sym.imp.MSVCR80.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x51d7b8
inc edi
cmp edi, esi
jb 0x51d750
jmp 0x51d7c1
lea eax, [edi + 1]
cmp eax, esi
jae 0x51d7c1
push eax
lea ecx, [ebp - 0x28]
call fcn.004a76a1
mov ecx, dword [ebp - 0x14]
push eax
add ecx, 0x10
call fcn.0049f0c7
jmp 0x51d7c1
mov eax, dword [ebp - 0x14]
mov dword [eax], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004a8c51
call fcn.00585040
ret

Function at 0x51d7d3
Capabilities:
Allocate thread local storage

Disassembly:
push 4
mov eax, 0x59c9b1
call fcn.00584f68
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ebx, [esi + 0x10]
mov ecx, ebx
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
xor eax, eax
lea edi, [esi + 0x18]
mov dword [ebp - 4], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [edi], eax
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0x5a3f7c
mov ecx, ebx
mov dword [esi + 0xc], eax
call fcn.0049f071
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
call fcn.0051d6ec
mov eax, esi
call fcn.00585040
ret
Function at 0x51db88
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
call fcn.0051db49
mov edi, eax
cmp dword [edi], 0
je 0x51dbec
and dword [esi], 0
push ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x51dbc6
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x51dbbb
mov dword [esi], 1
jmp 0x51dbc6
push 1
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp + 8]
and word [esi + 0x10], 0
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], ebx
mov dword [esi + 0x24], eax
call fcn.0051cbdc
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x10

Function at 0x51dc66
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
call fcn.0051db49
mov edi, eax
cmp dword [edi], 0
je 0x51dcd7
and dword [esi], 0
push ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x51dca4
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x51dc99
mov dword [esi], 1
jmp 0x51dca4
push 1
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 4], ebx
mov word [esi + 0x10], 2
mov dword [esi + 0x18], eax
call fcn.0051cbdc
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x51dd5e
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push edi
mov edi, ecx
call fcn.0051db49
mov ebx, eax
cmp dword [ebx], 0
je 0x51de06
mov ecx, ebx
call fcn.0051cbfb
cmp dword [edi], 0
jne 0x51de06
mov ax, word [edi + 0x10]
shl ax, 2
push esi
mov esi, dword [ebx + 4]
add esi, dword [ebx + 8]
add ax, 0x1f
mov word [esi], ax
mov byte [esi + 2], 1
mov eax, dword [edi + 8]
add esi, 3
mov dword [esi], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x10], eax
call fcn.0051cbdc
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
xor eax, eax
add esi, 0x1c
cmp word [edi + 0x10], ax
jbe 0x51dde6
lea ecx, [edi + 0x14]
mov edx, dword [ecx]
mov dword [esi + eax*4], edx
movzx edx, word [edi + 0x10]
inc eax
add ecx, 4
cmp eax, edx
jb 0x51ddd5
movzx eax, word [edi + 0x10]
lea eax, [eax*4 + 0x1f]
add dword [ebx + 8], eax
cmp dword [edi + 4], 0
pop esi
je 0x51de06
push 0
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop ebx
ret