Function at 0x413b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41beb9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x10260
call fcn.00418250
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.00415b10
mov dword [ebp - 0x10254], 0x65ef0
lea eax, [ebp - 0x10254]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00416440
mov ecx, dword [ebp + 8]
call fcn.004033e7
mov dword [ebp - 0x10038], eax
lea eax, [ebp - 0x10038]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00416440
call fcn.00401ec1
mov dword [ebp - 0x10050], eax
lea eax, [ebp - 0x10074]
push eax
mov ecx, dword [ebp + 8]
call fcn.004150d0
mov dword [ebp - 0x10080], 0
jmp 0x413c37
lea ecx, [ebp - 0x10074]
call fcn.00404480
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.00415120
push eax
lea ecx, [ebp - 0x10074]
call fcn.00404422
movzx ecx, al
test ecx, ecx
je 0x414095
lea ecx, [ebp - 0x10074]
call fcn.00415170
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.004185ec
mov dword [ebp - 0x1005c], eax
cmp dword [ebp - 0x1005c], 0
jne 0x413c94
mov dword [ebp - 0x1025c], 0
jmp 0x413cf5
mov esi, esp
mov eax, dword [ebp - 0x1005c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.004185ec
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10044], ecx
mov eax, dword [ebp - 0x10044]
add eax, 3
and eax, 0xfffffffc
call fcn.00418250
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.0040925e
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.004185ec
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.004153c0
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.00416940
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.004185ec
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.004185ec
lea ecx, [ebp - 0x10074]
call fcn.00415170
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.004185ec
mov dword [ebp - 0x1005c], eax
cmp dword [ebp - 0x1005c], 0
jne 0x413dd1
mov dword [ebp - 0x1025c], 0
jmp 0x413e32
mov esi, esp
mov eax, dword [ebp - 0x1005c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.004185ec
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10044], ecx
mov eax, dword [ebp - 0x10044]
add eax, 3
and eax, 0xfffffffc
call fcn.00418250
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.0040925e
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.004185ec
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.00416940
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.004185ec
lea ecx, [ebp - 0x10074]
call fcn.00415170
add eax, 0x44
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00416440
lea ecx, [ebp - 0x10074]
call fcn.00415170
add eax, 0x1c
mov ecx, eax
call fcn.004033e7
mov dword [ebp - 0x1008c], eax
lea eax, [ebp - 0x1008c]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00416440
lea eax, [ebp - 0x10098]
push eax
lea ecx, [ebp - 0x10074]
call fcn.00415170
add eax, 0x1c
mov ecx, eax
call fcn.004150d0
lea eax, [ebp - 0x100a4]
push eax
lea ecx, [ebp - 0x10074]
call fcn.00415170
add eax, 0x1c
mov ecx, eax
call fcn.00415120
mov dword [ebp - 0x100b0], 0
jmp 0x413f34
lea ecx, [ebp - 0x10098]
call fcn.004022ea
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.00404422
movzx ecx, al
test ecx, ecx
je 0x414090
lea ecx, [ebp - 0x10098]
call fcn.00415170
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.004185ec
mov dword [ebp - 0x1005c], eax
cmp dword [ebp - 0x1005c], 0
jne 0x413f88
mov dword [ebp - 0x1025c], 0
jmp 0x413fe9
mov esi, esp
mov eax, dword [ebp - 0x1005c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.004185ec
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10044], ecx
mov eax, dword [ebp - 0x10044]
add eax, 3
and eax, 0xfffffffc
call fcn.00418250
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.0040925e
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.004185ec
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.004153c0
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.00416940
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.004185ec
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.004185ec
jmp 0x413f1a
jmp 0x413c1d
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.004185ec
mov dword [ebp - 0x1005c], eax
cmp dword [ebp - 0x1005c], 0
jne 0x4140c2
mov dword [ebp - 0x1025c], 0
jmp 0x414123
mov esi, esp
mov eax, dword [ebp - 0x1005c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.004185ec
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10044], ecx
mov eax, dword [ebp - 0x10044]
add eax, 3
and eax, 0xfffffffc
call fcn.00418250
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.0040925e
mov dword [ebp - 0x1025c], eax
mov esi, esp
push 0x41eaf0
mov eax, dword [ebp - 0x1025c]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
cmp esi, esp
call fcn.004185ec
mov dword [ebp - 0x100bc], eax
cmp dword [ebp - 0x100bc], 0
jne 0x414152
jmp 0x4141aa
mov esi, esp
mov eax, dword [ebp - 0x100bc]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00415e90
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.004185ec
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.004185ec
jmp 0x4141a3
mov dword [ebp - 4], 0xffffffff
lea esp, [ebp - 0x1027c]
push edx
mov ecx, ebp
push eax
lea edx, [0x4141d4]
call fcn.0041860f
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