Function at 0x4010b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x404004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp dword [ebp + 8], 2
mov edi, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], 0xfeff
mov dword [ebp - 0x10], 0
jge 0x401104
push str.Usage:_tblgen_outputfile_.html_
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__putws]
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004013ac
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401140
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
mov esi, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004013ac
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 8]
push 0
push eax
push 2
lea eax, [ebp - 0xc]
push eax
push ebx
call esi
push 0
lea eax, [ebp - 8]
push eax
push 0xae
push 0x403138
push ebx
call esi
push 0x4000
push 8
push edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x401184
lea esi, [eax + 0xe]
jmp 0x401384
push 0
lea eax, [ebp - 8]
push eax
push 0xc
push str._TR__r_n
push ebx
call esi
push str.first
push str.Enter_the__s_table_heading__QUIT_to_stop_:
call fcn.00401010
add esp, 8
mov ecx, edi
call fcn.00401040
push 4
push str.QUIT
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x401271
nop word [eax + eax]
mov esi, 0x2000
mov eax, edi
cmp word [eax], 0
je 0x4011e5
add eax, 2
sub esi, 1
jne 0x4011d7
test esi, esi
je 0x4013a5
mov eax, 0x2000
sub eax, esi
add eax, eax
neg esi
push 0
sbb esi, esi
and esi, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x10
push str._t_TH__B_
push ebx
call eax
push 0
lea eax, [ebp - 8]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push ebx
call esi
push 0
lea eax, [ebp - 8]
push eax
push 0x16
push str.__B___TH__r_n
push ebx
call esi
add dword [ebp - 0x10], 1
mov ecx, str.first
mov eax, str.next
cmove eax, ecx
push eax
push str.Enter_the__s_table_heading__QUIT_to_stop_:
call fcn.00401010
add esp, 8
mov ecx, edi
call fcn.00401040
push 4
push str.QUIT
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4011d0
push 0
lea eax, [ebp - 8]
push eax
push 0xe
push str.__TR__r_n
push ebx
call esi
push 0
lea eax, [ebp - 8]
push eax
push 0xc
push str._TR__r_n
push ebx
call esi
xor eax, eax
cmp dword [ebp - 0x10], eax
jbe 0x401327
nop dword [eax]
inc eax
push eax
push str.Enter_data_for_column__zu:
mov dword [ebp - 0x14], eax
call fcn.00401010
add esp, 8
mov ecx, edi
call fcn.00401040
mov esi, 0x2000
mov eax, edi
cmp word [eax], 0
je 0x4012ce
add eax, 2
sub esi, 1
jne 0x4012c0
test esi, esi
je 0x4013a5
mov eax, 0x2000
sub eax, esi
add eax, eax
neg esi
push 0
sbb esi, esi
and esi, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x14
push str._t_TD__PRE_
push ebx
call eax
push 0
lea eax, [ebp - 8]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push ebx
call esi
push 0
lea eax, [ebp - 8]
push eax
push 0x1a
push str.__PRE___TD__r_n
push ebx
call esi
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jb 0x4012a0
push 0
lea eax, [ebp - 8]
push eax
push 0xe
push str.__TR__r_n
push ebx
call esi
push str.Add_new_row__Y_N__
call fcn.00401010
add esp, 4
mov ecx, edi
call fcn.00401040
movzx eax, word [edi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towupper]
mov ecx, 0x59
add esp, 4
cmp cx, ax
je 0x401281
push 0
lea eax, [ebp - 8]
push eax
push 0x38
push str.__TABLE__r_n__BODY__r_n__HTML__r_n
push ebx
call esi
xor esi, esi
push edi
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004013ac
mov esp, ebp
pop ebp
ret
mov esi, 0xd
jmp 0x401378