Function at 0x42dcc2
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push esi
push edi
push 0x18c
push ebx
call fcn.00421ddc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
jne 0x42dced
xor al, al
jmp 0x42df34
xor esi, esi
push esi
lea eax, [ebp - 0x78]
push eax
push 0x84889911
call fcn.00413297
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [ebx + 8], eax
cmp eax, esi
je 0x42dce6
push 1
lea eax, [ebp - 0x78]
push eax
push 0x84889912
call fcn.00413297
lea eax, [ebp - 0x78]
push eax
push esi
push 1
mov edi, 0x43ed10
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 0xc], eax
cmp eax, esi
je 0x42dce6
push 1
lea eax, [ebp - 0x78]
push eax
push 0x18782822
call fcn.00413297
lea eax, [ebp - 0x78]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx + 0x14], eax
cmp eax, esi
je 0x42dce6
push 1
lea eax, [ebp - 0x78]
push eax
push 0x9878a222
call fcn.00413297
lea eax, [ebp - 0x78]
push eax
push 0x3d09128
push esi
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebx], eax
cmp eax, esi
je 0x42dce6
push esi
push esi
push esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
je 0x42dce6
mov dword [ebx + 0x10], eax
add eax, 0x128
push esi
mov dword [ebx + 0x18], eax
mov byte [ebp - 1], 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x42df31
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push eax
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x28], esi
call edi
push 0xa
push dword [ebp - 8]
mov dword [ebx + 0x2c], eax
call edi
mov ecx, dword [ebx + 0x2c]
push eax
push ecx
push dword [ebp - 8]
mov dword [ebx + 0x30], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
cmp eax, esi
je 0x42de04
push eax
push esi
push esi
lea eax, [ebx + 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call fcn.00412136
jmp 0x42de06
xor eax, eax
push dword [ebp - 8]
mov dword [ebx + 0x1c], eax
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebx + 0x1c], esi
je 0x42df31
mov ecx, dword [ebp - 0xc]
mov ax, word [ecx + 0xe]
shr ax, 3
mov byte [ebx + 0x38], al
movzx eax, al
imul eax, dword [ebx + 0x2c]
mov dword [ebx + 0x34], eax
test al, 3
je 0x42de3e
and eax, 0xfffffffc
add eax, 4
push ecx
mov dword [ebx + 0x34], eax
call fcn.00421ce7
cmp byte [ebp + 8], 1
mov byte [ebp - 1], 1
jne 0x42df31
lea edi, [ebp - 0x840]
mov byte [ebp - 1], 0
call fcn.004135aa
push 0x10
push 0x43f150
lea eax, [ebx + 0x3c]
push eax
call fcn.00421d23
lea esi, [ebp - 0x266]
call fcn.00422702
mov eax, dword [eax + 0x1e6]
mov dword [ebx + 0x4c], eax
mov ecx, 0x1ee
mov eax, esi
mov byte [eax], 0
inc eax
dec ecx
jne 0x42de8f
push 0x102
lea eax, [ebp - 0x3c8]
push eax
lea eax, [ebx + 0x50]
push eax
call fcn.00421d23
push 1
lea eax, [ebp - 0x78]
push eax
push 0x1898b122
call fcn.00413297
lea eax, [ebp - 0x78]
push eax
xor edi, edi
push edi
push 0x43ed10
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx + 0x160], eax
cmp eax, edi
je 0x42dce6
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
cmp esi, edi
je 0x42df31
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebx + 0x154], eax
cmp eax, edi
je 0x42df29
push 1
push 1
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebx + 0x15c], eax
cmp eax, edi
je 0x42df29
push eax
push dword [ebx + 0x154]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebx + 0x158], eax
cmp eax, edi
je 0x42df29
mov byte [ebp - 1], 1
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret 4