Function at 0x4478b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f878
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x492984]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push dword [esi + 4]
mov ebx, dword [esi + 8]
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::constructor_char_const__]
push dword [esi + 4]
mov edi, dword [sym.imp.MSVCR120.dll_free]
mov dword [ebp - 4], 0
call edi
mov esi, dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::destructor_void_]
add esp, 4
test ebx, ebx
je 0x447bd8
cmp dword [ebx], 0
je 0x447bca
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x2808], 0
je 0x447bca
lea ecx, [ebp - 0x24]
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::constructor_void_]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
mov ecx, dword [eax + 0x2808]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x34]
add ecx, 0x294
push eax
push str.PendingPreloadRscUrl
call fcn.004367a0
test eax, eax
je 0x447bc1
add eax, 4
lea ecx, [ebp - 0x24]
push eax
call dword [sym.imp.byondcore.dll_public:_struct_DMString____thiscall_DMString::operator_struct_DMString_const__]
push dword [ebp - 0x28]
lea ecx, [ebp - 0x24]
call dword [sym.imp.byondcore.dll_public:_int___thiscall_DMString::Compare_char_const__const]
test eax, eax
jne 0x447bc1
mov edi, dword [ebp - 0x10]
push eax
push 0x465ab4
lea ecx, [edi + 0x280c]
call dword [sym.imp.byondcore.dll_public:_int___thiscall_DMString::Find_char_const___int_const]
inc eax
lea ecx, [edi + 0x280c]
push eax
lea eax, [ebp + 8]
push eax
call dword [sym.imp.byondcore.dll_public:_struct_DMString___thiscall_DMString::Mid_int_]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call dword [sym.imp.byondcore.dll_public:_bool___thiscall_DMString::IsEmpty_void_const]
test al, al
je 0x4479c6
push str.preload
lea ecx, [ebp + 8]
call dword [sym.imp.byondcore.dll_public:_struct_DMString____thiscall_DMString::operator_char_const__]
push str..rsc
lea ecx, [ebp + 8]
call dword [0x46193c]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
push str.rsc_
push eax
call dword [sym.imp.byondcore.dll_struct_DMString___cdecl_operator_char_const___struct_DMString_const__]
push dword [eax]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
call dword [sym.imp.byondcore.dll_struct_DMString___cdecl_GetRscFile_char_const__]
add esp, 0x14
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call esi
push dword [edi + 0x280c]
push dword [ebp + 8]
call dword [sym.imp.byondwin.dll_public:_static_char_const____cdecl_CHubSplash::GetSplashFile_char_const___char_const__]
add esp, 8
lea ecx, [ebp - 0x1c]
push eax
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::constructor_char_const__]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.byondcore.dll_char___cdecl_CreatePathTo_char_const__]
mov byte [ebp - 4], 6
call esi
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x14]
mov esi, dword [sym.imp.byondcore.dll_void___cdecl_MakeFileWriteable_char_const__]
call esi
push dword [ebp - 0x1c]
call esi
mov esi, dword [sym.imp.byondcore.dll_struct_DMWideStringStub___cdecl_Utf82Wide_char_const__]
lea eax, [ebp - 0x34]
push 0x467c14
push eax
call esi
mov edi, eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 7
push eax
call esi
push dword [edi]
push dword [eax]
call dword [sym.imp.MSVCR120.dll__wfopen]
mov esi, dword [sym.imp.byondcore.dll_public:_void___thiscall_DMWideStringStub::destructor_void_]
lea ecx, [ebp - 0x30]
add esp, 0x28
mov edi, eax
mov dword [ebp - 0x20], edi
call esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call esi
test edi, edi
je 0x447c0e
push 0
push dword [ebx + 4]
push dword [ebx]
call dword [sym.imp.MSVCR120.dll_fseek]
push 0x10000
call dword [sym.imp.MSVCR120.dll_malloc]
mov esi, dword [ebx + 8]
add esp, 0x10
xor edi, edi
mov dword [ebp - 0x18], eax
test esi, esi
je 0x447b0d
mov edx, 0x10000
jmp 0x447ac3
mov eax, dword [ebp - 0x18]
push dword [ebx]
sub esi, edi
cmp esi, 0x10000
cmova esi, edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
push dword [ebp - 0x20]
cmp eax, esi
jne 0x447bfb
push esi
push 1
push dword [ebp - 0x18]
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp eax, esi
jne 0x447bf8
add edi, esi
mov edx, 0x10000
mov esi, dword [ebx + 8]
cmp edi, esi
jb 0x447ac0
push dword [ebp - 0x20]
call dword [sym.imp.MSVCR120.dll_fclose]
push dword [ebp - 0x18]
mov edi, dword [sym.imp.MSVCR120.dll_free]
call edi
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call dword [sym.imp.byondwin.dll_int___cdecl_copyFile_char_const___char_const__]
lea eax, [ebp - 0x34]
push str.rsc_
push eax
call dword [sym.imp.byondcore.dll_struct_DMString___cdecl_GetRscFile_char_const__]
push dword [eax]
mov byte [ebp - 4], 8
call dword [sym.imp.byondwin.dll_int___cdecl_removeFile_char_const__]
mov esi, dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::destructor_void_]
lea ecx, [ebp - 0x34]
add esp, 0x1c
mov byte [ebp - 4], 6
call esi
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x28]
push str.PreloadRscUrl
mov ecx, dword [eax + 0x2808]
add ecx, 0x294
call fcn.00426f10
mov ecx, eax
call dword [sym.imp.byondcore.dll_public:_struct_DMString____thiscall_DMString::operator_char_const__]
mov eax, dword [ebp - 0x10]
push str.PendingPreloadRscUrl
mov ecx, dword [eax + 0x2808]
add ecx, 0x294
call fcn.00415d00
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x2808]
call dword [sym.imp.byondwin.dll_public:_void___thiscall_CHubSplash::WriteIni_void_]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call esi
push dword [ebx + 0xc]
call edi
push ebx
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 0x20]
call dword [sym.imp.MSVCR120.dll_fclose]
push dword [ebp - 0x18]
mov eax, dword [sym.imp.MSVCR120.dll_free]
call eax
add esp, 8
mov esi, dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::destructor_void_]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call esi
jmp 0x447bd8