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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x454
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx + 0xc]
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
push edi
mov edi, dword [edx + 0x14]
xor esi, esi
shl eax, 7
add ecx, 0x10
add eax, 0x90
lea edi, [edi*4 + 8]
mov dword [esp + 0x44], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], esi
lea esi, [edi + ecx]
mov dword [esp + 0x40], eax
add esi, eax
mov eax, dword [0x4c6060]
push eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x28], edi
call ebx
mov ecx, dword [eax + 0x2c]
sub ecx, dword [eax + 0x20]
add eax, 0x20
sub ecx, 0x10
cmp esi, ecx
jl 0x45e90c
mov esi, ecx
mov ecx, dword [0x4c6060]
push ecx
call ebx
mov edx, dword [eax + 0x20]
lea ecx, [esi + 0x10]
and ecx, 0xfffffff0
lea ebx, [edx + ecx]
cmp ebx, dword [eax + 0x2c]
ja 0x45e92f
mov dword [eax + 0x20], ebx
mov dword [esp + 0x38], edx
jmp 0x45e93d
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x14]
call eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
lea ecx, [eax + esi]
mov ebx, eax
add eax, dword [esp + 0x40]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x3c], eax
add eax, dword [esp + 0x48]
mov dword [esp + 0x18], eax
lea ebx, [ebx]
mov dword [esp + 0x2c], eax
add eax, edi
cmp eax, ecx
jbe 0x45eac2
mov edx, dword [esp + 0x3c]
cmp edx, ecx
jae 0x45ea77
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
add eax, 0x10
cmp dword [esp + 0x18], ecx
jb 0x45ea32
mov ebx, ecx
sub ebx, eax
xor ecx, ecx
mov edi, ebx
sub edi, edx
mov edx, dword [ebp + 0x14]
mov esi, dword [edx + 0xc]
mov edx, dword [0x4c6060]
test edi, edi
setle cl
push edx
sub ecx, 1
and ecx, edi
sub esi, ecx
add esi, eax
mov eax, dword [esp + 0x28]
lea ecx, [esi + eax]
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x1c]
mov ecx, eax
mov eax, dword [ecx + 0x20]
add edx, 0x10
and edx, 0xfffffff0
mov dword [esp + 0x2c], eax
add eax, edx
cmp eax, dword [ecx + 0x2c]
ja 0x45e9e6
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x2c]
jmp 0x45e9ee
mov eax, dword [ecx]
push edx
mov edx, dword [eax + 0x14]
call edx
mov ecx, dword [esp + 0x1c]
add ecx, eax
test edi, edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x34], eax
jge 0x45ea1f
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 0xc]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
lea eax, [edx + eax + 0x10]
mov dword [esp + 0x28], 0
jmp 0x45e956
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x28], eax
add eax, esi
jmp 0x45e960
mov edx, dword [0x4c6060]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax + 0x20]
lea ecx, [edi + 0x10]
and ecx, 0xfffffff0
lea esi, [edx + ecx]
cmp esi, dword [eax + 0x2c]
ja 0x45ea61
mov dword [eax + 0x20], esi
mov eax, edx
mov dword [esp + 0x34], eax
lea ecx, [eax + edi]
jmp 0x45e960
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x14]
call eax
mov dword [esp + 0x34], eax
lea ecx, [eax + edi]
jmp 0x45e960
sub eax, dword [esp + 0x38]
mov ecx, dword [0x4c6060]
push ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x20]
lea edx, [ebx + 0x10]
and edx, 0xfffffff0
lea esi, [ecx + edx]
cmp esi, dword [eax + 0x2c]
ja 0x45eaac
mov dword [eax + 0x20], esi
mov eax, ecx
mov dword [esp + 0x34], eax
lea ecx, [eax + ebx]
jmp 0x45e944
mov esi, dword [eax]
push edx
mov edx, dword [esi + 0x14]
mov ecx, eax
call edx
mov dword [esp + 0x34], eax
lea ecx, [eax + ebx]
jmp 0x45e944
fldz
mov byte [ebx], 1
mov byte [ebx + 1], 1
fst dword [ebx + 0x3c]
fst dword [ebx + 0x38]
xor eax, eax
cmp dword [ebp + 0x1c], eax
fst dword [ebx + 0x34]
fst dword [ebx + 0x30]
fst dword [ebx + 0x1c]
fst dword [ebx + 0x18]
fst dword [ebx + 0x14]
fst dword [ebx + 0x10]
fst dword [ebx + 0x2c]
fst dword [ebx + 0x28]
fst dword [ebx + 0x24]
fst dword [ebx + 0x20]
fst dword [ebx + 0x4c]
fst dword [ebx + 0x48]
fst dword [ebx + 0x44]
fst dword [ebx + 0x40]
fst dword [ebx + 0x50]
fst dword [ebx + 0x54]
fst dword [ebx + 0x58]
fst dword [ebx + 0x5c]
fst dword [ebx + 0x60]
fst dword [ebx + 0x64]
fst dword [ebx + 0x68]
fst dword [ebx + 0x6c]
fst dword [ebx + 0x70]
fst dword [ebx + 0x74]
fst dword [ebx + 0x78]
fstp dword [ebx + 0x7c]
jle 0x45eb54
mov ecx, 0x80
jmp 0x45eb30
mov edi, dword [ebp + 0x18]
mov edx, dword [edi + eax*4]
cmp ecx, dword [edx + 0x90]
je 0x45eb44
mov dword [edx + 0x90], ecx
add eax, 1
add ecx, 0x80
cmp eax, dword [ebp + 0x1c]
jl 0x45eb30
jmp 0x45eb57
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0x1c]
lea eax, [ebx + 0x80]
push eax
push 0xd0
push esi
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 8]
push edi
push eax
call fcn.0045c590
mov ecx, dword [ebp + 0x14]
mov byte [eax], 3
xor eax, eax
add esp, 0x14
cmp dword [ecx + 0x14], eax
jle 0x45eb98
fldz
mov edx, dword [esp + 0x2c]
fst dword [edx + eax*4]
add eax, 1
cmp eax, dword [ecx + 0x14]
jl 0x45eb87
fstp st(0)
mov eax, dword [esp + 0x18]
lea ecx, [edi + esi*4]
cmp edi, ecx
lea esi, [esp + 0x5c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov edx, edi
mov dword [esp + 0x50], esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0x80000100
jae 0x45eda1
jmp 0x45ebe0
mov ecx, dword [edx]
movzx edx, word [ecx + 0x9c]
mov edi, dword [ecx + 0x98]
lea edx, [edx + edx*2]
shl edx, 4
add edx, edi
cmp edi, edx
mov dword [esp + 0x40], edx
jae 0x45ed89
test byte [edi + 0x12], 5
je 0x45ec7e
mov ecx, dword [edi]
mov dword [esi + 0x48], ecx
mov edx, dword [edi + 0x1c]
mov dword [esi + 0x4c], edx
mov ecx, dword [edi]
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x20], ecx
mov ecx, dword [edx + 0x90]
add ecx, ebx
mov dword [esi + 0x30], ecx
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 0x90]
add ecx, ebx
mov dword [esi + 0x34], ecx
mov edx, dword [edx + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x38], edx
mov edx, dword [ecx + 0x18]
mov dword [esi + 0x3c], edx
test byte [edi + 0x12], 1
je 0x45ec67
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x28]
push ecx
push esi
push eax
call fcn.00462c70
mov eax, dword [esp + 0x24]
add esp, 0xc
test byte [edi + 0x12], 4
je 0x45ec7e
mov edx, dword [edi]
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
push esi
call edx
mov eax, dword [esp + 0x18]
cmp byte [edi + 0x13], 3
jb 0x45ecb7
mov eax, dword [esp + 0x58]
and eax, 0x3fffffff
cmp dword [esp + 0x54], eax
jne 0x45eca2
lea eax, [esp + 0x50]
push 4
push eax
call fcn.00402730
add esp, 8
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov dword [ecx + edx*4], edi
add dword [esp + 0x54], 1
jmp 0x45ed78
cmp eax, dword [esp + 0x1c]
jb 0x45ece3
fld dword [eax]
mov ecx, dword [esp + 0x28]
fadd qword [0x4b9080]
mov edx, dword [esp + 0x28]
sub ecx, eax
mov dword [eax + 4], ecx
fstp dword [eax]
mov byte [eax], 2
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [edi + 4]
mov edx, dword [eax + 0x90]
mov ecx, dword [edi + 8]
add edx, ebx
mov dword [esi + 0x30], edx
mov edx, dword [ecx + 0x90]
add edx, ebx
mov dword [esi + 0x34], edx
lea edx, [eax + 0xe0]
mov dword [esi + 0x38], edx
lea edx, [ecx + 0xe0]
mov dword [esi + 0x3c], edx
mov edx, dword [edi]
mov dword [esi + 0x48], edx
mov edx, dword [edi + 0x1c]
mov dword [esi + 0x4c], edx
mov eax, dword [eax + 0x90]
shr eax, 7
movzx edx, ax
mov dword [esi + 0x50], edx
mov eax, dword [ecx + 0x90]
mov edx, dword [esi + 0x4c]
shr eax, 7
movzx ecx, ax
mov dword [esi + 0x54], ecx
mov dword [esi + 0x58], edx
mov eax, dword [edi + 0xc]
cmp word [eax], 0x16
movzx ecx, word [edi + 0x10]
jne 0x45ed65
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x4c], 1
mov edx, dword [esp + 0x4c]
push edx
push esi
push eax
call fcn.004a2550
jmp 0x45ed75
lea edx, [esp + 0x18]
push edx
movzx ecx, cx
push esi
push ecx
push eax
call fcn.0049e4e0
add esp, 0x10
mov eax, dword [esp + 0x18]
add edi, 0x30
cmp edi, dword [esp + 0x40]
jb 0x45ec03
mov edx, dword [esp + 0x24]
add edx, 4
cmp edx, dword [esp + 0x30]
mov dword [esp + 0x24], edx
jb 0x45ebe0
mov edi, dword [ebp + 0x18]
xor ecx, ecx
cmp dword [esp + 0x54], ecx
mov dword [esp + 0x20], ecx
jle 0x45ee94
cmp eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x50]
mov ecx, dword [edx + ecx*4]
jb 0x45ede4
fld dword [eax]
mov edx, dword [esp + 0x28]
fadd qword [0x4b9080]
sub edx, eax
mov dword [eax + 4], edx
mov dword [esp + 0x1c], 0xffffffff
fstp dword [eax]
mov byte [eax], 2
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 4]
mov edi, dword [eax + 0x90]
mov edx, dword [ecx + 8]
add edi, ebx
mov dword [esi + 0x30], edi
mov edi, dword [edx + 0x90]
add edi, ebx
mov dword [esi + 0x34], edi
lea edi, [eax + 0xe0]
mov dword [esi + 0x38], edi
lea edi, [edx + 0xe0]
mov dword [esi + 0x3c], edi
mov edi, dword [ecx]
mov dword [esi + 0x48], edi
mov edi, dword [ecx + 0x1c]
mov dword [esi + 0x4c], edi
mov eax, dword [eax + 0x90]
shr eax, 7
movzx eax, ax
mov dword [esi + 0x50], eax
mov edx, dword [edx + 0x90]
shr edx, 7
movzx eax, dx
mov dword [esi + 0x54], eax
mov edx, edi
mov dword [esi + 0x58], edx
movzx eax, word [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
cmp word [ecx], 0x16
jne 0x45ee65
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x34], 1
mov edx, dword [esp + 0x34]
push edx
push esi
push ecx
call fcn.004a2550
jmp 0x45ee75
lea edx, [esp + 0x18]
push edx
movzx eax, ax
push esi
push eax
push ecx
call fcn.0049e4e0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
add ecx, 1
add esp, 0x10
cmp ecx, dword [esp + 0x54]
mov dword [esp + 0x20], ecx
jl 0x45edb1
mov edi, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, dword [esp + 0x58]
test eax, eax
js 0x45eecc
mov ecx, dword [0x4c6060]
and eax, 0x3fffffff
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x50]
push 0x17
lea edx, [esi*4]
push edx
push ecx
mov ecx, eax
call fcn.004023e0
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x3c]
mov eax, dword [ebp + 0xc]
push edx
push ebx
push esi
push eax
call fcn.0048cec0
mov ecx, dword [0x4c6074]
add esp, 0x10
push ecx
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 0xc]
jae 0x45ef11
mov edx, dword [ebp + 0x14]
mov dword [ecx], str.MiNumJacobians
fild dword [edx + 0x10]
add ecx, 8
fstp dword [ecx - 4]
mov dword [eax + 4], ecx
mov eax, dword [0x4c6074]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 0xc]
jae 0x45ef37
fild dword [ebp + 0x1c]
mov dword [ecx], 0x4b9088
add ecx, 8
fstp dword [ecx - 4]
mov dword [eax + 4], ecx
cmp dword [esp + 0x30], 1
jne 0x45ef9d
mov ecx, dword [esp + 0x2c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push ecx
push ebx
call fcn.004a59e0
mov edx, dword [ebp + 0x1c]
mov eax, dword [esp + 0x5c]
mov ecx, dword [ebp + 8]
push 0xd0
push edx
push edi
push eax
push ecx
push ebx
call fcn.0045cb70
mov edx, dword [ebp + 0x1c]
mov ebx, eax
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edx
mov edx, dword [ecx + 0x6c]
push edi
push edx
call fcn.00456ef0
mov eax, dword [esi]
add esp, 0x34
test eax, eax
mov dword [esp + 0x44], ebx
je 0x45ef9d
push eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x18]
add esi, 0x10
push esi
push ecx
call fcn.0044d210
add esp, 0xc
mov esi, dword [esp + 0x34]
test esi, esi
je 0x45efc4
mov edx, dword [0x4c6060]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, dword [eax + 0x28]
mov dword [eax + 0x20], esi
jne 0x45efc4
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
push esi
call eax
mov ecx, dword [0x4c6060]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x38]
cmp ecx, dword [eax + 0x28]
mov dword [eax + 0x20], ecx
jne 0x45efe7
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x18]
call eax
mov eax, dword [esp + 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret