Function at 0x414610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c305
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x10174
call fcn.00418580
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.00415e10
mov dword [ebp - 0x10170], 0x65ef0
lea eax, [ebp - 0x10170]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00416740
call fcn.0040950d
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.0041891c
mov dword [ebp - 0x10050], eax
cmp dword [ebp - 0x10050], 0
jne 0x4146bf
mov dword [ebp - 0x10178], 0
jmp 0x414720
mov esi, esp
mov eax, dword [ebp - 0x10050]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.0041891c
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10038], ecx
mov eax, dword [ebp - 0x10038]
add eax, 3
and eax, 0xfffffffc
call fcn.00418580
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.00409513
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.0041891c
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.00416c40
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.0041891c
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.0041891c
mov dword [ebp - 0x10050], eax
cmp dword [ebp - 0x10050], 0
jne 0x4147aa
mov dword [ebp - 0x10178], 0
jmp 0x41480b
mov esi, esp
mov eax, dword [ebp - 0x10050]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.0041891c
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10038], ecx
mov eax, dword [ebp - 0x10038]
add eax, 3
and eax, 0xfffffffc
call fcn.00418580
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.00409513
mov dword [ebp - 0x10178], eax
mov esi, esp
push 0x41ebe0
mov eax, dword [ebp - 0x10178]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
cmp esi, esp
call fcn.0041891c
mov dword [ebp - 0x10068], eax
cmp dword [ebp - 0x10068], 0
jne 0x41483c
xor al, al
jmp 0x41489a
mov esi, esp
mov eax, dword [ebp - 0x10068]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00416190
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.0041891c
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.0041891c
mov al, 1
jmp 0x41489a
lea esp, [ebp - 0x10190]
push edx
mov ecx, ebp
push eax
lea edx, [0x4148c4]
call fcn.0041893f
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