Function at 0x411a80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418695
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x10174
call fcn.00414e70
push ebx
push esi
push edi
lea edi, [ebp - 0x10184]
mov ecx, 0x405d
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
push 0
push 0x10000
lea eax, [ebp - 0x10014]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00413280
mov dword [ebp - 0x10170], 0x65ef0
lea eax, [ebp - 0x10170]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00413bb0
call fcn.00401e5d
mov dword [ebp - 0x10044], eax
mov esi, esp
mov ecx, dword [ebp + 8]
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]
cmp esi, esp
call fcn.0041512c
mov dword [ebp - 0x10050], eax
cmp dword [ebp - 0x10050], 0
jne 0x411b2f
mov dword [ebp - 0x10178], 0
jmp 0x411b90
mov esi, esp
mov eax, dword [ebp - 0x10050]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.0041512c
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10038], ecx
mov eax, dword [ebp - 0x10038]
add eax, 3
and eax, 0xfffffffc
call fcn.00414e70
mov dword [ebp - 0x1017c], esp
mov dword [ebp - 0x10], esp
mov edx, dword [ebp - 0x10044]
push edx
mov eax, dword [ebp - 0x10038]
push eax
mov ecx, dword [ebp - 0x10050]
push ecx
mov edx, dword [ebp - 0x1017c]
push edx
call fcn.004071e3
mov dword [ebp - 0x10178], eax
mov esi, esp
mov eax, dword [ebp - 0x10178]
push eax
lea ecx, [ebp - 0x10164]
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__]
cmp esi, esp
call fcn.0041512c
mov dword [ebp - 0x10180], eax
mov ecx, dword [ebp - 0x10180]
mov dword [ebp - 0x10184], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10184]
push edx
lea ecx, [ebp - 0x1002c]
call fcn.004140b0
mov byte [ebp - 4], 0
mov esi, esp
lea ecx, [ebp - 0x10164]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp esi, esp
call fcn.0041512c
mov esi, esp
mov ecx, dword [ebp + 0xc]
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]
cmp esi, esp
call fcn.0041512c
mov dword [ebp - 0x10050], eax
cmp dword [ebp - 0x10050], 0
jne 0x411c1a
mov dword [ebp - 0x10178], 0
jmp 0x411c7b
mov esi, esp
mov eax, dword [ebp - 0x10050]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.0041512c
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10038], ecx
mov eax, dword [ebp - 0x10038]
add eax, 3
and eax, 0xfffffffc
call fcn.00414e70
mov dword [ebp - 0x1017c], esp
mov dword [ebp - 0x10], esp
mov edx, dword [ebp - 0x10044]
push edx
mov eax, dword [ebp - 0x10038]
push eax
mov ecx, dword [ebp - 0x10050]
push ecx
mov edx, dword [ebp - 0x1017c]
push edx
call fcn.004071e3
mov dword [ebp - 0x10178], eax
mov esi, esp
push 0x41b898
mov eax, dword [ebp - 0x10178]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
cmp esi, esp
call fcn.0041512c
mov dword [ebp - 0x10068], eax
cmp dword [ebp - 0x10068], 0
jne 0x411cac
xor al, al
jmp 0x411d0a
mov esi, esp
mov eax, dword [ebp - 0x10068]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00413600
push eax
push 1
lea ecx, [ebp - 0x10014]
push ecx
call dword [sym.imp.MSVCR71.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.0041512c
mov esi, esp
mov eax, dword [ebp - 0x10068]
push eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
cmp esi, esp
call fcn.0041512c
mov al, 1
jmp 0x411d0a
lea esp, [ebp - 0x10190]
push edx
mov ecx, ebp
push eax
lea edx, [0x411d34]
call fcn.0041514f
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret