Function at 0x4017cf
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, 0x160
mov eax, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call eax
lea ecx, [esp + 0x130]
lea edx, [esp + 0x15c]
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 + 0xd8]
lea esi, [esp + 0x138]
lea edi, [esp + 0x100]
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 0x40190b
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 + 0x9c], eax
mov dword [esp + 0x98], ecx
call fcn.0059a710
mov eax, esp
lea ecx, [esp + 0x100]
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 + 0x94], eax
jmp 0x4018e8
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x90]
add eax, 1
cmp eax, 0x30e
mov dword [esp + 0x8c], eax
je 0x401a2d
jmp 0x40199f
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x134], 0x3aa
mov ecx, esp
lea edx, [esp + 0x134]
mov dword [ecx + 4], edx
mov dword [ecx], 0x47f6ad
mov ecx, dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov dword [esp + 0x88], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx], 0x518ee2
mov ecx, dword [sym.imp.GDI32.dll_StartPage]
mov dword [esp + 0x84], eax
call ecx
sub esp, 4
mov ecx, esp
lea edx, [esp + 0x150]
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 + 0x80], eax
call ecx
sub esp, 0xc
mov ecx, dword [sym.imp.USER32.dll_GetFocus]
mov dword [esp + 0x7c], eax
call ecx
xor ecx, ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x8c], ecx
mov eax, dword [esp + 0x8c]
mov ecx, 0xf0f0f0f1
mov dword [esp + 0x90], eax
mul ecx
shr edx, 4
imul eax, edx, 0x11
mov ecx, dword [esp + 0x90]
sub ecx, eax
mov eax, ecx
sub eax, 9
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], eax
je 0x401888
jmp 0x4019d8
mov eax, dword [esp + 0x74]
sub eax, 1
mov dword [esp + 0x6c], eax
jne 0x4018e8
jmp 0x4019eb
lea eax, [esp + 0xfe]
mov word [esp + 0xfe], 0x58
mov dword [esp + 0xd4], eax
mov eax, esp
lea ecx, [esp + 0xd4]
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 + 0x68], eax
jmp 0x401888
xor eax, eax
mov ecx, esp
mov dword [ecx], 0xb80
mov ecx, dword [sym.imp.USER32.dll_PostQuitMessage]
mov dword [esp + 0x64], eax
call ecx
sub esp, 4
xor eax, eax
mov ecx, dword [esp + 0x88]
sub ecx, 3
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ecx
je 0x401b29
jmp 0x401a62
mov eax, dword [esp + 0x88]
sub eax, 0x40
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ecx
jne 0x401bb0
jmp 0x401a80
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 + 0x50], eax
mov dword [esp + 0x4c], ecx
call fcn.0059a710
mov eax, esp
lea ecx, [esp + 0x138]
mov dword [eax], ecx
mov eax, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call eax
sub esp, 4
mov eax, esp
lea ecx, [esp + 0xc8]
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 + 0xf4], 0x12f
mov ecx, esp
lea edx, [esp + 0xf4]
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 + 0x48], eax
call ecx
sub esp, 0x14
mov dword [esp + 0x44], 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 + 0x40], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], edx
call fcn.0059a710
mov eax, esp
lea ecx, [esp + 0xd8]
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 + 0x34], eax
call ecx
sub esp, 4
mov dword [esp + 0x30], eax
jmp 0x401c7e
mov eax, dword [esp + 0x54]
mov word [esp + 0xc6], 5
add eax, 1
mov dword [esp + 0xf8], 0x13c
mov ecx, esp
lea edx, [esp + 0xf8]
mov dword [ecx + 0x10], edx
mov edx, dword [esp + 0xb8]
mov esi, dword [edx]
mov dword [ecx + 0xc], esi
lea esi, [esp + 0xc6]
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 + 0x2c], 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 + 0x28], 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 + 0x24], 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 + 0x20], eax
call ecx
sub esp, 8
mov ecx, dword [esp + 0x2c]
cmp ecx, 0xa
mov dword [esp + 0x1c], eax
mov dword [esp + 0x54], ecx
jne 0x401bb0
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 + 0x88]
add ecx, 1
cmp ecx, 0xa2
mov dword [esp + 0x18], eax
mov dword [esp + 0xa0], ecx
je 0x4018e1
jmp 0x40190b