Function at 0x43f710
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [0x4b1780]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edi
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [esp + 0x54], eax
mov byte [esp + 0x84], al
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x2c]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x50], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x78], eax
xor eax, eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
cmp byte [ecx], al
jne 0x43f7a3
mov ecx, eax
mov dword [ebx], edx
mov dword [ebx + 4], ecx
jmp 0x43fd47
push dword [edi + 0x1e4]
lea esi, [edi + 0x1e4]
mov dword [esp + 0x78], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43f7cf
mov eax, dword [esp + 0x30]
mov dword [ebx], 0
mov dword [ebx + 4], eax
jmp 0x43fd47
push esi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x43f7e1
call fcn.0043ae90
test byte [ebp + 0x3c], 4
je 0x43f803
mov eax, dword [ebp + 0x18]
xor eax, dword [edi + 0x118]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x1c]
xor eax, dword [edi + 0x11c]
mov dword [esp + 0x38], eax
jmp 0x43f811
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x4c]
xorps xmm0, xmm0
push dword [edi + 0x1e0]
movlpd qword [esp + 0x6c], xmm0
mov dword [esp + 0x1c], 0
mov ecx, dword [eax]
sub ecx, dword [edi + 0x128]
mov eax, dword [eax + 4]
sbb eax, dword [edi + 0x12c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x90], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x43f8d4
call fcn.00436000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43f8d4
push dword [edi + 0x1dc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
mov dword [esp + 0x18], edx
test edx, edx
je 0x43f8a0
mov ecx, dword [edx + 0x20]
cmp ecx, dword [edi + 0x234]
je 0x43f8d4
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax + 4]
push 0x28
call fcn.0048bbd1
add esp, 4
test eax, eax
je 0x43f8b8
push edi
mov ecx, eax
call fcn.0043de70
jmp 0x43f8ba
xor eax, eax
push eax
push dword [edi + 0x1dc]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x43f8d4
call fcn.0043ae90
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esp + 0x1c], eax
jne 0x43fa4f
call fcn.0043a560
push dword [esp + 0x1c]
mov ecx, eax
call fcn.00439ef0
mov dword [esp + 0x14], eax
call fcn.00442420
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x43fa4f
test ecx, ecx
je 0x43fa4f
cmp byte [ecx], 0
je 0x43fa4f
call fcn.00442420
push dword [esp + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x43f93c
call fcn.0043ae90
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add edi, 0x18
push edi
call eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push ecx
add eax, 0xb0
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
mov dword [esp + 0x78], eax
call fcn.00427020
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x24]
cmp esi, dword [ecx]
jne 0x43f98f
push dword [esp + 0x14]
lea eax, [esp + 0x20]
push ecx
push eax
call fcn.004419a0
add esp, 4
mov ecx, eax
call fcn.0043b090
jmp 0x43fa40
push 0x413be8
lea ecx, [esp + 0x9c]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
call fcn.004209a0
lea eax, [esi + 0xc]
push eax
lea ecx, [esp + 0x94]
mov dword [esp + 0x28], eax
call fcn.004199f0
lea eax, [esp + 0x5c]
push eax
lea edx, [esp + 0x9c]
lea ecx, [esp + 0x94]
call fcn.0042c5b0
mov esi, dword [esp + 0x64]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x60]
add esp, 4
mov byte [esp + 0x7c], 0
mov edx, esi
push dword [esp + 0x7c]
push eax
call fcn.00443c50
add esp, 8
cmp eax, esi
jne 0x43fa2f
sub esi, dword [esp + 0x5c]
test esi, 0xfffffff8
mov esi, dword [esp + 0x24]
je 0x43fa24
push 0x2c
mov ecx, esi
call fcn.00426080
push dword [esp + 0x14]
mov ecx, esi
call fcn.00419100
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x43fa40
push eax
call fcn.0048bc47
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x218], 0xf
mov dword [esp + 0x214], 0
mov byte [esp + 0x204], 0
test byte [eax], 3
je 0x43fbca
mov eax, dword [esp + 0x18]
mov byte [esp + 0xf], 0
test eax, eax
je 0x43fa9b
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.0043e0e0
mov ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x43fabb
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 1
lea eax, [esp + 0x30]
mov byte [esp + 0x13], 1
push eax
mov ecx, edi
call fcn.0043f530
mov ecx, eax
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x43fb0c
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [ebp + 0x3c]
push dword [esp + 0x8c]
push dword [esp + 0x68]
push dword [esp + 0x64]
push dword [esp + 0x78]
push dword [ebp + 0x28]
push dword [esp + 0x60]
push dword [esp + 0x60]
push dword [esp + 0x6c]
push dword [esp + 0x5c]
push dword [esp + 0xbc]
push dword [esp + 0x58]
call fcn.0043d1a0
mov ecx, dword [esp + 0x20]
mov eax, dword [edi + 0x16c]
test al, 8
je 0x43fb5a
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x58]
cmp cl, 0x58
push eax
movzx eax, cl
mov ecx, 0x42
cmove eax, ecx
mov ecx, edi
movzx eax, al
push eax
lea eax, [esp + 0x248]
push eax
call fcn.0043fd60
push eax
lea ecx, [esp + 0x208]
call fcn.00426040
lea ecx, [esp + 0x23c]
call fcn.004190d0
cmp byte [esp + 0xf], 0
je 0x43fb68
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x214], 0
je 0x43fbca
cmp dword [0x4b7064], 2
jg 0x43fbaf
mov eax, 2
lea ecx, [esp + 0xa0]
push eax
push 0x7d6
push 0x413df0
mov dword [esp + 0x1c], eax
call fcn.0041fca0
lea ecx, [esp + 0x204]
add eax, 8
push ecx
push eax
call fcn.0041b5f0
add esp, 8
mov eax, dword [esp + 0x10]
test al, 2
je 0x43fbce
and eax, 0xfffffffd
lea ecx, [esp + 0xa0]
mov dword [esp + 0x10], eax
call fcn.0041fcf0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
cmp dword [edi + 0x150], ecx
jne 0x43fc82
mov dword [esp + 0x21c], 0
mov dword [esp + 0x220], 0
mov dword [esp + 0x238], 0xf
mov dword [esp + 0x234], 0
mov byte [esp + 0x224], 0
test al, 0x10
je 0x43fc22
lea ecx, [esp + 0x150]
call fcn.0041fcf0
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
call eax
mov edx, dword [esp + 0x3c]
lea ecx, [edi + 0x154]
call fcn.0042ea70
lea ecx, [edi + 0x130]
mov bl, al
push ecx
lea ecx, [esp + 0x220]
call fcn.0042d210
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x43fc6f
mov eax, dword [esp + 0x21c]
test eax, eax
je 0x43fc6f
push eax
call dword [esp + 0x224]
add esp, 4
lea ecx, [esp + 0x21c]
call fcn.004279a0
mov ebx, dword [esp + 0x80]
mov eax, dword [esp + 0x28]
test byte [eax], 4
je 0x43fcd4
mov ecx, dword [edi + 0x40]
test ecx, ecx
je 0x43fcd4
push dword [ebp + 0x3c]
mov edx, dword [esp + 0x58]
cmp dl, 0x58
push dword [esp + 0x54]
push dword [esp + 0x50]
push dword [esp + 0x64]
push dword [ebp + 0x28]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x58]
push eax
movzx eax, dl
mov edx, 0x42
cmove eax, edx
movzx eax, al
push eax
push dword [esp + 0x6c]
push dword [esp + 0x6c]
call ecx
add esp, 0x30
mov eax, dword [esp + 0x18]
test eax, eax
je 0x43fcf0
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
call fcn.0043e230
cmp dword [esp + 0x218], 0x10
mov eax, dword [esp + 0x2c]
mov dword [ebx], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 4], eax
jb 0x43fd16
push dword [esp + 0x204]
call fcn.0048bc47
add esp, 4
push 0
push dword [esi]
mov dword [esp + 0x220], 0xf
mov dword [esp + 0x21c], 0
mov byte [esp + 0x20c], 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x43fd47
call fcn.0043ae90
mov ecx, dword [esp + 0x254]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048f991
mov esp, ebp
pop ebp
ret 0x38