Function at 0x41df0b
Capabilities:
Write file on windows

Disassembly:
push 0x1e8
mov eax, 0x42ce1d
call fcn.00428dbe
mov esi, ecx
push 0x433500
lea ecx, [ebp - 0x16c]
mov dword [ebp - 0xd4], esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x7c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0042382c
pop ecx
pop ecx
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [ebp - 0x64], 8
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xc4], ebx
jae 0x41df6c
lea eax, [ebp - 0x78]
push 0x432db0
push eax
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.MSVCR80.dll__wfopen_s]
add esp, 0xc
cmp dword [ebp - 0xc4], ebx
jne 0x41df9f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
call fcn.00428e41
ret
lea eax, [ebp - 0x9c]
push eax
call fcn.0040f4e0
xor eax, eax
mov byte [ebp - 4], 3
lea edi, [ebp - 0xc0]
stosb byte es:[edi], al
push dword [ebp - 0xc0]
lea eax, [ebp - 0x104]
push 0x4315cc
push eax
call fcn.0040f643
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x9c]
push eax
lea ebx, [ebp - 0x104]
mov byte [ebp - 4], 4
call fcn.0041c38b
mov ecx, ebx
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [ebp - 0xbc]
push eax
call fcn.0040f4e0
mov byte [ebp - 4], 5
mov eax, dword [esi + 4]
mov ebx, dword [eax]
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xdc], esi
mov eax, dword [esi + 4]
lea edi, [ebp - 0xdc]
lea esi, [ebp - 0xcc]
mov dword [ebp - 0xd8], eax
call fcn.0040ce8c
test al, al
jne 0x41e1c6
lea eax, [ebp - 0x60]
push eax
call fcn.0040f4e0
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0xcc]
test esi, esi
jne 0x41e05b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esi + 4]
jne 0x41e066
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
sub esp, 0x1c
lea eax, [ebx + 0xc]
mov ecx, esp
mov dword [ebp - 0xd0], esp
push eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea esi, [ebp - 0xfc]
call fcn.0041c3ea
add esp, 0x1c
lea ecx, [ebp - 0x148]
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0041c42e
lea eax, [ebp - 0x148]
push eax
lea esi, [ebp - 0x150]
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 8
call fcn.0041530f
lea eax, [ebp - 0x148]
push eax
mov byte [ebp - 4], 7
call fcn.004150b9
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
lea edi, [ebp - 0xc0]
stosb byte es:[edi], al
push dword [ebp - 0xc0]
lea eax, [ebp - 0x104]
push 0x4315cc
push eax
call fcn.0040f643
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0xcc]
cmp ebx, dword [eax + 4]
jne 0x41e109
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add ebx, 0x28
push ebx
lea eax, [ebp - 0x60]
push eax
lea ebx, [ebp - 0x104]
call fcn.0041c38b
mov ecx, ebx
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
sub esp, 0x20
lea eax, [ebp - 0x60]
mov ecx, esp
mov dword [ebp - 0xd0], esp
push eax
call fcn.004158a5
push 0x4315c8
lea esi, [ebp - 0x100]
call fcn.0041c464
add esp, 0x24
lea ecx, [ebp - 0x148]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.0041c4a6
lea eax, [ebp - 0x148]
push eax
lea esi, [ebp - 0x10c]
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 0xb
call fcn.0041530f
lea eax, [ebp - 0x148]
push eax
mov byte [ebp - 4], 0xa
call fcn.004150b9
lea eax, [ebp - 0xfc]
push eax
mov byte [ebp - 4], 6
call fcn.0040f526
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 5
call fcn.0040f526
lea esi, [ebp - 0xcc]
call fcn.0040d8ae
mov ebx, dword [ebp - 0xc8]
mov esi, dword [ebp - 0xd4]
jmp 0x41e01c
sub esp, 0x20
lea eax, [ebp - 0xbc]
mov ecx, esp
mov dword [ebp - 0xd0], esp
push eax
call fcn.004158a5
push 0x43172c
lea esi, [ebp - 0x100]
call fcn.0041c464
add esp, 0x24
lea ecx, [ebp - 0x148]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.0041c4a6
lea eax, [ebp - 0x148]
push eax
lea esi, [ebp - 0x10c]
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 0xd
call fcn.0041530f
lea eax, [ebp - 0x148]
push eax
mov byte [ebp - 4], 0xc
call fcn.004150b9
lea eax, [ebp - 0xfc]
push eax
mov byte [ebp - 4], 5
call fcn.0040f526
xor ebx, ebx
inc ebx
push ebx
push 3
lea ecx, [ebp - 0x1f4]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_int_]
lea eax, [ebp - 0x9c]
push eax
lea esi, [ebp - 0x1ec]
mov byte [ebp - 4], 0xe
call fcn.0041c4db
pop ecx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x1f4]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::str_void_]
lea ecx, [ebp - 0x40]
push ecx
mov byte [ebp - 4], 0xf
call fcn.0041c512
pop ecx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x11
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
mov byte [ebp - 0x24], 0
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor esi, esi
call dword [sym.imp.MSVCR80.dll_rand]
mov byte [ebp + esi - 0x24], al
inc esi
cmp esi, 0x10
jb 0x41e2a3
mov ecx, dword [ebp - 0x2c]
call fcn.00423d28
push eax
mov dword [ebp - 0xc0], eax
call fcn.00424c96
cmp dword [ebp - 0x28], 0x10
mov edi, eax
mov eax, dword [ebp - 0x3c]
pop ecx
jae 0x41e2d6
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0xc0]
push ecx
push edi
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x2c]
push eax
call fcn.00423d45
mov esi, dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x14
push dword [ebp - 0xc4]
lea eax, [ebp - 0x24]
push 0x10
push ebx
push eax
call esi
push dword [ebp - 0xc4]
push dword [ebp - 0xc0]
push ebx
push edi
call esi
push dword [ebp - 0xc4]
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 0x24
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xe
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x1f4]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void_]
lea eax, [ebp - 0xbc]
push eax
mov byte [ebp - 4], 3
call fcn.0040f526
lea eax, [ebp - 0x9c]
push eax
mov byte [ebp - 4], 2
call fcn.0040f526
jmp 0x41df8a