Function at 0x10001251
Capabilities:
Allocate thread local storage
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x128
mov eax, esp
mov dword [eax + 8], 0x861
mov dword [eax + 4], 0x861
mov dword [eax], 0x48581b
mov eax, dword [sym.imp.USER32.dll_EnableScrollBar]
call eax
sub esp, 0xc
mov ecx, esp
mov dword [ecx], 0xe6f8ff
mov ecx, dword [sym.imp.GDI32.dll_GetSystemPaletteUse]
mov dword [esp + 0x9c], eax
call ecx
sub esp, 4
xor ecx, ecx
lea edx, [esp + 0xd8]
lea esi, [esp + 0xa0]
mov dword [esp + 0x98], eax
mov dword [esp + 0x94], edx
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], ecx
jmp 0x1000135f
mov eax, dword [esp + 0x88]
mov ecx, esp
mov dword [ecx + 4], 0x110
mov dword [ecx], 0xa0a57a
mov ecx, dword [sym.imp.GDI32.dll_ResizePalette]
mov dword [esp + 0x84], eax
call ecx
sub esp, 8
mov ecx, dword [esp + 0x84]
add ecx, 1
mov edx, esp
mov dword [edx + 0x14], 0x542
mov dword [edx + 0x10], str.S8_p
mov dword [edx + 0xc], 0x542
mov dword [edx + 8], str.yG0_
mov dword [edx + 4], 0x143
mov dword [edx], 0xf26
mov edx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], ecx
call edx
sub esp, 0x18
mov ecx, dword [esp + 0x7c]
cmp ecx, 0xa
mov dword [esp + 0x78], eax
mov dword [esp + 0x88], ecx
je 0x1000159a
jmp 0x100012c9
mov eax, dword [esp + 0x8c]
mov ecx, esp
mov dword [ecx + 0xc], 0x552
mov dword [ecx + 8], 0xcc3574
mov dword [ecx + 4], 0x330247
mov dword [ecx], 0x330247
mov ecx, dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esp + 0x74], eax
call ecx
sub esp, 0x10
mov ecx, esp
lea edx, [esp + 0x100]
mov dword [ecx], edx
mov dword [ecx + 8], 0xff2
mov dword [ecx + 4], 0xff2
mov ecx, dword [sym.imp.USER32.dll_InflateRect]
mov dword [esp + 0x70], eax
call ecx
sub esp, 0xc
xor ecx, ecx
mov edx, 0x34
mov esi, dword [esp + 0x90]
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x34
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], edx
call fcn.10192d90
mov eax, esp
lea ecx, [esp + 0xa0]
mov dword [eax + 4], ecx
mov dword [eax + 8], 0xbee
mov dword [eax], 0xebe459
mov eax, dword [sym.imp.KERNEL32.dll_SetCommConfig]
call eax
sub esp, 0xc
mov ecx, dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esp + 0x60], eax
call ecx
xor ecx, ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ecx
jmp 0x1000143b
mov eax, dword [esp + 0x54]
add eax, 1
cmp eax, 0x346
mov dword [esp + 0x58], eax
je 0x1000146e
mov eax, dword [esp + 0x58]
mov ecx, eax
or ecx, 4
and ecx, 0xf
sub ecx, 7
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ecx
je 0x10001456
jmp 0x10001427
mov eax, esp
mov dword [eax], 0xea1314
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessId]
call eax
sub esp, 4
mov dword [esp + 0x4c], eax
jmp 0x10001427
xor eax, eax
mov ecx, esp
mov dword [ecx + 4], 0x3a0
mov dword [ecx], 0x56233d
mov ecx, dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [esp + 0x48], eax
call ecx
sub esp, 8
xor ecx, ecx
mov edx, dword [esp + 0x74]
sub edx, 6
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], edx
je 0x1000153a
jmp 0x100014ab
mov eax, dword [esp + 0x74]
sub eax, 0x5e
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x38], eax
mov dword [esp + 0x88], ecx
jne 0x100012c9
jmp 0x100014c9
mov word [esp + 0x122], 0x39
mov dword [esp + 0x114], 0x5b
mov eax, esp
lea ecx, [esp + 0x118]
mov dword [eax + 0x18], ecx
lea ecx, [esp + 0x114]
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
lea ecx, [esp + 0x122]
mov dword [eax + 4], ecx
mov dword [eax + 0xc], 0x5b
mov dword [eax + 8], 0x5b
mov dword [eax], 0x758af
mov eax, dword [sym.imp.GDI32.dll_GetTextExtentExPointI]
call eax
sub esp, 0x1c
mov ecx, esp
mov dword [ecx], 0x600321
mov ecx, dword [sym.imp.KERNEL32.dll_HeapUnlock]
mov dword [esp + 0x34], eax
call ecx
sub esp, 4
mov dword [esp + 0x30], eax
mov eax, dword [sym.imp.ole32.dll_CoFreeUnusedLibraries]
call eax
xor eax, eax
mov ecx, 0x24
mov edx, dword [esp + 0x94]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x24
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
call fcn.10192d90
mov eax, esp
lea ecx, [esp + 0xd8]
mov dword [eax], ecx
mov eax, dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
call eax
sub esp, 4
mov eax, esp
mov dword [eax], 0x58
mov eax, dword [sym.imp.SHLWAPI.dll_PathGetCharTypeA]
call eax
sub esp, 4
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x74]
add eax, 1
mov ecx, esp
mov dword [ecx], 0x113008
mov ecx, dword [sym.imp.GDI32.dll_GetROP2]
mov dword [esp + 0x20], eax
call ecx
sub esp, 4
mov ecx, dword [esp + 0x20]
cmp ecx, 0x9d
mov dword [esp + 0x1c], eax
mov dword [esp + 0x8c], ecx
jne 0x1000135f
lea esp, [ebp - 4]
pop esi
pop ebp
ret