Function at 0x401570
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x13b8
call fcn.00401030
push esi
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0xc], str.2000
mov dword [esp + 0x10], 0x403150
mov dword [esp + 0x14], str.2003
mov dword [esp + 0x18], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
je 0x40163a
mov eax, dword [esp + 0x18]
sub eax, 5
je 0x4015ed
sub eax, 1
jne 0x401651
mov ecx, dword [esp + 0x20]
movzx edx, word [esp + 0xa8]
push ecx
push edx
push str.Windows_Vista_SP_d_build__d
lea eax, [esp + 0xbc]
push 0x104
push eax
call esi
add esp, 0x14
jmp 0x401651
mov eax, dword [esp + 0x1c]
cmp eax, 3
jae 0x401651
cmp byte [esp + 0xae], 1
jne 0x40160e
cmp eax, 2
jne 0x40160e
mov eax, 1
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x20]
movzx edx, word [esp + 0xa8]
mov eax, dword [esp + eax*4 + 8]
push ecx
push edx
push eax
push str.Windows__s_SP_d_build__d
lea ecx, [esp + 0xc0]
push 0x104
push ecx
call esi
add esp, 0x18
jmp 0x401651
push str.Unknown
lea edx, [esp + 0xb4]
push 0x104
push edx
call esi
add esp, 0xc
push 0x104
lea eax, [esp + 0x1b8]
push eax
push 0
push 0
push 0
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0x104
lea ecx, [esp + 0x2bc]
push ecx
push 0
push 0
push 0
push 0x800
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0x2bc]
push eax
lea ecx, [esp + 0x1bc]
push ecx
push str.1.1.0.3
push str._html__header__style_bodyfont_family:trebuchet_ms_color:black_background_color:505050_div.copyrightfont_size:10px_color:707070_text_align:center_tablemargin:0px_padding:0px_border_collapse:collapse_border_top:2px_solid_black_border_bottom:2px_solid_black_table.headerwidth:100___border_width:0px_tdpadding:3px_font_size:12px_background_color:f0f0f0_border:1px_solid_black_td.datepadding:0px_border_top:0px_border_left:0px_border_bottom:0px_border_width:0px_td.date.datetitlewidth:100px_text_align:center_background_color:b0b0b0_td.date.datentext_align:right_background_color:e0e0e0td.namewidth:370px_td.errortext_align:center_color:white_background_color:ff0000_td.vulnerabletext_align:center_color:white_background_color:b00000_td.protectedtext_align:center_color:black_background_color:00b000_td.headertext_align:center_background_color:e0e0e0_td.logocolor:white_font_size:15px_font_weight:900_text_transform:uppercase_letter_spacing:4px_margin:0px_padding:10px_text_align:center_background_color:a00000___style__title_COMODO_Leaktests_result__title___header__body__center__table_width_500__align_center__cols_2__cellspacing_0___tr__td_colspan_2__class_logo__COMODO_Leaktests_v._s_br___td___tr__r_n_tr__td_colspan_2__class_date___table_width100___class_header___tr__td_class_datetitle__Date__td__td_class_daten___s____s__td___tr___table___td___tr__r_n_tr__td_colspan_2__class_date___table_class_header___tr__td_class_datetitle__OS__td__td_class_daten___s__td___tr___table___td___tr__r_n
lea edx, [esp + 0x3d0]
push 0x1000
push edx
call esi
add esp, 0x1c
push 0
push 0
push 4
push 0
push 1
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x13d4]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401718
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 4]
push 0
lea ecx, [esp + 8]
push ecx
push edx
lea eax, [esp + 0x3c8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x13b8
ret 4