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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d91b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x492984]
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, ecx
mov dword [ebp - 0x220], edi
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x224], 0
test esi, esi
jne 0x432834
push dword [ebp + 0x10]
push ecx
lea ecx, [edi + 0x2438]
call dword [sym.imp.byondwin.dll_public:_unsigned_long_int___thiscall_CacheList::GetCRC_struct__iobuf___int_]
mov esi, eax
push esi
lea eax, [ebp - 0x214]
add edi, 0x2438
push eax
mov ecx, edi
call dword [sym.imp.byondwin.dll_public:_struct_DMString___thiscall_CacheList::FindPath_unsigned_long_int_]
push dword [ebp - 0x218]
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 1
push eax
mov ecx, edi
call dword [sym.imp.byondwin.dll_public:_struct_DMString___thiscall_CacheList::GetPath_char_const__]
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 2
call dword [sym.imp.byondcore.dll_public:_bool___thiscall_DMString::IsEmpty_void_const]
test al, al
jne 0x43290d
push dword [ebp - 0x21c]
call dword [sym.imp.byondwin.dll_int___cdecl_existsFile_char_const__]
add esp, 4
test eax, eax
je 0x4328a3
push dword [ebp - 0x218]
mov ecx, edi
call dword [sym.imp.byondwin.dll_public:_unsigned_long_int___thiscall_CacheList::GetCachedCRC_char_const__]
cmp eax, esi
jne 0x43290d
push dword [ebp - 0x214]
lea ecx, [ebp - 0x21c]
call dword [sym.imp.byondcore.dll_public:_int___thiscall_DMString::CompareNoCase_char_const__const]
test eax, eax
je 0x432902
push dword [ebp - 0x21c]
call dword [sym.imp.byondwin.dll_int___cdecl_existsFile_char_const__]
add esp, 4
test eax, eax
je 0x4328de
push dword [ebp - 0x218]
mov ecx, edi
call dword [sym.imp.byondwin.dll_public:_unsigned_long_int___thiscall_CacheList::GetCachedCRC_char_const__]
cmp eax, esi
je 0x432902
push dword [ebp - 0x21c]
push dword [ebp - 0x214]
call dword [sym.imp.byondwin.dll_int___cdecl_copyFile_char_const___char_const__]
add esp, 8
mov ecx, edi
push esi
push dword [ebp - 0x218]
call dword [sym.imp.byondwin.dll_public:_void___thiscall_CacheList::SetCachedCRC_char_const___unsigned_long_int_]
lea eax, [ebp - 0x21c]
jmp 0x432bbf
push 0
push esi
push 0
push dword [ebp - 0x218]
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call dword [sym.imp.byondwin.dll_public:_struct_DMString___thiscall_CacheList::AddFilePath_char_const___char_const___unsigned_long_int__int_]
push eax
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 3
call dword [sym.imp.byondcore.dll_public:_struct_DMString____thiscall_DMString::operator_struct_DMString_const__]
mov edi, dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::destructor_void_]
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 2
call edi
push dword [ebp - 0x214]
call dword [sym.imp.byondcore.dll_void___cdecl_MakeFileWriteable_char_const__]
lea eax, [ebp - 0x22c]
push 0x467c14
push eax
call dword [sym.imp.byondcore.dll_struct_DMWideStringStub___cdecl_Utf82Wide_char_const__]
mov esi, eax
push dword [ebp - 0x214]
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 4
push eax
call dword [sym.imp.byondcore.dll_struct_DMWideStringStub___cdecl_Utf82Wide_char_const__]
push dword [esi]
push dword [eax]
call dword [sym.imp.MSVCR120.dll__wfopen]
add esp, 0x1c
lea ecx, [ebp - 0x228]
mov esi, eax
mov dword [ebp - 0x218], esi
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMWideStringStub::destructor_void_]
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 2
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMWideStringStub::destructor_void_]
test esi, esi
jne 0x432a01
mov ecx, dword [ebp - 0x220]
add ecx, 0x9c
push esi
push str.Unable_to_open_cache_file._n
mov eax, dword [ecx]
call dword [eax + 0x20]
push 0x4643fb
mov ecx, ebx
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::constructor_char_const__]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x224], 1
mov byte [ebp - 4], 1
call edi
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 0
call edi
jmp 0x432bf0
mov eax, dword [ebp + 0x10]
xor edi, edi
test eax, eax
je 0x432a73
mov edx, 0x200
nop
push dword [ebp - 0x230]
mov esi, eax
lea eax, [ebp - 0x210]
sub esi, edi
cmp esi, 0x200
cmova esi, edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
push dword [ebp - 0x218]
cmp eax, esi
jne 0x432c46
push esi
lea eax, [ebp - 0x210]
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp eax, esi
jne 0x432c10
mov eax, dword [ebp + 0x10]
add edi, esi
mov edx, 0x200
cmp edi, eax
jb 0x432a10
mov esi, dword [ebp - 0x218]
mov edi, dword [sym.imp.MSVCR120.dll_fclose]
push esi
call edi
add esp, 4
cmp byte [ebp + 0x1c], 3
jne 0x432bb9
lea eax, [ebp - 0x22c]
push 0x4663b0
push eax
call dword [sym.imp.byondcore.dll_struct_DMWideStringStub___cdecl_Utf82Wide_char_const__]
mov esi, eax
push dword [ebp - 0x214]
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 5
push eax
call dword [sym.imp.byondcore.dll_struct_DMWideStringStub___cdecl_Utf82Wide_char_const__]
push dword [esi]
push dword [eax]
call dword [sym.imp.MSVCR120.dll__wfopen]
add esp, 0x18
lea ecx, [ebp - 0x230]
mov esi, eax
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMWideStringStub::destructor_void_]
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 2
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMWideStringStub::destructor_void_]
test esi, esi
je 0x432bb9
push 0
push 0
push 0x4643fb
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push esi
call dword [sym.imp.byondcore.dll_int___cdecl_readPixels_struct__iobuf___enum_IconType___struct_ColRGBA____int___int___char_const___int__int_]
add esp, 0x20
test eax, eax
je 0x432baf
push esi
call edi
push dword [ebp - 0x214]
call dword [sym.imp.byondcore.dll_void___cdecl_MakeFileWriteable_char_const__]
lea eax, [ebp - 0x218]
push 0x467c14
push eax
call dword [sym.imp.byondcore.dll_struct_DMWideStringStub___cdecl_Utf82Wide_char_const__]
mov esi, eax
push dword [ebp - 0x214]
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 6
push eax
call dword [sym.imp.byondcore.dll_struct_DMWideStringStub___cdecl_Utf82Wide_char_const__]
push dword [esi]
push dword [eax]
call dword [sym.imp.MSVCR120.dll__wfopen]
add esp, 0x20
lea ecx, [ebp - 0x228]
mov esi, eax
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMWideStringStub::destructor_void_]
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 2
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMWideStringStub::destructor_void_]
test esi, esi
je 0x432ba0
push dword [ebp - 0x238]
push dword [ebp - 0x234]
push dword [ebp - 0x220]
push 3
push esi
call dword [sym.imp.byondcore.dll_int___cdecl_writePixels_struct__iobuf___enum_IconType__struct_ColRGBA___int__int_]
add esp, 0x14
push dword [ebp - 0x220]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
test esi, esi
je 0x432bb9
push esi
call edi
add esp, 4
lea eax, [ebp - 0x214]
push eax
mov ecx, ebx
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::constructor_struct_DMString_const__]
mov esi, dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::destructor_void_]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x224], 1
mov byte [ebp - 4], 1
call esi
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 0
call esi
mov eax, ebx
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.004580b8
mov esp, ebp
pop ebp
ret 0x18
push dword [ebp - 0x218]
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
push 0
push str.Unable_to_write_cache_file._n
mov ecx, dword [ebp - 0x220]
add ecx, 0x9c
mov eax, dword [ecx]
call dword [eax + 0x20]
push 0x4643fb
mov ecx, ebx
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::constructor_char_const__]
jmp 0x432bc8
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
push 0
push str.Unable_to_read_cache_file._n
jmp 0x432c26