Function at 0x4105ed
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4dbe72
call fcn.004d1ec0
sub esp, 0x4f4
mov eax, dword [0x52f220]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x4e4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0x4e0], eax
mov dword [ebp - 0x4ec], esi
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call fcn.004545ee
mov dword [esp], 0x4ed9ac
lea eax, [ebp - 0x49c]
push edi
push eax
call fcn.00407691
add esp, 0xc
xor ebx, ebx
lea ecx, [ebp - 0x49c]
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call fcn.00453fa6
test al, al
pop ecx
jne 0x41066d
mov ecx, edi
call fcn.0041005b
push dword [esi + 0xc]
movzx eax, word [esi + 4]
push dword [esi + 8]
mov esi, dword [sym.imp.MSVCR71.dll__snprintf]
push eax
push str._04X__08X__08X
lea eax, [ebp - 0x410]
push 0x400
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x42c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [ebp - 0x500]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x4f4]
push eax
movzx eax, word [ebp - 0x4f6]
push eax
movzx eax, word [ebp - 0x4f8]
push eax
movzx eax, word [ebp - 0x4fa]
push eax
movzx eax, word [ebp - 0x4fe]
push eax
movzx eax, word [ebp - 0x500]
push eax
push 0x4edab4
lea eax, [ebp - 0x410]
push 0x400
push eax
call esi
add esp, 0x24
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x464]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x49c]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.004103c7
lea eax, [ebp - 0x42c]
push eax
mov ecx, edi
call fcn.0040ea57
test al, al
jne 0x410756
lea eax, [ebp - 0x42c]
push eax
mov ecx, edi
call fcn.0040fcf0
jmp 0x410c2c
lea ecx, [ebp - 0x448]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov eax, dword [edi + 0x14]
lea ecx, [ebp - 0x448]
push ecx
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call fcn.00451ca0
add esp, 0xc
lea ecx, [ebp - 0x42c]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [ebp - 0x448]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const__]
push 0x4edab0
lea ecx, [ebp - 0x448]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const__]
lea ecx, [ebp - 0x464]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [ebp - 0x448]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const__]
push 0x4edaa8
lea ecx, [ebp - 0x448]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const__]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
lea ecx, [ebp - 0x448]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x4d8], eax
je 0x410c1c
mov eax, dword [edi + 0x30]
push ebx
lea ecx, [ebp - 0x4dc]
push ecx
push eax
lea ecx, [edi + 0x1c]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push dword [ebp - 0x4d8]
call esi
push ebx
lea eax, [ebp - 0x4dc]
push eax
push 2
push 0x4edaa4
push dword [ebp - 0x4d8]
call esi
mov eax, dword [edi + 0x4c]
push ebx
lea ecx, [ebp - 0x4dc]
push ecx
push eax
lea ecx, [edi + 0x38]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push dword [ebp - 0x4d8]
call esi
push ebx
lea eax, [ebp - 0x4dc]
push eax
push 2
push 0x4edaa4
push dword [ebp - 0x4d8]
call esi
mov eax, dword [edi + 0x68]
push ebx
lea ecx, [ebp - 0x4dc]
push ecx
push eax
lea ecx, [edi + 0x54]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push dword [ebp - 0x4d8]
call esi
push ebx
lea eax, [ebp - 0x4dc]
push eax
push 2
push 0x4edaa4
push dword [ebp - 0x4d8]
call esi
lea ecx, [ebp - 0x42c]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [ebp - 0x464]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [edi + 0x70]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push str.starttime_:__s__r_nerrortime_:__s_r_n_r_nsid:_s_r_nerrorstring:_r_n
lea eax, [ebp - 0x410]
push 0x400
push eax
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x18
push ebx
lea eax, [ebp - 0x4dc]
push eax
lea eax, [ebp - 0x410]
push eax
call sub.MSVCR71.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x4d8]
call esi
lea ecx, [ebp - 0x4b8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [ebp - 0x480]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
cmp dword [ebp - 0x4e4], ebx
mov byte [ebp - 4], 5
je 0x41095b
lea eax, [ebp - 0x4b8]
push eax
push dword [ebp - 0x4e4]
call dword [sym.imp.MSVCR71.dll_wcslen]
pop ecx
push eax
push dword [ebp - 0x4e4]
call fcn.00451ca0
add esp, 0xc
cmp dword [ebp - 0x4e0], ebx
je 0x410986
lea eax, [ebp - 0x480]
push eax
push dword [ebp - 0x4e0]
call dword [sym.imp.MSVCR71.dll_wcslen]
pop ecx
push eax
push dword [ebp - 0x4e0]
call fcn.00451ca0
add esp, 0xc
cmp dword [ebp - 0x4a4], ebx
je 0x4109b8
push 0x4eda64
lea ecx, [ebp - 0x480]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const__]
lea ecx, [ebp - 0x4b8]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [ebp - 0x480]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const__]
push ebx
lea eax, [ebp - 0x4dc]
push eax
push dword [ebp - 0x46c]
lea ecx, [ebp - 0x480]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push dword [ebp - 0x4d8]
call esi
push ebx
lea eax, [ebp - 0x4dc]
push eax
push str._r_n_r_nstack:_r_n
call sub.MSVCR71.dll_strlen
pop ecx
push eax
push str._r_n_r_nstack:_r_n
push dword [ebp - 0x4d8]
call esi
mov eax, dword [ebp - 0x4ec]
mov eax, dword [eax]
cmp eax, ebx
je 0x410a55
mov dword [ebp - 0x4e8], ebx
push eax
jmp 0x410a44
cmp dword [ebp - 0x4e8], ebx
je 0x410a55
push ebx
lea eax, [ebp - 0x4dc]
push eax
push dword [ebp - 0x4e8]
call sub.MSVCR71.dll_strlen
pop ecx
push eax
push dword [ebp - 0x4e8]
push dword [ebp - 0x4d8]
call esi
mov eax, dword [ebp - 0x4ec]
push dword [eax]
lea eax, [ebp - 0x4e8]
push eax
call dword [sym.imp.XLLuaRuntime.dll_Ordinal_1]
test eax, eax
je 0x410a11
push ebx
lea eax, [ebp - 0x4dc]
push eax
push str._r_nloaded_addins:_r_n
call sub.MSVCR71.dll_strlen
pop ecx
push eax
push str._r_nloaded_addins:_r_n
push dword [ebp - 0x4d8]
call esi
mov dword [ebp - 0x4f0], ebx
mov eax, dword [edi + 0x8c]
cmp eax, ebx
mov byte [ebp - 4], 6
je 0x410a99
mov ecx, dword [eax]
lea edx, [ebp - 0x4f0]
push edx
push eax
call dword [ecx + 0x50]
jmp 0x410aa9
push 0x4ed274
lea ecx, [ebp - 0x4f0]
call fcn.0040e0a5
lea ecx, [ebp - 0x4d4]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov eax, dword [ebp - 0x4f0]
lea ecx, [ebp - 0x4d4]
push ecx
push eax
mov byte [ebp - 4], 7
mov dword [ebp - 0x4ec], eax
call dword [sym.imp.MSVCR71.dll_wcslen]
pop ecx
push eax
push dword [ebp - 0x4ec]
call fcn.00451ca0
add esp, 0xc
push ebx
lea eax, [ebp - 0x4dc]
push eax
push dword [ebp - 0x4c0]
lea ecx, [ebp - 0x4d4]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push dword [ebp - 0x4d8]
call esi
push ebx
lea eax, [ebp - 0x4dc]
push eax
push 0x13
push str._r_nprevious_error:_r_n
push dword [ebp - 0x4d8]
call esi
lea ecx, [edi + 0x90]
mov dword [ebp - 0x4e4], ebx
call fcn.0040df08
test eax, eax
jbe 0x410bba
xor ecx, ecx
mov dword [ebp - 0x4e0], ecx
jmp 0x410b46
mov ecx, dword [ebp - 0x4e0]
mov eax, dword [edi + 0x94]
lea edx, [ecx + eax]
push dword [edx + 0x1c]
add ecx, eax
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push str._s__d_r_n
lea eax, [ebp - 0x410]
push 0x400
push eax
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x14
push ebx
lea eax, [ebp - 0x4dc]
push eax
lea eax, [ebp - 0x410]
push eax
call sub.MSVCR71.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x4d8]
call esi
inc dword [ebp - 0x4e4]
add dword [ebp - 0x4e0], 0x20
lea ecx, [edi + 0x90]
call fcn.0040df08
cmp dword [ebp - 0x4e4], eax
jb 0x410b40
push dword [ebp - 0x4d8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x4d8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x42c]
push eax
mov ecx, edi
call fcn.0040fcf0
lea ecx, [ebp - 0x4d4]
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push dword [ebp - 0x4f0]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x480]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x4b8]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x448]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x49c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d1f17
leave
ret 0xc