Function at 0x419568
Capabilities:
Allocate thread local storage
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c4
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x6c0], eax
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [0x6a1b84], ebx
jne 0x419596
call fcn.0040b766
cmp dword [0x6a2e7c], ebx
jne 0x4195a9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x6a2e7c], eax
cmp dword [0x6bcc20], ebx
jne 0x4195b9
xor eax, eax
inc eax
jmp 0x419881
call fcn.00419896
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x6bcd20], eax
mov eax, dword [ebp + 0xc]
mov dword [0x6a2dc4], eax
mov eax, dword [ebp + 0x10]
mov dword [0x6a2dcc], eax
call fcn.00419e79
mov esi, 0x62e510
cmp dword [0x6bcd24], ebx
jne 0x4195fe
push 0x6bcd24
push esi
call fcn.0041a7c3
cmp eax, ebx
jl 0x419881
cmp dword [0x6bcd28], ebx
jne 0x419619
push 0x6bcd28
push esi
call fcn.0042427a
cmp eax, ebx
jl 0x419881
call fcn.004336cf
call fcn.00433bbe
call fcn.00433e90
call fcn.004344f5
call fcn.004345ba
call fcn.004348b7
call fcn.0043499d
call fcn.004350f9
call fcn.00435155
call fcn.00435c2b
call fcn.00435db2
call fcn.00435fa9
call fcn.00436030
call fcn.004360ff
call fcn.00436253
call fcn.00436544
call fcn.00436653
call fcn.0043679b
call fcn.00436826
call fcn.00436a2e
call fcn.004379c5
call fcn.00437b32
call fcn.00437d91
call fcn.00437e36
call fcn.00437f8f
call fcn.004380fe
call fcn.0043855d
call fcn.00438d6a
call fcn.00438f8a
call fcn.0043917a
call fcn.004395f1
call fcn.004397fc
call fcn.00439a02
call fcn.00439ae3
call fcn.00439b92
call fcn.00439db2
call fcn.00439e52
call fcn.0043a0a4
call fcn.0043a758
call fcn.0043af2e
call fcn.0043aff5
call fcn.0043b27a
call fcn.0043b3fd
call fcn.00440b51
call fcn.00440c5f
call fcn.00440cff
call fcn.00440dd2
call fcn.00440ed5
call fcn.00440f5f
call fcn.004410a6
call fcn.00441269
call fcn.0044148f
call fcn.00441642
call fcn.004416c9
call fcn.004417d6
call fcn.00441a14
call fcn.00441b4e
mov eax, 0x6bbe80
call fcn.00441c1b
push ecx
mov eax, esp
mov dword [eax], str.NEW_SKIN
push ecx
mov eax, esp
lea esi, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [eax], str.SKIN
call fcn.0044208d
push dword [esp + 0x14]
push dword [0x6bb728]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [esp + 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [0x6bcd28]
mov edx, dword [ecx]
push esi
push eax
push 0x62e544
push ecx
call dword [edx + 0x34]
call fcn.00459d9a
test al, al
je 0x4197a1
call dword [sym.imp.UxTheme.dll_BufferedPaintInit]
push dword [ebp + 8]
mov esi, 0x6bb848
push edi
push esi
call fcn.00459e5f
call fcn.0045a5d5
cmp dword [0x6a2dc4], ebx
je 0x41986f
push ebx
push str.360se6_Frame
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4197d7
mov dword [0x6a2dc4], ebx
cmp dword [0x6a2dc4], ebx
je 0x41986f
push 0x46c
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00402394
mov eax, dword [0x6bbaf4]
add esp, 0xc
neg eax
sbb eax, eax
and eax, 2
push esi
lea ecx, [esp + 0x1c]
mov word [esp + 0x48], 1
mov byte [esp + 0x58], bl
mov dword [esp + 0x54], 0x7b
mov dword [esp + 0x60], 0x258
mov dword [esp + 0x64], 0x140
mov dword [esp + 0x5c], eax
mov byte [esp + 0x69], 1
mov dword [esp + 0x6c], 0x6b
call fcn.0045ec67
push 0x238
mov edi, eax
lea eax, [esp + 0x490]
push ebx
push eax
mov dword [esp + 0x494], ebx
call fcn.00402394
add esp, 0xc
lea eax, [esp + 0x488]
push eax
push edi
mov ecx, esi
call fcn.0048d7bc
cmp dword [esp + 0x10], ebx
je 0x41987f
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
mov ecx, dword [esp + 0x6cc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret