Function at 0x40947f
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4aab39
call fcn.0049f0d0
sub esp, 0x4f4
mov eax, dword [0x4f0dd0]
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 - 0x4e0], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0x4e4], 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.0043cf12
mov dword [esp], 0x4b8840
lea eax, [ebp - 0x49c]
push edi
push eax
call fcn.00406b0a
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.0043c8ca
test al, al
pop ecx
jne 0x4094ff
mov ecx, edi
call fcn.00408eed
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 0x4b8948
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.00409259
lea eax, [ebp - 0x42c]
push eax
mov ecx, edi
call fcn.00407504
test al, al
jne 0x4095e8
lea eax, [ebp - 0x42c]
push eax
mov ecx, edi
call fcn.00408b82
jmp 0x409aa8
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.0043c64f
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 0x4b8944
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 0x4b893c
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 0x409a98
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 0x4b8938
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 0x4b8938
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 0x4b8938
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 - 0x4e0], ebx
mov byte [ebp - 4], 5
je 0x4097ed
lea eax, [ebp - 0x4b8]
push eax
push dword [ebp - 0x4e0]
call dword [sym.imp.MSVCR71.dll_wcslen]
pop ecx
push eax
push dword [ebp - 0x4e0]
call fcn.0043c64f
add esp, 0xc
cmp dword [ebp - 0x4e4], ebx
je 0x409818
lea eax, [ebp - 0x480]
push eax
push dword [ebp - 0x4e4]
call dword [sym.imp.MSVCR71.dll_wcslen]
pop ecx
push eax
push dword [ebp - 0x4e4]
call fcn.0043c64f
add esp, 0xc
cmp dword [ebp - 0x4a4], ebx
je 0x40984a
push 0x4b88f8
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 0x4098e7
mov dword [ebp - 0x4e8], ebx
push eax
jmp 0x4098d6
cmp dword [ebp - 0x4e8], ebx
je 0x4098e7
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 0x4098a3
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]
mov ecx, dword [eax]
lea edx, [ebp - 0x4f0]
push edx
push eax
mov byte [ebp - 4], 6
call dword [ecx + 0x4c]
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.0043c64f
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 - 0x4e0], ebx
call fcn.0040672c
test eax, eax
jbe 0x409a36
xor ecx, ecx
mov dword [ebp - 0x4e4], ecx
jmp 0x4099c2
mov ecx, dword [ebp - 0x4e4]
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 - 0x4e0]
add dword [ebp - 0x4e4], 0x20
lea ecx, [edi + 0x90]
call fcn.0040672c
cmp dword [ebp - 0x4e0], eax
jb 0x4099bc
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.00408b82
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.0049f127
leave
ret 0xc