Function at 0x414a10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c6d5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x10174
call fcn.00418990
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.00416210
mov dword [ebp - 0x10170], 0x65ef0
lea eax, [ebp - 0x10170]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00416b40
call fcn.00409919
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.00418d1c
mov dword [ebp - 0x10050], eax
cmp dword [ebp - 0x10050], 0
jne 0x414abf
mov dword [ebp - 0x10178], 0
jmp 0x414b20
mov esi, esp
mov eax, dword [ebp - 0x10050]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.00418d1c
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10038], ecx
mov eax, dword [ebp - 0x10038]
add eax, 3
and eax, 0xfffffffc
call fcn.00418990
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.0040991f
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.00418d1c
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.00417040
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.00418d1c
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.00418d1c
mov dword [ebp - 0x10050], eax
cmp dword [ebp - 0x10050], 0
jne 0x414baa
mov dword [ebp - 0x10178], 0
jmp 0x414c0b
mov esi, esp
mov eax, dword [ebp - 0x10050]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.00418d1c
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10038], ecx
mov eax, dword [ebp - 0x10038]
add eax, 3
and eax, 0xfffffffc
call fcn.00418990
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.0040991f
mov dword [ebp - 0x10178], eax
mov esi, esp
push 0x41fc50
mov eax, dword [ebp - 0x10178]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
cmp esi, esp
call fcn.00418d1c
mov dword [ebp - 0x10068], eax
cmp dword [ebp - 0x10068], 0
jne 0x414c3c
xor al, al
jmp 0x414c9a
mov esi, esp
mov eax, dword [ebp - 0x10068]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00416590
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.00418d1c
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.00418d1c
mov al, 1
jmp 0x414c9a
lea esp, [ebp - 0x10190]
push edx
mov ecx, ebp
push eax
lea edx, [0x414cc4]
call fcn.00418d3f
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