Function at 0x429ed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45cd13
mov eax, dword fs:[0]
push eax
sub esp, 0x130
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 dword [ebp - 0x12c], ecx
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x134], ecx
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x138], 0
mov esi, dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::constructor_void_]
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x130], edi
call esi
mov dword [ebp - 4], 1
test edi, edi
jne 0x429f6a
push edi
mov ecx, ebx
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::constructor_char_const__]
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x138], 1
mov byte [ebp - 4], 0
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::destructor_void_]
jmp 0x42a3d5
mov eax, dword [0x49674c]
mov edi, dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::destructor_void_]
test eax, eax
jne 0x429fd8
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
push 0x104
push 0
push str.shdocvw.dll
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x429fae
mov dword [0x49674c], 7
jmp 0x42a0b4
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.byondwin.dll_int____cdecl_getVersionDigits_char__]
add esp, 4
test eax, eax
jne 0x429fd1
mov dword [0x49674c], 7
jmp 0x42a0b4
mov eax, dword [eax]
mov dword [0x49674c], eax
cmp eax, 7
jge 0x42a0b4
mov ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x124]
push str.pngfix.js
push eax
lea ecx, [ecx + 0x23a0]
call dword [sym.imp.byondwin.dll_public:_struct_DMString___thiscall_CacheList::GetPath_char_const__]
push dword [ebp - 0x124]
mov byte [ebp - 4], 2
call dword [sym.imp.byondwin.dll_int___cdecl_existsFile_char_const__]
add esp, 4
test eax, eax
jne 0x42a0a8
lea eax, [ebp - 0x118]
push 0x46cc38
push eax
call dword [sym.imp.byondcore.dll_struct_DMWideStringStub___cdecl_Utf82Wide_char_const__]
mov esi, eax
push dword [ebp - 0x124]
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 3
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 - 0x11c]
mov esi, eax
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMWideStringStub::destructor_void_]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMWideStringStub::destructor_void_]
test esi, esi
je 0x42a0a2
mov ecx, 0x492448
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42a080
push esi
sub ecx, edx
push ecx
push 1
push 0x492448
call dword [sym.imp.MSVCR120.dll_fwrite]
push esi
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 0x14
mov esi, dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::constructor_void_]
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 1
call edi
lea ecx, [ebp - 0x128]
call esi
cmp dword [0x49674c], 7
mov eax, dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::constructor_char_const__]
mov byte [ebp - 4], 4
jge 0x42a148
cmp dword [ebp + 0x14], 0
je 0x42a148
push dword [ebp - 0x130]
lea ecx, [ebp - 0x11c]
call eax
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 5
call dword [sym.imp.byondcore.dll_public:_struct_DMString____thiscall_DMString::MakeLower_void_]
mov esi, dword [sym.imp.byondcore.dll_public:_int___thiscall_DMString::Find_char_const___int_const]
lea ecx, [ebp - 0x11c]
push 0
push str..png
call esi
cmp eax, 0xffffffff
jne 0x42a120
push 0
push str..dmi
lea ecx, [ebp - 0x11c]
call esi
cmp eax, 0xffffffff
je 0x42a131
push str._____if_lt_IE_7.___n_script_defer_typetext_javascript_srcpngfix.js___script__n___endif_____n
lea ecx, [ebp - 0x128]
call dword [sym.imp.byondcore.dll_public:_struct_DMString____thiscall_DMString::operator_char_const__]
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 4
call edi
mov esi, dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::constructor_void_]
mov eax, dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::constructor_char_const__]
push dword [ebp - 0x130]
lea ecx, [ebp - 0x118]
call eax
push dword [eax]
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 6
call dword [0x46193c]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call edi
mov ecx, dword [ebp - 0x12c]
push dword [ebp - 0x128]
lea ecx, [ecx + 0x23a0]
call dword [sym.imp.byondwin.dll_public:_unsigned_long_int___thiscall_CacheList::GetCRC_char_const__]
mov dword [ebp - 0x124], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x124]
add ecx, eax
lea eax, [ebp - 0x118]
push ecx
mov dword [ebp - 0x124], ecx
mov ecx, dword [ebp - 0x12c]
push eax
lea ecx, [ecx + 0x23a0]
call dword [sym.imp.byondwin.dll_public:_struct_DMString___thiscall_CacheList::FindPath_unsigned_long_int_]
push eax
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 7
call dword [sym.imp.byondcore.dll_public:_struct_DMString____thiscall_DMString::operator_struct_DMString_const__]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call edi
lea ecx, [ebp - 0x120]
call dword [sym.imp.byondcore.dll_public:_bool___thiscall_DMString::IsEmpty_void_const]
test al, al
je 0x42a3a4
lea ecx, [ebp - 0x11c]
call esi
mov eax, dword [ebp - 0x134]
mov byte [ebp - 4], 8
test eax, eax
je 0x42a2b7
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x130]
push ecx
push str.file
mov ecx, eax
call fcn.004367a0
test eax, eax
je 0x42a2b7
mov esi, dword [sym.imp.byondcore.dll_public:_struct_DMString____thiscall_DMString::operator_struct_DMString_const__]
lea ecx, [ebp - 0x11c]
add eax, 4
push eax
call esi
mov ecx, dword [ebp - 0x134]
push str.file
call fcn.00415d00
mov ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x118]
push dword [ebp - 0x11c]
push eax
lea ecx, [ecx + 0x23a0]
call dword [sym.imp.byondwin.dll_public:_struct_DMString___thiscall_CacheList::GetFname_char_const__]
push eax
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 9
call esi
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 8
call edi
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x12c]
push 0
push eax
push 0
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ecx + 0x23a0]
call dword [sym.imp.byondwin.dll_public:_struct_DMString___thiscall_CacheList::AddFilePath_char_const___char_const___unsigned_long_int__int_]
mov byte [ebp - 4], 0xa
jmp 0x42a2ee
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x12c]
push 1
push eax
push str..htm
push dword [ebp - 0x128]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ecx + 0x23a0]
call dword [sym.imp.byondwin.dll_public:_struct_DMString___thiscall_CacheList::AddBufPath_char_const___char_const___unsigned_long_int__int_]
mov esi, dword [sym.imp.byondcore.dll_public:_struct_DMString____thiscall_DMString::operator_struct_DMString_const__]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x120]
call esi
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 8
call edi
lea eax, [ebp - 0x130]
push 0x46cc38
push eax
call dword [sym.imp.byondcore.dll_struct_DMWideStringStub___cdecl_Utf82Wide_char_const__]
mov esi, eax
push dword [ebp - 0x120]
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 0xc
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 - 0x118]
mov esi, eax
mov dword [ebp - 0x134], esi
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMWideStringStub::destructor_void_]
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 8
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMWideStringStub::destructor_void_]
test esi, esi
je 0x42a3f5
push dword [ebp - 0x134]
mov esi, dword [ebp - 0x128]
lea ecx, [ebp - 0x128]
call dword [sym.imp.byondcore.dll_public:_int___thiscall_DMString::GetLength_void_const]
push eax
push 1
push esi
call dword [sym.imp.MSVCR120.dll_fwrite]
push dword [ebp - 0x134]
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 0x14
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x11c]
call edi
lea eax, [ebp - 0x120]
mov ecx, ebx
push eax
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::constructor_struct_DMString_const__]
mov dword [ebp - 0x138], 1
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 1
call edi
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 0
call edi
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 0x10
mov ecx, dword [ebp - 0x12c]
add ecx, 4
push 0
push str.Unable_to_open_cache_file._n
mov eax, dword [ecx]
call dword [eax + 0x20]
push 0
mov ecx, ebx
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::constructor_char_const__]
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x138], 1
mov byte [ebp - 4], 4
call edi
jmp 0x42a3bd