Function at 0x40dd80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485e4b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x49c33c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
push str.table
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], ebx
call fcn.0042dd40
push 0
push str.query
mov ecx, ebx
mov dword [ebp - 0x3c], eax
call fcn.0042dd40
push dword [ebp - 0x3c]
mov edi, eax
mov ecx, esi
mov dword [ebp - 0x38], edi
call fcn.00426b90
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x40de4b
mov edi, dword [ebx + 0x1c]
mov ecx, ebx
mov esi, dword [ebx + 0x18]
push str.Content_type:_text_html_r_n_r_n__DOCTYPE_HTML_PUBLIC_____W3C__DTD_HTML_3.2__EN___HTML__HEAD__TITLE_BUGDB_error__TITLE___HEAD__BODY_BGCOLOR_c0c0c0___CENTER__FONT_SIZE2_COLOR_FF0000__
mov dword [ebx + 0x28], eax
call fcn.0042d8a0
push str.No_such_table
mov ecx, eax
call fcn.0042d8a0
push str.__FONT___CENTER__P__FORM_METHODPOST_ACTION_
mov ecx, eax
call fcn.0042d8a0
push esi
mov ecx, eax
call fcn.0042d8a0
push str.___INPUT_TYPEHIDDEN_NAME_socket__VALUE_
mov ecx, eax
call fcn.0042d8a0
push edi
mov ecx, eax
call fcn.0042d8a0
push str.___INPUT_TYPEhidden_NAME_page__VALUEdefaultPage__CENTER__INPUT_TYPEsubmit_VALUE_Ok____CENTER___FORM___BODY___HTML_
mov ecx, eax
call fcn.0042d8a0
jmp 0x40dfe1
test edi, edi
jne 0x40de60
mov edx, str.Condition_was_not_specified
mov ecx, ebx
call fcn.0040d240
jmp 0x40dfe1
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40de65
sub ecx, edx
je 0x40df41
cmp dword [esi + 0x33c], 0
je 0x40debd
mov eax, dword [esi + 0x340]
dec eax
and eax, 0xf
mov ecx, dword [esi + eax*4 + 0x2fc]
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40deb0
test dl, dl
je 0x40deac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40deb0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40de90
xor eax, eax
jmp 0x40deb5
sbb eax, eax
or eax, 1
test eax, eax
je 0x40df41
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dec2
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.0042f8b9
mov edx, edi
mov dword [ebp - 0x40], eax
mov edi, eax
add esp, 4
sub edi, edx
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [edi + edx - 1], cl
test cl, cl
jne 0x40dee0
mov ecx, dword [esi + 0x340]
mov eax, dword [esi + 0x33c]
cmp ecx, eax
jne 0x40df06
inc eax
mov dword [esi + 0x33c], eax
jmp 0x40df1b
push dword [esi + ecx*4 + 0x2fc]
call fcn.0042f876
mov ecx, dword [esi + 0x340]
add esp, 4
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp - 0x38]
mov dword [esi + ecx*4 + 0x2fc], eax
inc dword [esi + 0x340]
cmp dword [esi + 0x340], 0x10
jne 0x40df41
mov dword [esi + 0x340], 0
push 0
push 0
push dword [ebp - 0x44]
lea ecx, [ebp - 0xa4]
call fcn.00401720
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x1c0]
push dword [esi + 0x38]
mov dword [esi + 0x250], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [esi + 0x20c]
mov dword [ebp - 0x38], eax
push edi
mov byte [ebp - 4], 1
mov word [eax + 0xb4], 0x100
call fcn.00406170
lea ecx, [ebp - 0xa4]
call fcn.0041d6d0
lea edi, [esi + 0x20c]
mov ecx, esi
push edi
lea eax, [ebp - 0xa4]
push eax
call fcn.00429ed0
cmp dword [edi], 0
jne 0x40dfff
mov ecx, 0x49d244
call fcn.0041adb0
mov eax, dword [ebp - 0x38]
mov edx, str.query_syntax_error
push dword [ebp - 0x3c]
mov ecx, ebx
mov byte [eax + 0xb5], 0
call fcn.0040d1c0
add esp, 4
lea ecx, [ebp - 0xa4]
call fcn.0041cc20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042f865
mov esp, ebp
pop ebp
ret 4
push str.Content_type:_text_html_r_n_r_n__DOCTYPE_HTML_PUBLIC_____W3C__DTD_HTML_3.2__EN___HTML__HEAD__TITLE_Selection__TITLE___HEAD__BODY_BGCOLOR_c0c0c0___H2_Selection_from_table
mov ecx, ebx
mov dword [ebx + 0x28], 0
call fcn.0042d8a0
push dword [ebp - 0x3c]
mov ecx, eax
call fcn.0042d8a0
push str.__H2__TABLE_BORDER__TR__TH_OID__TH_
mov ecx, eax
call fcn.0042d8a0
mov eax, dword [ebp - 0x44]
mov edi, dword [eax + 0x10]
nop
push str._TH_
mov ecx, ebx
mov dword [ebx + 0x28], 0
call fcn.0042d8a0
push dword [edi + 0x1c]
mov ecx, eax
call fcn.0042d8a0
push str.__TH_
mov ecx, eax
call fcn.0042d8a0
mov eax, dword [ebp - 0x44]
mov edi, dword [edi]
cmp edi, dword [eax + 0x10]
jne 0x40e030
push str.__TR_
mov ecx, ebx
mov dword [ebx + 0x28], 0
call fcn.0042d8a0
lea ecx, [ebp - 0xa4]
xor edi, edi
call fcn.0041d190
test al, al
je 0x40e156
nop dword [eax + eax]
push str._TR__TD__
mov ecx, ebx
mov dword [ebx + 0x28], 0
inc edi
call fcn.0042d8a0
push dword [ebp - 0x6c]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x34]
push 0x49525c
push eax
call fcn.00406100
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x34]
add esp, 0xc
push eax
call fcn.0042d8a0
push str.__TD_
mov ecx, eax
call fcn.0042d8a0
mov eax, dword [ebp - 0x98]
mov ecx, dword [esi + 0x44]
push 0
push dword [eax + 0x10]
mov eax, dword [ebp - 0x6c]
mov edx, dword [ecx + eax*4]
mov ecx, ebx
add edx, dword [esi + 0x3c]
call fcn.0040d930
add esp, 8
mov dword [ebx + 0x28], 0
mov ecx, ebx
push str.__TR_
call fcn.0042d8a0
lea ecx, [ebp - 0xa4]
call fcn.0041d210
test al, al
jne 0x40e090
push str.__TABLE_
mov ecx, ebx
mov dword [ebx + 0x28], 0
call fcn.0042d8a0
cmp edi, 1
jle 0x40e165
push 0x497424
mov ecx, ebx
mov dword [ebx + 0x28], 0
call fcn.0042d8a0
push edi
mov ecx, eax
call fcn.004063a0
push str._records_selected
mov ecx, eax
jmp 0x40e160
mov dword [ebx + 0x28], edi
mov ecx, ebx
push str.__TABLE__P_No_records_selected
call fcn.0042d8a0
mov eax, dword [ebp - 0x38]
mov ecx, esi
mov dword [ebp - 4], 0
mov byte [eax + 0xb5], 0
call fcn.00422c80
mov edi, dword [ebx + 0x1c]
mov ecx, ebx
mov esi, dword [ebx + 0x18]
push str._P__FORM_METHODPOST_ACTION_
mov dword [ebx + 0x28], 0
call fcn.0042d8a0
push esi
mov ecx, eax
call fcn.0042d8a0
push str.___INPUT_TYPEHIDDEN_NAMEsocket_VALUE_
mov ecx, eax
call fcn.0042d8a0
push edi
mov ecx, eax
call fcn.0042d8a0
push str.___INPUT_TYPEhidden_NAMEtable_VALUE_
mov ecx, eax
call fcn.0042d8a0
push dword [ebp - 0x3c]
mov ecx, eax
call fcn.0042d8a0
push str.___INPUT_TYPEhidden_NAMEpage_VALUEqueryPage__INPUT_TYPEsubmit_VALUE_New_query____FORM___BODY___HTML_
mov ecx, eax
call fcn.0042d8a0
jmp 0x40dfd6