Function at 0x401a72
Capabilities:
Allocate thread local storage
Clear file content
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x158
mov eax, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call eax
lea ecx, [esp + 0xc4]
lea edx, [esp + 0xc8]
mov esi, esp
mov dword [esi + 4], 0x6b2
mov dword [esi], 0xcb49f2
mov esi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xbc], edx
mov dword [esp + 0xb8], ecx
call esi
sub esp, 8
mov ecx, esp
mov dword [ecx + 8], 0x1f0
mov dword [ecx + 4], 0x1f0
mov dword [ecx], 0x520349
mov ecx, dword [sym.imp.USER32.dll_CheckMenuItem]
mov dword [esp + 0xb4], eax
call ecx
sub esp, 0xc
xor ecx, ecx
lea edx, [esp + 0x120]
lea esi, [esp + 0x140]
lea edi, [esp + 0xe0]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xac], edx
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ecx
jmp 0x401d18
mov eax, dword [esp + 0x9c]
add eax, 1
cmp eax, 0x30e
mov dword [esp + 0x98], eax
jne 0x401cc9
xor eax, eax
mov ecx, esp
mov dword [ecx], 0xb80
mov ecx, dword [sym.imp.USER32.dll_PostQuitMessage]
mov dword [esp + 0x94], eax
call ecx
sub esp, 4
xor eax, eax
mov ecx, dword [esp + 0x90]
sub ecx, 3
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], ecx
je 0x401ea7
jmp 0x401b87
mov eax, dword [esp + 0x90]
sub eax, 0x40
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], ecx
je 0x401dfe
jmp 0x401bf0
lea eax, [esp + 0xd4]
mov word [esp + 0xd4], 0x58
mov dword [esp + 0xd0], eax
mov eax, esp
lea ecx, [esp + 0xd0]
mov dword [eax + 8], ecx
mov dword [eax + 4], str.raR7Kdil0Vv
mov dword [eax], str.h__Uf9SOTIe
call sub.OLEAUT32.dll_VarBstrCmp
sub esp, 0xc
mov dword [esp + 0x7c], eax
jmp 0x401dab
mov eax, dword [esp + 0x80]
add eax, 1
mov word [esp + 0xd6], 5
mov dword [esp + 0xcc], 0x13c
mov ecx, esp
lea edx, [esp + 0xcc]
mov dword [ecx + 0x10], edx
mov edx, dword [esp + 0xb8]
mov esi, dword [edx]
mov dword [ecx + 0xc], esi
lea esi, [esp + 0xd6]
mov dword [ecx + 4], esi
mov dword [ecx + 8], 0x13c
mov dword [ecx], 0x473e7c
mov ecx, dword [sym.imp.KERNEL32.dll_ReadConsoleOutputAttribute]
mov dword [esp + 0x78], eax
call ecx
sub esp, 0x14
mov ecx, esp
mov dword [ecx + 4], 0x591
mov dword [ecx], 0x6c99ac
mov ecx, dword [sym.imp.KERNEL32.dll_PurgeComm]
mov dword [esp + 0x74], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx + 4], 0xa05
mov dword [ecx], 0x879936
mov ecx, dword [sym.imp.WININET.dll_UnlockUrlCacheEntryStream]
mov dword [esp + 0x70], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx + 4], 0xca7
mov dword [ecx], 0xca7
mov ecx, dword [sym.imp.USER32.dll_SetCursorPos]
mov dword [esp + 0x6c], eax
call ecx
sub esp, 8
mov ecx, dword [esp + 0x78]
cmp ecx, 0xa
mov dword [esp + 0x68], eax
mov dword [esp + 0x80], ecx
je 0x401f29
jmp 0x401bf0
mov eax, dword [esp + 0x98]
mov ecx, 0xf0f0f0f1
mov dword [esp + 0x9c], eax
mul ecx
shr edx, 4
imul eax, edx, 0x11
mov ecx, dword [esp + 0x9c]
sub ecx, eax
mov eax, ecx
sub eax, 1
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], eax
je 0x401bae
jmp 0x401d02
mov eax, dword [esp + 0x64]
sub eax, 9
mov dword [esp + 0x5c], eax
je 0x401dab
jmp 0x401b2b
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x11c], 0x3aa
mov ecx, esp
lea edx, [esp + 0x11c]
mov dword [ecx + 4], edx
mov dword [ecx], 0x47f6ad
mov ecx, dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov dword [esp + 0x90], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx], 0x518ee2
mov ecx, dword [sym.imp.GDI32.dll_StartPage]
mov dword [esp + 0x58], eax
call ecx
sub esp, 4
mov ecx, esp
lea edx, [esp + 0xd8]
mov dword [ecx + 8], edx
mov dword [ecx + 4], 0x3ae
mov dword [ecx], 0xb0774a
mov ecx, dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
mov dword [esp + 0x54], eax
call ecx
sub esp, 0xc
mov ecx, dword [sym.imp.USER32.dll_GetFocus]
mov dword [esp + 0x50], eax
call ecx
xor ecx, ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x98], ecx
jmp 0x401cc9
xor eax, eax
mov ecx, 0x2c
mov edx, dword [esp + 0xa4]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x2c
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
call fcn.0059a9a0
mov eax, esp
lea ecx, [esp + 0xe0]
mov dword [eax + 4], ecx
mov dword [eax], 0xa512b3
mov eax, dword [sym.imp.USER32.dll_GetTitleBarInfo]
call eax
sub esp, 8
mov dword [esp + 0x40], eax
jmp 0x401b2b
xor eax, eax
mov ecx, 0x18
mov edx, dword [esp + 0xa8]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x18
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
call fcn.0059a9a0
mov eax, esp
lea ecx, [esp + 0x140]
mov dword [eax], ecx
mov eax, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call eax
sub esp, 4
mov eax, esp
lea ecx, [esp + 0x110]
mov dword [eax + 4], ecx
mov dword [eax], 0x97e373
mov eax, dword [sym.imp.GDI32.dll_GetAspectRatioFilterEx]
call eax
sub esp, 8
mov dword [esp + 0x10c], 0x12f
mov ecx, esp
lea edx, [esp + 0x10c]
mov dword [ecx + 0x10], edx
mov edx, dword [esp + 0xbc]
mov esi, dword [edx]
mov dword [ecx + 0xc], esi
mov dword [ecx + 8], 0x1d2
mov dword [ecx + 4], 0x58
mov dword [ecx], 0x96745f
mov ecx, dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
mov dword [esp + 0x34], eax
call ecx
sub esp, 0x14
mov dword [esp + 0x30], eax
mov eax, esp
mov dword [eax], 0xd6b7fe
mov eax, dword [sym.imp.KERNEL32.dll_SetEndOfFile]
call eax
sub esp, 4
xor ecx, ecx
mov edx, 0x1c
mov esi, dword [esp + 0xac]
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x1c
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
call fcn.0059a9a0
mov eax, esp
lea ecx, [esp + 0x120]
mov dword [eax + 8], ecx
mov dword [eax + 4], 0x6f2
mov dword [eax], 0xf212c3
mov eax, dword [sym.imp.USER32.dll_GetScrollInfo]
call eax
sub esp, 0xc
mov ecx, esp
mov dword [ecx], 0x582
mov ecx, dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
mov dword [esp + 0x20], eax
call ecx
sub esp, 4
mov dword [esp + 0x1c], eax
mov eax, esp
mov dword [eax + 4], 0x905
mov dword [eax], str.q_0z_1lMduS
mov eax, dword [sym.imp.WININET.dll_UnlockUrlCacheEntryFile]
call eax
sub esp, 8
mov ecx, dword [esp + 0x90]
add ecx, 1
cmp ecx, 0xa2
mov dword [esp + 0x18], eax
mov dword [esp + 0xa0], ecx
jne 0x401d18
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret