Function at 0x414260
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c6a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x10260
call fcn.00418990
push ebx
push esi
push edi
lea edi, [ebp - 0x10270]
mov ecx, 0x4098
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 - 0x10254], 0x65ef0
lea eax, [ebp - 0x10254]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00416b40
mov ecx, dword [ebp + 8]
call fcn.0040377d
mov dword [ebp - 0x10038], eax
lea eax, [ebp - 0x10038]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00416b40
call fcn.00409919
mov dword [ebp - 0x10050], eax
lea eax, [ebp - 0x10074]
push eax
mov ecx, dword [ebp + 8]
call fcn.004157d0
mov dword [ebp - 0x10080], 0
jmp 0x414337
lea ecx, [ebp - 0x10074]
call fcn.00404807
mov eax, dword [ebp - 0x10080]
add eax, 1
mov dword [ebp - 0x10080], eax
lea eax, [ebp - 0x10248]
push eax
mov ecx, dword [ebp + 8]
call fcn.00415820
push eax
lea ecx, [ebp - 0x10074]
call fcn.004047a9
movzx ecx, al
test ecx, ecx
je 0x414795
lea ecx, [ebp - 0x10074]
call fcn.00415870
mov esi, esp
mov ecx, eax
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 - 0x1005c], eax
cmp dword [ebp - 0x1005c], 0
jne 0x414394
mov dword [ebp - 0x1025c], 0
jmp 0x4143f5
mov esi, esp
mov eax, dword [ebp - 0x1005c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.00418d1c
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10044], ecx
mov eax, dword [ebp - 0x10044]
add eax, 3
and eax, 0xfffffffc
call fcn.00418990
mov dword [ebp - 0x10260], esp
mov dword [ebp - 0x10], esp
mov edx, dword [ebp - 0x10050]
push edx
mov eax, dword [ebp - 0x10044]
push eax
mov ecx, dword [ebp - 0x1005c]
push ecx
mov edx, dword [ebp - 0x10260]
push edx
call fcn.0040991f
mov dword [ebp - 0x1025c], eax
mov esi, esp
mov eax, dword [ebp - 0x1025c]
push eax
lea ecx, [ebp - 0x1023c]
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 - 0x10264], eax
mov ecx, dword [ebp - 0x10264]
mov dword [ebp - 0x10268], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10268]
push edx
lea eax, [ebp - 0x10218]
push eax
call fcn.00415ac0
add esp, 8
mov dword [ebp - 0x1026c], eax
mov ecx, dword [ebp - 0x1026c]
mov dword [ebp - 0x10270], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x10270]
push edx
lea ecx, [ebp - 0x1002c]
call fcn.00417040
mov byte [ebp - 4], 1
mov esi, esp
lea ecx, [ebp - 0x10218]
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 byte [ebp - 4], 0
mov esi, esp
lea ecx, [ebp - 0x1023c]
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
lea ecx, [ebp - 0x10074]
call fcn.00415870
add eax, 0x28
mov esi, esp
mov ecx, eax
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 - 0x1005c], eax
cmp dword [ebp - 0x1005c], 0
jne 0x4144d1
mov dword [ebp - 0x1025c], 0
jmp 0x414532
mov esi, esp
mov eax, dword [ebp - 0x1005c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.00418d1c
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10044], ecx
mov eax, dword [ebp - 0x10044]
add eax, 3
and eax, 0xfffffffc
call fcn.00418990
mov dword [ebp - 0x10260], esp
mov dword [ebp - 0x10], esp
mov edx, dword [ebp - 0x10050]
push edx
mov eax, dword [ebp - 0x10044]
push eax
mov ecx, dword [ebp - 0x1005c]
push ecx
mov edx, dword [ebp - 0x10260]
push edx
call fcn.0040991f
mov dword [ebp - 0x1025c], eax
mov esi, esp
mov eax, dword [ebp - 0x1025c]
push eax
lea ecx, [ebp - 0x101f4]
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 - 0x10264], eax
mov ecx, dword [ebp - 0x10264]
mov dword [ebp - 0x10268], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x10268]
push edx
lea ecx, [ebp - 0x1002c]
call fcn.00417040
mov byte [ebp - 4], 0
mov esi, esp
lea ecx, [ebp - 0x101f4]
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
lea ecx, [ebp - 0x10074]
call fcn.00415870
add eax, 0x44
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00416b40
lea ecx, [ebp - 0x10074]
call fcn.00415870
add eax, 0x1c
mov ecx, eax
call fcn.0040377d
mov dword [ebp - 0x1008c], eax
lea eax, [ebp - 0x1008c]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00416b40
lea eax, [ebp - 0x10098]
push eax
lea ecx, [ebp - 0x10074]
call fcn.00415870
add eax, 0x1c
mov ecx, eax
call fcn.004157d0
lea eax, [ebp - 0x100a4]
push eax
lea ecx, [ebp - 0x10074]
call fcn.00415870
add eax, 0x1c
mov ecx, eax
call fcn.00415820
mov dword [ebp - 0x100b0], 0
jmp 0x414634
lea ecx, [ebp - 0x10098]
call fcn.004025ea
mov eax, dword [ebp - 0x100b0]
add eax, 1
mov dword [ebp - 0x100b0], eax
lea eax, [ebp - 0x100a4]
push eax
lea ecx, [ebp - 0x10098]
call fcn.004047a9
movzx ecx, al
test ecx, ecx
je 0x414790
lea ecx, [ebp - 0x10098]
call fcn.00415870
mov esi, esp
mov ecx, eax
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 - 0x1005c], eax
cmp dword [ebp - 0x1005c], 0
jne 0x414688
mov dword [ebp - 0x1025c], 0
jmp 0x4146e9
mov esi, esp
mov eax, dword [ebp - 0x1005c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.00418d1c
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10044], ecx
mov eax, dword [ebp - 0x10044]
add eax, 3
and eax, 0xfffffffc
call fcn.00418990
mov dword [ebp - 0x10260], esp
mov dword [ebp - 0x10], esp
mov edx, dword [ebp - 0x10050]
push edx
mov eax, dword [ebp - 0x10044]
push eax
mov ecx, dword [ebp - 0x1005c]
push ecx
mov edx, dword [ebp - 0x10260]
push edx
call fcn.0040991f
mov dword [ebp - 0x1025c], eax
mov esi, esp
mov eax, dword [ebp - 0x1025c]
push eax
lea ecx, [ebp - 0x101d0]
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 - 0x10264], eax
mov ecx, dword [ebp - 0x10264]
mov dword [ebp - 0x10268], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x10268]
push edx
lea eax, [ebp - 0x101ac]
push eax
call fcn.00415ac0
add esp, 8
mov dword [ebp - 0x1026c], eax
mov ecx, dword [ebp - 0x1026c]
mov dword [ebp - 0x10270], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x10270]
push edx
lea ecx, [ebp - 0x1002c]
call fcn.00417040
mov byte [ebp - 4], 4
mov esi, esp
lea ecx, [ebp - 0x101ac]
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 byte [ebp - 4], 0
mov esi, esp
lea ecx, [ebp - 0x101d0]
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
jmp 0x41461a
jmp 0x41431d
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 - 0x1005c], eax
cmp dword [ebp - 0x1005c], 0
jne 0x4147c2
mov dword [ebp - 0x1025c], 0
jmp 0x414823
mov esi, esp
mov eax, dword [ebp - 0x1005c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.00418d1c
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10044], ecx
mov eax, dword [ebp - 0x10044]
add eax, 3
and eax, 0xfffffffc
call fcn.00418990
mov dword [ebp - 0x10260], esp
mov dword [ebp - 0x10], esp
mov edx, dword [ebp - 0x10050]
push edx
mov eax, dword [ebp - 0x10044]
push eax
mov ecx, dword [ebp - 0x1005c]
push ecx
mov edx, dword [ebp - 0x10260]
push edx
call fcn.0040991f
mov dword [ebp - 0x1025c], eax
mov esi, esp
push 0x41fc50
mov eax, dword [ebp - 0x1025c]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
cmp esi, esp
call fcn.00418d1c
mov dword [ebp - 0x100bc], eax
cmp dword [ebp - 0x100bc], 0
jne 0x414852
jmp 0x4148aa
mov esi, esp
mov eax, dword [ebp - 0x100bc]
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 - 0x100bc]
push eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
cmp esi, esp
call fcn.00418d1c
jmp 0x4148a3
mov dword [ebp - 4], 0xffffffff
lea esp, [ebp - 0x1027c]
push edx
mov ecx, ebp
push eax
lea edx, [0x4148d4]
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