Function at 0x414640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cae9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x10260
call fcn.00418d80
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.004165f0
mov dword [ebp - 0x10254], 0x65ef0
lea eax, [ebp - 0x10254]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00416f20
mov ecx, dword [ebp + 8]
call fcn.00403a88
mov dword [ebp - 0x10038], eax
lea eax, [ebp - 0x10038]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00416f20
call fcn.00409cf7
mov dword [ebp - 0x10050], eax
lea eax, [ebp - 0x10074]
push eax
mov ecx, dword [ebp + 8]
call fcn.00415bb0
mov dword [ebp - 0x10080], 0
jmp 0x414717
lea ecx, [ebp - 0x10074]
call fcn.00404b2c
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.00415c00
push eax
lea ecx, [ebp - 0x10074]
call fcn.00404ace
movzx ecx, al
test ecx, ecx
je 0x414b75
lea ecx, [ebp - 0x10074]
call fcn.00415c50
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.0041910c
mov dword [ebp - 0x1005c], eax
cmp dword [ebp - 0x1005c], 0
jne 0x414774
mov dword [ebp - 0x1025c], 0
jmp 0x4147d5
mov esi, esp
mov eax, dword [ebp - 0x1005c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.0041910c
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10044], ecx
mov eax, dword [ebp - 0x10044]
add eax, 3
and eax, 0xfffffffc
call fcn.00418d80
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.00409cfd
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.0041910c
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.00415ea0
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.00417420
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.0041910c
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.0041910c
lea ecx, [ebp - 0x10074]
call fcn.00415c50
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.0041910c
mov dword [ebp - 0x1005c], eax
cmp dword [ebp - 0x1005c], 0
jne 0x4148b1
mov dword [ebp - 0x1025c], 0
jmp 0x414912
mov esi, esp
mov eax, dword [ebp - 0x1005c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.0041910c
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10044], ecx
mov eax, dword [ebp - 0x10044]
add eax, 3
and eax, 0xfffffffc
call fcn.00418d80
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.00409cfd
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.0041910c
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.00417420
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.0041910c
lea ecx, [ebp - 0x10074]
call fcn.00415c50
add eax, 0x44
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00416f20
lea ecx, [ebp - 0x10074]
call fcn.00415c50
add eax, 0x1c
mov ecx, eax
call fcn.00403a88
mov dword [ebp - 0x1008c], eax
lea eax, [ebp - 0x1008c]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00416f20
lea eax, [ebp - 0x10098]
push eax
lea ecx, [ebp - 0x10074]
call fcn.00415c50
add eax, 0x1c
mov ecx, eax
call fcn.00415bb0
lea eax, [ebp - 0x100a4]
push eax
lea ecx, [ebp - 0x10074]
call fcn.00415c50
add eax, 0x1c
mov ecx, eax
call fcn.00415c00
mov dword [ebp - 0x100b0], 0
jmp 0x414a14
lea ecx, [ebp - 0x10098]
call fcn.00402973
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.00404ace
movzx ecx, al
test ecx, ecx
je 0x414b70
lea ecx, [ebp - 0x10098]
call fcn.00415c50
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.0041910c
mov dword [ebp - 0x1005c], eax
cmp dword [ebp - 0x1005c], 0
jne 0x414a68
mov dword [ebp - 0x1025c], 0
jmp 0x414ac9
mov esi, esp
mov eax, dword [ebp - 0x1005c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.0041910c
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10044], ecx
mov eax, dword [ebp - 0x10044]
add eax, 3
and eax, 0xfffffffc
call fcn.00418d80
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.00409cfd
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.0041910c
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.00415ea0
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.00417420
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.0041910c
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.0041910c
jmp 0x4149fa
jmp 0x4146fd
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.0041910c
mov dword [ebp - 0x1005c], eax
cmp dword [ebp - 0x1005c], 0
jne 0x414ba2
mov dword [ebp - 0x1025c], 0
jmp 0x414c03
mov esi, esp
mov eax, dword [ebp - 0x1005c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.0041910c
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10044], ecx
mov eax, dword [ebp - 0x10044]
add eax, 3
and eax, 0xfffffffc
call fcn.00418d80
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.00409cfd
mov dword [ebp - 0x1025c], eax
mov esi, esp
push 0x41fc68
mov eax, dword [ebp - 0x1025c]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
cmp esi, esp
call fcn.0041910c
mov dword [ebp - 0x100bc], eax
cmp dword [ebp - 0x100bc], 0
jne 0x414c32
jmp 0x414c8a
mov esi, esp
mov eax, dword [ebp - 0x100bc]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00416970
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.0041910c
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.0041910c
jmp 0x414c83
mov dword [ebp - 4], 0xffffffff
lea esp, [ebp - 0x1027c]
push edx
mov ecx, ebp
push eax
lea edx, [0x414cb4]
call fcn.0041912f
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