Function at 0x100460c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009ba70
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov eax, dword [0x100f5084]
lea ecx, [esp + 0x10]
push 0x100a4cdc
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
call sym.HncFoundation.dll_public:_int___thiscall_CHncStringW::Assign_unsigned_short_int_const__
mov dword [esp + 0x60], 0
test edi, edi
je 0x1004628c
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.MSVCR120.dll__wstat64i32]
add esp, 8
test eax, eax
jne 0x1004628c
test dword [esp + 0x22], 0x4000
jne 0x1004628c
push str.r_ccsUTF_8
lea eax, [esp + 0x1c]
push edi
push eax
call dword [sym.imp.MSVCR120.dll__wfopen_s]
add esp, 0xc
cmp dword [esp + 0x18], 0
jne 0x100461a2
mov eax, dword [0x100f5084]
mov ecx, esi
mov dword [esi], eax
lea eax, [esp + 0x10]
push eax
call sym.HncFoundation.dll_public:_int___thiscall_CHncStringW::Assign_class_CHncStringW_const__
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
cmp dword [eax], 0xfffffffe
je 0x100462c1
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100462c1
push eax
jmp 0x100462b8
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.MSVCR120.dll__wstat64i32]
add esp, 8
test eax, eax
jne 0x1004627f
mov edi, dword [esp + 0x30]
test edi, edi
je 0x1004627f
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x60], 1
test edi, edi
jne 0x100461ea
mov dword [esp + 0x2c], edi
mov word [esp + edi*2 + 0x1c], ax
jmp 0x100461f6
push 0
push edi
lea ecx, [esp + 0x24]
call fcn.10046590
push dword [esp + 0x18]
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
push edi
cmovae eax, dword [esp + 0x24]
push 2
push eax
call dword [sym.imp.MSVCR120.dll_fread]
mov ecx, dword [esp + 0x3c]
add esp, 0x10
cmp eax, ecx
ja 0x10046237
cmp dword [esp + 0x30], 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], eax
cmovae ecx, dword [esp + 0x1c]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x10046245
sub eax, ecx
lea ecx, [esp + 0x1c]
push 0
push eax
call fcn.10046590
lea ecx, [esp + 0x1c]
call fcn.100464d0
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
cmovae eax, dword [esp + 0x1c]
push eax
call sym.HncFoundation.dll_public:_int___thiscall_CHncStringW::Assign_unsigned_short_int_const__
mov byte [esp + 0x60], 0
cmp dword [esp + 0x30], 8
jb 0x1004627f
push dword [esp + 0x1c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
mov eax, dword [0x100f5084]
mov ecx, esi
mov dword [esi], eax
lea eax, [esp + 0x10]
push eax
call sym.HncFoundation.dll_public:_int___thiscall_CHncStringW::Assign_class_CHncStringW_const__
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff4
cmp dword [ecx], 0xfffffffe
je 0x100462c1
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100462c1
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret