Function at 0x406140
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov dword [ebp - 0x70], 0x3a
mov dword [ebp - 0x24], 0x1e
mov dword [ebp - 0x18], 0x31
mov dword [ebp - 0x58], 0x11
mov dword [ebp - 0xc], 0x54
mov dword [ebp - 0x5c], 0x20
mov dword [ebp - 0xb0], 0x21
mov dword [ebp - 0x28], 0x4e
mov dword [ebp - 0xb4], 0x26
mov dword [ebp - 0x90], 0x11
mov dword [ebp - 4], 0x34
mov dword [ebp - 0x14], 0x3e
mov dword [ebp - 0xa8], 0x50
mov dword [ebp - 0x38], 0x54
mov dword [ebp - 8], 2
mov dword [ebp - 0x78], 0x1e
mov dword [ebp - 0x7c], 0x50
mov dword [ebp - 0xb8], 0x5c
mov dword [ebp - 0xbc], 0x64
mov dword [ebp - 0x30], 0x2c
mov dword [ebp - 0xa4], 0x29
mov dword [ebp - 0x60], 0x19
mov dword [ebp - 0x44], 0x20
mov dword [ebp - 0x2c], 0x22
mov dword [ebp - 0xac], 0x31
mov dword [ebp - 0x10], 0
jmp 0x406222
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x38]
sub ecx, 0x53
cmp dword [ebp - 0x10], ecx
jge 0x406291
mov edx, dword [ebp - 0x14]
sub edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x70]
or eax, ecx
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x74], 0
je 0x40628f
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 4]
jne 0x40628f
push 0xec62
push 0x82ff
push 0x4a06
push 0xdb5f
push 0xd179
push 0x5880
call dword [sym.imp.GDI32.dll_DeleteObject]
add esp, 0x18
mov ecx, dword [ebp + 0x24]
add ecx, 1
mov dword [ebp + 0x24], ecx
jmp 0x406219
mov dword [ebp - 0x1c], 0
jmp 0x4062a3
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x58]
sub eax, 0x10
cmp dword [ebp - 0x1c], eax
jge 0x4062fa
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x60]
jge 0x4062c8
mov dword [ebp - 0x3c], 1
jmp 0x4062cf
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x5c]
jge 0x4062e0
mov dword [ebp - 0x40], 1
jmp 0x4062e7
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x3c]
and ecx, dword [ebp - 0x40]
je 0x4062f8
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
jmp 0x40629a
mov dword [ebp - 0x20], 0
jmp 0x40630c
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x38]
sub ecx, 0x53
cmp dword [ebp - 0x20], ecx
jge 0x4064d3
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x7c]
cmp edx, dword [ebp - 0xc]
jge 0x40632f
mov dword [ebp - 0x4c], 1
jmp 0x406336
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x24]
sub edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x80]
cmp eax, dword [ebp - 0x84]
jge 0x406362
mov dword [ebp - 0x48], 1
jmp 0x406369
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x28]
sub ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x30]
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x44]
xor eax, dword [ebp - 0x48]
or eax, dword [ebp - 0x4c]
or eax, edx
je 0x4064ce
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0xc]
sub eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x88]
cmp ecx, dword [ebp - 0x8c]
jge 0x4063bb
mov dword [ebp - 0x50], 1
jmp 0x4063c2
mov dword [ebp - 0x50], 0
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x94], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x94]
cmp edx, dword [ebp - 0x98]
jge 0x4063f7
mov dword [ebp - 0x54], 1
jmp 0x4063fe
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x50]
or eax, dword [ebp - 0x54]
je 0x4064ce
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x58]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x9c]
cmp ecx, dword [ebp - 0xa0]
jge 0x40643f
mov dword [ebp - 0x64], 1
jmp 0x406446
mov dword [ebp - 0x64], 0
mov edx, dword [ebp - 0x5c]
cmp edx, dword [ebp + 0x28]
jge 0x406457
mov dword [ebp - 0x68], 1
jmp 0x40645e
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0xa4]
cmp eax, dword [ebp - 0x60]
jge 0x406472
mov dword [ebp - 0x6c], 1
jmp 0x406479
mov dword [ebp - 0x6c], 0
mov ecx, dword [ebp - 0x64]
and ecx, dword [ebp - 0x68]
and ecx, dword [ebp - 0x6c]
je 0x4064ce
mov edx, dword [ebp - 0xa8]
cmp edx, dword [ebp - 0x2c]
jne 0x4064ce
push 0xd7bb
push 0x51ae
push 0x546b
push 0x8a47
push 0x10955
push 0x12905
push 0xb6c5
push 0x79e
push 0x16f5c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
add esp, 0x24
mov eax, dword [ebp - 0x30]
sub eax, 1
mov dword [ebp - 0x30], eax
jmp 0x406303
mov dword [ebp - 0x34], 0
jmp 0x4064e5
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 0x20]
sub edx, 0x19
cmp dword [ebp - 0x34], edx
jge 0x4064fb
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x4064dc
mov ecx, dword [ebp + 0x1c]
sub ecx, 0x23
push ecx
mov edx, dword [ebp - 0xac]
sub edx, 0x1c
push edx
mov eax, dword [ebp - 0x38]
sub eax, 0x27
push eax
call fcn.0041b520
add esp, 0xc
mov esp, ebp
pop ebp
ret