Function at 0x42c130
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6d18
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4db06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x1270]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
mov dword [ebp - 0x38], esi
mov byte [ebp - 0x34], 1
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
nop dword [eax]
mov dword [ebp - 0x14], 0
nop word [eax + eax]
mov ecx, dword [esi + 0x125c]
test ecx, ecx
je 0x42c1b6
cmp dword [ecx + 0x2c], 0
lea ebx, [ecx + 0x10]
mov dword [ebp - 0x14], ebx
jne 0x42c232
mov eax, dword [esi + 0x100c]
test eax, eax
jne 0x42c23a
xor edi, edi
xorps xmm0, xmm0
movlpd qword [ebp - 0x30], xmm0
cmp dword [esi + 0x1004], edi
je 0x42c1fd
mov edi, dword [esi + 0x10]
call dword [sym.imp.KERNEL30.dll_GetLastError]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL30.dll_TlsGetValue]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL30.dll_SetLastError]
test edi, edi
je 0x42c1fd
call fcn.00461690
mov ebx, eax
mov dword [ebp - 0x10], edx
jmp 0x42c206
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
push 0x64
lea ecx, [esi + 0x126c]
call fcn.0045ea50
test edi, edi
je 0x42c1a0
mov eax, dword [edi]
or eax, dword [edi + 4]
je 0x42c1a0
call fcn.00461690
sub eax, ebx
sbb edx, dword [ebp - 0x10]
add dword [edi], eax
adc dword [edi + 4], edx
jmp 0x42c1a0
mov eax, dword [esi + 0x100c]
jmp 0x42c23d
mov ebx, dword [ebp - 0x14]
test eax, eax
jne 0x42c693
mov eax, dword [ebx + 0x1c]
cmp eax, 6
je 0x42c661
cmp eax, 1
je 0x42c25f
cmp eax, 2
jne 0x42c2fa
cmp dword [ebx + 0x24], 0
je 0x42c2c6
lea eax, [esi + 0x1270]
push eax
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebx]
jne 0x42c289
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebx + 4]
jne 0x42c289
lea edi, [esi + 0x10a4]
jmp 0x42c296
lea edi, [esi + 0x10a4]
mov ecx, edi
call fcn.00465520
push dword [ebx + 0x24]
mov ecx, edi
push dword [ebx + 0x68]
call fcn.00465540
cmp dword [ebx + 0x1c], 2
jne 0x42c2b7
lea eax, [esi + 0x10d4]
mov ecx, edi
push eax
call fcn.00465630
lea eax, [esi + 0x1270]
push eax
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
jmp 0x42c2ef
mov eax, dword [ebx + 8]
or eax, dword [ebx + 0xc]
jne 0x42c2ef
lea eax, [ebx + 0x28]
push eax
lea ecx, [esi + 0x10a4]
call fcn.004657c0
lea eax, [esi + 0x10d4]
push eax
lea ecx, [esi + 0x10a4]
call fcn.004657c0
mov eax, dword [ebx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x24], eax
mov edx, dword [ebx + 0x1c]
cmp edx, 2
je 0x42c310
cmp edx, 4
je 0x42c31a
cmp edx, 3
jne 0x42c3bd
cmp edx, 4
je 0x42c31a
cmp edx, 3
jne 0x42c388
mov ecx, dword [esi + 0x10bc]
cmp ecx, 5
jne 0x42c32a
lea eax, [ecx + 0xb]
jmp 0x42c373
cmp ecx, 1
jne 0x42c334
lea eax, [ecx + 0x13]
jmp 0x42c373
cmp ecx, 3
jne 0x42c33e
lea eax, [ecx + 0x1d]
jmp 0x42c373
cmp ecx, 6
jne 0x42c348
lea eax, [ecx + 0x3a]
jmp 0x42c373
cmp ecx, 4
jne 0x42c352
lea eax, [ecx + 4]
jmp 0x42c373
cmp ecx, 7
jne 0x42c35c
lea eax, [ecx + 0x19]
jmp 0x42c373
cmp ecx, 8
jne 0x42c366
lea eax, [ecx + 0x38]
jmp 0x42c373
xor eax, eax
cmp ecx, 2
mov ecx, 0x10
cmove eax, ecx
push eax
lea eax, [esi + 0x10d4]
push 0
push eax
call fcn.0048b570
mov edx, dword [ebx + 0x1c]
add esp, 0xc
mov ecx, esi
call fcn.00412f20
test al, al
je 0x42c3b4
lea edi, [esi + 0x1270]
push edi
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
push ebx
mov ecx, esi
call fcn.0042c790
push edi
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
mov edx, dword [ebx + 0x1c]
jmp 0x42c3bd
cmp edx, 2
je 0x42c3f8
or dword [ebx + 0x20], 2
cmp edx, 2
je 0x42c3f8
cmp edx, 4
jne 0x42c4e8
test dword [esi + 0x6a8], 0x10000
je 0x42c3eb
test dword [esi + 0x8dc], 0x200
je 0x42c3eb
push ebx
mov ecx, esi
call fcn.00418480
push ebx
mov ecx, esi
call fcn.0042c940
jmp 0x42c4e8
mov eax, dword [esi + 0x10bc]
cmp eax, 5
jne 0x42c408
lea ecx, [eax + 0xb]
jmp 0x42c451
cmp eax, 1
jne 0x42c412
lea ecx, [eax + 0x13]
jmp 0x42c451
cmp eax, 3
jne 0x42c41c
lea ecx, [eax + 0x1d]
jmp 0x42c451
cmp eax, 6
jne 0x42c426
lea ecx, [eax + 0x3a]
jmp 0x42c451
cmp eax, 4
jne 0x42c430
lea ecx, [eax + 4]
jmp 0x42c451
cmp eax, 7
jne 0x42c43a
lea ecx, [eax + 0x19]
jmp 0x42c451
cmp eax, 8
jne 0x42c444
lea ecx, [eax + 0x38]
jmp 0x42c451
xor ecx, ecx
cmp eax, 2
mov eax, 0x10
cmove ecx, eax
lea edi, [esi + 0x10d4]
lea edx, [ebx + 0x28]
sub ecx, 4
jb 0x42c471
nop
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x42c476
add edx, 4
add edi, 4
sub ecx, 4
jae 0x42c460
cmp ecx, 0xfffffffc
je 0x42c4af
mov al, byte [edx]
cmp al, byte [edi]
jne 0x42c4a3
cmp ecx, 0xfffffffd
je 0x42c4af
mov al, byte [edx + 1]
cmp al, byte [edi + 1]
jne 0x42c4a3
cmp ecx, 0xfffffffe
je 0x42c4af
mov al, byte [edx + 2]
cmp al, byte [edi + 2]
jne 0x42c4a3
cmp ecx, 0xffffffff
je 0x42c4af
mov al, byte [edx + 3]
cmp al, byte [edi + 3]
je 0x42c4af
mov dword [ebx + 0x1c], 4
jmp 0x42c3cb
test dword [esi + 0x6a8], 0x10000
je 0x42c4e8
test dword [esi + 0x8dc], 0x200
je 0x42c4e8
test dword [ebx + 0x18], 0x400
je 0x42c4e0
mov eax, dword [esi + 0x6a0]
and eax, 0x4000
or eax, 0
je 0x42c4e8
push ebx
mov ecx, esi
call fcn.00418480
cmp dword [ebx + 0x1c], 2
jne 0x42c5ae
mov ecx, dword [ebx + 0x18]
test ecx, 0x400
je 0x42c512
mov eax, dword [esi + 0x6a0]
and eax, 0x4000
or eax, 0
jne 0x42c512
lea edi, [eax + 8]
jmp 0x42c526
test ecx, ecx
jne 0x42c521
mov eax, dword [ebx + 8]
lea edi, [ecx + 4]
or eax, dword [ebx + 0xc]
je 0x42c526
mov edi, 1
test dword [esi + 0x6a8], 0x800000
je 0x42c54f
cmp edi, 4
je 0x42c54f
cmp edi, 8
je 0x42c54f
push ebx
mov ecx, esi
call fcn.0042c6c0
test eax, eax
jne 0x42c54f
mov dword [ebx + 0x1c], 4
cmp dword [ebx + 0x1c], 2
jne 0x42c5ae
cmp dword [esi + 0x864], 0
je 0x42c584
lea eax, [ebx + 0x28]
push eax
push dword [ebx + 0xc]
mov eax, dword [esi + 0x85c]
push dword [ebx + 8]
add eax, 0x38
push dword [ebx + 0x14]
push dword [ebx + 0x10]
lea eax, [ebx + eax*2]
push ecx
push edi
push eax
mov ecx, esi
call fcn.00417da0
cmp dword [esi + 0x694], 5
jne 0x42c59b
push 2
push dword [ebx + 4]
mov ecx, esi
push dword [ebx]
call fcn.0041ad10
cmp edi, 8
je 0x42c5ae
mov eax, dword [esi + 0xb60]
add dword [eax + 0x48], 1
adc dword [eax + 0x4c], 0
mov eax, dword [ebx + 0x1c]
cmp eax, 4
je 0x42c5bb
cmp eax, 3
jne 0x42c624
cmp dword [esi + 0x694], 5
jne 0x42c5d5
push 4
push dword [ebx + 4]
mov ecx, esi
push dword [ebx]
call fcn.0041ad10
mov eax, dword [ebx + 0x1c]
cmp eax, 4
jne 0x42c624
mov eax, dword [esi + 0xb60]
add dword [eax + 0xc8], 1
adc dword [eax + 0xcc], 0
cmp dword [esi + 0x864], 0
je 0x42c624
lea eax, [esi + 0x10d4]
push eax
push dword [ebx + 0xc]
mov eax, dword [esi + 0x85c]
push dword [ebx + 8]
add eax, 0x38
push dword [ebx + 0x14]
push dword [ebx + 0x10]
lea eax, [ebx + eax*2]
push ecx
push 0x10001
push eax
mov ecx, esi
call fcn.00417da0
mov ecx, dword [esi + 0x125c]
test ecx, ecx
je 0x42c650
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
test edx, edx
je 0x42c63b
mov dword [edx], eax
jmp 0x42c641
mov dword [esi + 0x1258], eax
mov eax, dword [ecx + 4]
dec dword [esi + 0x1260]
mov dword [esi + 0x125c], eax
push ecx
lea ecx, [esi + 0x126c]
call fcn.0045eba0
jmp 0x42c190
test ecx, ecx
je 0x42c687
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
test edx, edx
je 0x42c672
mov dword [edx], eax
jmp 0x42c678
mov dword [esi + 0x1258], eax
mov eax, dword [ecx + 4]
dec dword [esi + 0x1260]
mov dword [esi + 0x125c], eax
push ecx
lea ecx, [esi + 0x126c]
call fcn.0045eba0
push dword [ebp - 0x28]
mov esi, dword [esi + 0x100c]
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret