Function at 0x401a10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418085
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x42a018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
xor ebx, ebx
call dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_wString::constructor_wchar_t_const__]
mov esi, dword [ebp + 8]
push eax
mov eax, esi
mov dword [ebp - 4], ebx
call fcn.004019a0
lea ecx, [ebp - 0x14]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_wString::destructor_void_]
cmp edi, 0xffffffff
je 0x401a83
push edi
lea ecx, [esi + 0x4b0]
call dword [sym.imp.opennurbs.dll_public:_class_ON_Bitmap_____thiscall_ON_SimpleArray_class_ON_Bitmap__::operator___int_]
mov ebx, dword [eax]
test ebx, ebx
jne 0x401bd0
mov ecx, dword [ebp + 0xc]
push 0x41ad70
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], 0
call dword [sym.imp.MSVCR80.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x401bd0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x401bd0
push 2
xor edi, edi
push edi
push eax
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x401adc
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR80.dll_ftell]
add esp, 4
cmp eax, 0xffffffff
jne 0x401ada
xor eax, eax
mov edi, eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCR80.dll_rewind]
add esp, 4
test edi, edi
jbe 0x401bc3
push edi
call dword [sym.imp.opennurbs.dll_onmalloc]
mov esi, eax
add esp, 4
test esi, esi
mov dword [ebp - 0x14], esi
je 0x401bc3
mov edx, dword [ebp - 0x10]
push edx
push edi
push 1
push esi
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
cmp eax, edi
je 0x401b2c
push esi
call dword [sym.imp.opennurbs.dll_onfree]
add esp, 4
jmp 0x401bc3
push 0x38
call dword [sym.imp.opennurbs.dll_public:_static_void____cdecl_ON_Object::operator_new_unsigned_int_]
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
test esi, esi
mov dword [ebp - 4], 1
je 0x401b57
mov ecx, esi
call dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_EmbeddedBitmap::constructor_void_]
mov dword [esi], vtable.ON_EmbeddedBitmap.0
jmp 0x401b59
xor esi, esi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
add ebx, 0x4b0
push eax
mov ecx, ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_SimpleArray_class_ON_Bitmap__::Append_class_ON_Bitmap__const_const__]
mov ecx, ebx
call dword [sym.imp.opennurbs.dll_public:_int___thiscall_ON_SimpleArray_class_ON_Bitmap__::Count_void_const]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x14]
sub eax, 1
push ecx
lea ecx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], edi
call dword [0x41a1b8]
push ebx
push edi
push 0
mov dword [esi + 0x30], 1
call dword [sym.imp.opennurbs.dll_ON_CRC32]
mov dword [esi + 0x34], eax
add esi, 0xc
push esi
call dword [sym.imp.opennurbs.dll_bool___cdecl_ON_CreateUuid_struct__GUID__]
mov ebx, dword [ebp - 0x1c]
add esp, 0x10
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8