Function at 0x405830
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x120
mov eax, dword [ebp + 8]
lea ecx, [entry0]
mov byte [ebp - 0xdd], 0xbc
mov dword [ebp - 0x80], 0
mov edx, dword [ebp - 0x80]
mov word [ebp - 0x9a], 0x4387
mov dword [ebp - 0x7c], 1
mov esi, dword [ebp - 0x7c]
mov byte [ebp - 0x6d], 0x19
mov edi, dword [ebp - 0x44]
and edi, 0
mov dword [ebp - 0x44], edi
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0x90], 0x100000
mov ebx, dword [ebp - 0x90]
mov dword [ebp - 0xa4], 7
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x10], 0x100000
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x98]
and eax, 0
mov word [ebp - 0x76], 0x434
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x18], 0x1c
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x8c], 0x14
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0x8c]
mov byte [ebp - 0x11], 0x91
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xa0], eax
mov dword [0x40b264], ecx
mov byte [ebp - 0x81], 0xc7
mov ecx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0x100], edx
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x108], edi
call ecx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x9a]
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0xec]
add edx, dword [ebp - 0xa0]
mov si, word [ebp - 0x9a]
mov di, ax
and si, di
mov word [ebp - 0x9a], si
cmp ecx, edx
jge 0x405b2b
lea eax, [ebp - 0xdc]
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x11], 0x6f
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xf8]
mov dword [esp + 8], eax
call fcn.00401540
mov ecx, 0
mov edx, dword [ebp - 0x64]
sub ecx, dword [ebp - 0x68]
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp - 0x68]
and ecx, 0
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp - 0xfc]
cmp edx, ecx
mov dword [ebp - 0x10c], eax
jne 0x405ac1
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0xc4]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xf4]
mov dword [esp + 8], eax
call fcn.00401540
mov dl, 0x1e
mov dh, 0x14
mov ecx, dword [ebp - 0xa0]
sub dh, byte [ebp - 0xdd]
mov byte [ebp - 0xdd], dh
sub dl, byte [ebp - 0x81]
mov byte [ebp - 0x81], dl
mov esi, dword [ebp - 0xe8]
cmp ecx, esi
mov dword [ebp - 0x110], eax
jne 0x405a94
lea eax, [ebp - 0x81]
mov dword [ebp - 0xc8], 0
mov ecx, dword [ebp - 0x74]
sub eax, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_FreeConsole]
mov dword [ebp - 0x114], eax
call ecx
mov ecx, dword [ebp - 0x108]
mov dword [esp], ecx
mov dword [ebp - 0x118], eax
call fcn.00405480
lea eax, [ebp - 0x6d]
mov dx, word [ebp - 0x76]
mov si, ax
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x74], eax
and dx, si
mov word [ebp - 0x76], dx
mov ecx, dword [ebp - 0x104]
mov dword [ebp - 0x3c], ecx
jmp 0x405b38
lea eax, [ebp - 0xc8]
lea ecx, [ebp - 0x76]
mov edx, dword [ebp - 0x68]
and edx, 0
mov bl, byte [ebp - 0x81]
mov bh, cl
or bl, bh
mov byte [ebp - 0x81], bl
mov dword [ebp - 0x68], edx
mov ecx, dword [ebp - 0x74]
xor ecx, eax
mov dword [ebp - 0x74], ecx
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0xc8]
mov dx, 0
sub dx, word [ebp - 0x76]
mov esi, dword [ebp - 0x74]
sub ecx, esi
mov word [ebp - 0x76], dx
mov esi, dword [ebp - 0xc8]
mov dword [ebp - 0xc8], ecx
mov ecx, dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x120], esi
call ecx
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x120]
sub eax, ecx
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x64]
add eax, 1
mov cl, byte [ebp - 0x6d]
and cl, 0x75
mov byte [ebp - 0x6d], cl
mov dword [ebp - 0x64], eax
jmp 0x405962
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x11], 0x76
lea eax, [ebp - 0x68]
mov ecx, dword [ebp - 0x74]
add ecx, 0
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp - 0x3c]
mov dl, byte [ebp - 0x81]
mov dh, al
sub dh, dl
mov byte [ebp - 0x81], dh
mov eax, ecx
add esp, 0x120
pop esi
pop edi
pop ebx
pop ebp
ret