Function at 0x427d80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x4cf06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ecx]
mov dword [ebp - 0x104], ecx
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x130], eax
mov eax, 1
mov dword [ebp - 0x100], edx
xor edx, edx
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x114], edx
movlpd qword [ebp - 0x110], xmm0
movlpd qword [ebp - 0x140], xmm0
test ecx, ecx
jl 0x42846f
jg 0x427e15
test edi, edi
je 0x42846f
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x124], eax
nop dword [eax]
mov eax, dword [ebx + 0xdac]
mov esi, dword [eax + 0x1c]
xor eax, eax
sub esi, edx
cmp dword [ebx + 0xff4], eax
jne 0x42846f
mov edx, esi
add edx, dword [ebp - 0x124]
adc eax, dword [ebp - 0x118]
add edx, dword [ebp - 0x110]
adc eax, dword [ebp - 0x10c]
mov dword [ebp - 0x144], eax
cmp eax, ecx
jg 0x428423
jl 0x427e7b
cmp edx, edi
ja 0x428423
mov edi, dword [ebx + 0xd4c]
lea ecx, [ebx + 0xd48]
cmp edi, ecx
jne 0x427e8f
xor edi, edi
jmp 0x427ec9
test edi, edi
je 0x427ec9
cmp dword [edi + 4], 0
je 0x427ea6
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ecx], eax
lea ecx, [ebx + 0xd48]
cmp dword [edi], 0
je 0x427eb9
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [ebx + 0xd48]
mov dword [edi + 4], 0
mov dword [edi], 0
dec dword [ecx + 8]
mov eax, dword [ebx + 0xd54]
lea ecx, [ebx + 0xd54]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov eax, dword [ecx]
mov dword [eax + 4], edi
inc dword [ecx + 8]
mov eax, dword [ebp - 0x118]
mov dword [ecx], edi
mov ecx, dword [ebp - 0x124]
add ecx, dword [ebp - 0x110]
mov dword [edi + 0x24], ecx
adc eax, dword [ebp - 0x10c]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x104]
cmp byte [eax + 0xf], 0
je 0x427f7a
cmp edx, dword [ebp - 0x11c]
jne 0x427f7a
mov eax, dword [ebp - 0x12c]
cmp dword [ebp - 0x144], eax
jne 0x427f7a
cmp dword [ebp - 0x128], 0
jne 0x427f7a
xor edx, edx
mov eax, esi
div dword [ebx + 0x8ac]
test edx, edx
je 0x427f7a
mov ecx, ebx
call fcn.00412ac0
test eax, eax
je 0x428029
mov ecx, dword [ebx + 0x694]
xor eax, eax
and ecx, 0x40
or eax, ecx
jne 0x427f69
test dword [ebx + 0x8cc], 0x2000
jne 0x428029
mov ecx, dword [ebx + 0x8ac]
dec esi
add esi, ecx
xor edx, edx
mov eax, esi
div ecx
sub esi, edx
mov ecx, dword [ebp - 0x100]
mov eax, dword [ebx + 0xdac]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 0x114]
cmp dword [ebx + 0xc], 0
je 0x427fa1
test byte [ebx + 8], 2
je 0x427fa1
mov eax, dword [ebx + 0xbdc]
push edi
push esi
push eax
push ecx
mov ecx, ebx
call fcn.00426cf0
mov ecx, ebx
mov esi, eax
call fcn.00419990
test esi, esi
je 0x428375
mov al, byte [edi + 0x10]
test al, al
jne 0x427fce
cmp dword [edi + 0xc], 0
je 0x428375
mov ecx, dword [ebp - 0x124]
add ecx, dword [edi + 8]
mov edx, dword [ebp - 0x118]
mov esi, dword [ebp - 0x12c]
adc edx, 0
mov dword [ebp - 0x140], ecx
add ecx, dword [ebp - 0x110]
mov dword [ebp - 0x13c], edx
adc edx, dword [ebp - 0x10c]
cmp edx, esi
jg 0x42804f
jl 0x42800c
cmp ecx, dword [ebp - 0x11c]
jae 0x42804f
cmp dword [ebx + 0xdb4], 0
jne 0x42804f
test al, al
je 0x42804f
mov eax, dword [ebx + 0xdac]
cmp byte [eax + 0x14], 0
jne 0x42804f
xor ecx, ecx
jmp 0x428054
cmp esi, dword [ebx + 0x8ac]
jbe 0x42803e
sub esi, edx
mov dword [ebp - 0x128], esi
jmp 0x427f7a
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x100], ecx
jmp 0x427f80
mov ecx, 1
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 0x104]
movzx eax, byte [eax + 0xe]
push eax
push ecx
sub esp, 8
mov ecx, ebx
push dword [ebp - 0x148]
call fcn.004287a0
mov dword [ebp - 0xfc], eax
test eax, eax
je 0x42846f
cmp dword [ebx + 0xff4], 0
jne 0x42846f
mov ecx, dword [ebp - 0x13c]
mov edi, dword [ebp - 0x11c]
mov dword [ebp - 0x118], ecx
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x124], ecx
cmp dword [ebp - 0x10c], esi
jg 0x4281c9
jl 0x4280e4
mov edx, dword [ebp - 0x110]
cmp edx, edi
jae 0x4281cf
mov ecx, dword [ebp - 0x128]
test ecx, ecx
je 0x428111
mov edx, ecx
mov dword [ebp - 0x128], 0
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x100], ecx
jmp 0x4281fb
push dword [ebp - 0x120]
xor eax, eax
lea ecx, [ebx + 0xd54]
cmp dword [ecx + 4], ecx
mov ecx, ebx
setne al
push eax
call fcn.00428d80
test eax, eax
je 0x42821c
mov edx, dword [ebx + 0xdac]
mov dword [edx + 0x10], 5
nop
nop
nop
mov ecx, ebx
call fcn.00412a20
test al, al
je 0x4281ef
mov ecx, dword [ebx + 0x1034]
cmp ecx, 5
jne 0x428164
lea eax, [ecx + 0xb]
jmp 0x4281ad
cmp ecx, 1
jne 0x42816e
lea eax, [ecx + 0x13]
jmp 0x4281ad
cmp ecx, 3
jne 0x428178
lea eax, [ecx + 0x1d]
jmp 0x4281ad
cmp ecx, 6
jne 0x428182
lea eax, [ecx + 0x3a]
jmp 0x4281ad
cmp ecx, 4
jne 0x42818c
lea eax, [ecx + 4]
jmp 0x4281ad
cmp ecx, 7
jne 0x428196
lea eax, [ecx + 0x19]
jmp 0x4281ad
cmp ecx, 8
jne 0x4281a0
lea eax, [ecx + 0x38]
jmp 0x4281ad
xor eax, eax
cmp ecx, 2
mov ecx, 0x10
cmove eax, ecx
push eax
lea eax, [edx + 0xa8]
push eax
mov eax, dword [ebp - 0x130]
add eax, 0x78
push eax
call fcn.0047f730
add esp, 0xc
jmp 0x4281ef
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x118]
add ecx, edx
adc eax, dword [ebp - 0x10c]
cmp eax, esi
jg 0x428270
jl 0x4281ef
cmp ecx, edi
ja 0x428270
mov edx, dword [ebp - 0x114]
mov eax, dword [ebp - 0xfc]
cmp dword [ebp - 0x10c], esi
jg 0x42846f
jl 0x428215
cmp dword [ebp - 0x110], edi
jae 0x42846f
mov ecx, esi
jmp 0x427e30
xor eax, eax
mov dword [ebp - 0xfc], eax
cmp dword [ebx + 0xff4], eax
jne 0x42846f
mov esi, dword [ebx + 0xdac]
mov dword [esi + 0x10], 6
jmp 0x42846f
mov ecx, dword [ebx + 0x694]
xor eax, eax
and ecx, 2
or eax, ecx
je 0x428331
push dword [ebx + 0x8cc]
mov ecx, ebx
call fcn.00412a70
test al, al
je 0x428331
sub edi, dword [ebp - 0x124]
mov eax, dword [ebx + 0xb50]
sbb esi, dword [ebp - 0x118]
sub edi, edx
mov ecx, dword [ebp - 0x130]
sbb esi, dword [ebp - 0x10c]
add dword [eax + 0x40], edi
push 0
adc dword [eax + 0x44], esi
lea eax, [ecx + 0x2c]
mov esi, dword [ebp - 0x134]
push eax
push dword [ecx + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0xfc], eax
test eax, eax
jne 0x42846f
mov eax, dword [ebp - 0x104]
mov dl, byte [eax + 0xe]
test dl, dl
je 0x42830a
mov eax, dword [ebx + 0x690]
and eax, 0x40000000
or eax, 0
je 0x428469
mov ecx, dword [ebx + 0x84c]
test dl, dl
mov eax, dword [ebx + 0x834]
push 0
lea eax, [eax + ecx*2]
mov ecx, str.SetEndOfFile2
push eax
mov eax, str.SetEndOfFile2_st_
cmove eax, ecx
push eax
jmp 0x428462
mov esi, dword [ebp - 0x130]
lea eax, [ebp - 0xc8]
push eax
mov ecx, 0x30
lea edi, [ebp - 0xc8]
rep movsd dword es:[edi], dword [esi]
push 0x4b1de0
call fcn.00459e20
add esp, 8
int3
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0xfc], 0
cmp byte [eax + 0xe], 0
je 0x42839f
mov eax, dword [ebx + 0x690]
and eax, 0x40000000
or eax, 0
je 0x428469
mov esi, dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, 0x70
jne 0x4283f2
mov eax, dword [ebp - 0x12c]
cmp eax, dword [ebx + 0x6f4]
jg 0x4283f2
jl 0x4283dd
mov eax, dword [ebp - 0x11c]
cmp eax, dword [ebx + 0x6f0]
jae 0x4283f2
mov eax, dword [ebp - 0x104]
cmp byte [eax + 0xe], 0
jne 0x4283f8
xor dl, dl
mov eax, 9
jmp 0x428400
mov eax, dword [ebp - 0x104]
mov dl, byte [eax + 0xe]
mov eax, 8
mov ecx, dword [ebx + 0x84c]
test dl, dl
push eax
mov eax, dword [ebx + 0x834]
lea eax, [eax + ecx*2]
mov ecx, 0x4b1d40
push eax
mov eax, str.WriteFile_st_
cmove eax, ecx
push eax
jmp 0x428462
mov esi, dword [ebp - 0x130]
lea eax, [ebp - 0xc8]
push eax
mov ecx, 0x30
lea edi, [ebp - 0xc8]
rep movsd dword es:[edi], dword [esi]
push 0x4b1cf0
call fcn.00459e20
add esp, 8
int3
mov ecx, ebx
call fcn.00419420
mov eax, dword [ebp - 0xfc]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d39f
mov esp, ebp
pop ebp
ret 0x10