Function at 0x4606d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589176
mov eax, dword fs:[0]
push eax
mov eax, 0x10c8
call fcn.005848d0
mov eax, dword [0x610304]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, ecx
lea ecx, [ebp - 0x1014]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
lea eax, [ebp - 0x101c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0044aaf0
mov ecx, eax
call fcn.0044a300
mov ecx, eax
mov byte [ebp - 4], 1
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
lea ecx, [esi + 8]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
lea ecx, [ebp - 0x1014]
push 0x5a5e54
push ecx
call sym.txupd.exe_public:_void___cdecl_CTXStringW::Format_wchar_t_const__
add esp, 0x10
lea ecx, [ebp - 0x101c]
mov byte [ebp - 4], bl
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
push ebx
push ebx
push 3
push ebx
push 1
push bind
lea ecx, [ebp - 0x1014]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46079f
lea ecx, [ebp - 0x1014]
mov dword [ebp - 4], 0xffffffff
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
xor eax, eax
jmp 0x4608c5
lea edx, [ebp - 0x1078]
push edx
mov dword [ebp - 0x1018], ebx
call fcn.004161a0
add esp, 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x1018]
push eax
push 0x1000
lea ecx, [ebp - 0x1010]
push ecx
push esi
call ebx
test eax, eax
je 0x460812
mov eax, dword [ebp - 0x1018]
test eax, eax
je 0x460812
push eax
lea edx, [ebp - 0x1010]
push edx
lea eax, [ebp - 0x1078]
push eax
call fcn.00416860
add esp, 0xc
push 0
lea ecx, [ebp - 0x1018]
push ecx
push 0x1000
lea edx, [ebp - 0x1010]
push edx
push esi
call ebx
test eax, eax
jne 0x4607d5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 8], 3
jne 0x460861
lea ecx, [ebp - 0x1014]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x460786
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + esi + 0x2c]
add eax, esi
mov eax, dword [eax + 0x1c]
push eax
add ecx, esi
push ecx
lea eax, [ebp - 0x1078]
push eax
call fcn.00416860
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x1078]
push ecx
push edi
call fcn.00416c20
add esp, 8
mov esi, 0x14
jmp 0x460880
lea edx, [ebp - 0x10d4]
push edx
call fcn.004161a0
push 0x10
lea eax, [ebp - 0x10d4]
push edi
push eax
call fcn.00416860
lea ecx, [ebp - 0x10d4]
push ecx
push edi
call fcn.00416c20
add esp, 0x18
sub esi, 1
jne 0x460880
lea ecx, [ebp - 0x1014]
mov dword [ebp - 4], 0xffffffff
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea eax, [esi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00584870
mov esp, ebp
pop ebp
ret 8