Function at 0x429db0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x4db06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x148], edx
mov ecx, dword [ebp + 0x14]
push esi
push edi
mov dword [ebp - 0x104], ecx
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x100], edx
xor edx, edx
mov dword [ebp - 0x134], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x124], 1
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 0x42a4ed
jg 0x429e44
test edi, edi
je 0x42a4ed
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x120], eax
nop dword [eax]
mov eax, dword [ebx + 0xdc0]
mov esi, dword [eax + 0x18]
xor eax, eax
sub esi, edx
cmp dword [ebx + 0x100c], eax
jne 0x42a4f3
mov edx, esi
add edx, dword [ebp - 0x120]
adc eax, dword [ebp - 0x118]
add edx, dword [ebp - 0x110]
adc eax, dword [ebp - 0x10c]
mov dword [ebp - 0x144], eax
cmp eax, ecx
jg 0x42a45d
jl 0x429eab
cmp edx, edi
ja 0x42a45d
mov edi, dword [ebx + 0xd5c]
lea ecx, [ebx + 0xd58]
cmp edi, ecx
jne 0x429ebf
xor edi, edi
jmp 0x429ef9
test edi, edi
je 0x429ef9
cmp dword [edi + 4], 0
je 0x429ed6
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ecx], eax
lea ecx, [ebx + 0xd58]
cmp dword [edi], 0
je 0x429ee9
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [ebx + 0xd58]
mov dword [edi + 4], 0
mov dword [edi], 0
dec dword [ecx + 8]
mov eax, dword [ebx + 0xd64]
lea ecx, [ebx + 0xd64]
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 - 0x120]
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 + 0x13], 0
je 0x429faa
cmp edx, dword [ebp - 0x11c]
jne 0x429faa
mov eax, dword [ebp - 0x12c]
cmp dword [ebp - 0x144], eax
jne 0x429faa
cmp dword [ebp - 0x128], 0
jne 0x429faa
xor edx, edx
mov eax, esi
div dword [ebx + 0x8bc]
test edx, edx
je 0x429faa
mov ecx, ebx
call fcn.00413000
test eax, eax
je 0x42a04d
mov ecx, dword [ebx + 0x6a4]
xor eax, eax
and ecx, 0x40
or eax, ecx
jne 0x429f99
test dword [ebx + 0x8dc], 0x2000
jne 0x42a04d
mov ecx, dword [ebx + 0x8bc]
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 + 0xdc0]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 0x114]
cmp dword [ebx + 0xc], 0
je 0x429fd1
test byte [ebx + 8], 2
je 0x429fd1
mov eax, dword [ebx + 0xbec]
push edi
push esi
push eax
push ecx
mov ecx, ebx
call fcn.00428ce0
mov ecx, ebx
mov esi, eax
call fcn.0041ab10
test esi, esi
je 0x42a3ac
mov al, byte [edi + 0x10]
test al, al
jne 0x429ffe
cmp dword [edi + 0xc], 0
je 0x42a3ac
mov ecx, dword [ebp - 0x120]
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 0x42a073
jl 0x42a03c
cmp ecx, dword [ebp - 0x11c]
jae 0x42a073
cmp dword [ebx + 0xdc8], 0
jne 0x42a073
test al, al
je 0x42a073
xor ecx, ecx
jmp 0x42a078
cmp esi, dword [ebx + 0x8bc]
jbe 0x42a062
sub esi, edx
mov dword [ebp - 0x128], esi
jmp 0x429faa
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x100], ecx
jmp 0x429fb0
mov ecx, 1
lea eax, [ebp - 0xfc]
mov dword [ebp - 0xfc], 0
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 0x104]
movzx eax, byte [eax + 0x12]
push eax
push ecx
sub esp, 8
mov ecx, ebx
push dword [ebp - 0x148]
call fcn.0042a930
mov edi, eax
mov dword [ebp - 0x124], edi
test edi, edi
je 0x42a4ed
cmp dword [ebx + 0x100c], 0
jne 0x42a4ed
mov eax, dword [ebp - 0x13c]
mov edi, dword [ebp - 0x11c]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x10c], esi
jg 0x42a1f8
jl 0x42a10a
mov edx, dword [ebp - 0x110]
cmp edx, edi
jae 0x42a1fe
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x42a137
mov edx, eax
mov dword [ebp - 0x128], 0
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x100], eax
jmp 0x42a226
push dword [ebp - 0xfc]
xor eax, eax
lea ecx, [ebx + 0xd64]
cmp dword [ecx + 4], ecx
mov ecx, ebx
setne al
push eax
call fcn.0042b0f0
test eax, eax
je 0x42a247
mov edx, dword [ebx + 0xdc0]
cmp dword [edx + 0x10], 5
jne 0x42a247
mov ecx, ebx
call fcn.00412f50
test al, al
jne 0x42a183
call fcn.00412ef0
test al, al
je 0x42a220
mov ecx, dword [ebx + 0x104c]
cmp ecx, 5
jne 0x42a193
lea eax, [ecx + 0xb]
jmp 0x42a1dc
cmp ecx, 1
jne 0x42a19d
lea eax, [ecx + 0x13]
jmp 0x42a1dc
cmp ecx, 3
jne 0x42a1a7
lea eax, [ecx + 0x1d]
jmp 0x42a1dc
cmp ecx, 6
jne 0x42a1b1
lea eax, [ecx + 0x3a]
jmp 0x42a1dc
cmp ecx, 4
jne 0x42a1bb
lea eax, [ecx + 4]
jmp 0x42a1dc
cmp ecx, 7
jne 0x42a1c5
lea eax, [ecx + 0x19]
jmp 0x42a1dc
cmp ecx, 8
jne 0x42a1cf
lea eax, [ecx + 0x38]
jmp 0x42a1dc
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.00489a20
add esp, 0xc
jmp 0x42a220
mov edx, dword [ebp - 0x110]
mov ecx, eax
mov eax, dword [ebp - 0x118]
add ecx, edx
adc eax, dword [ebp - 0x10c]
cmp eax, esi
jg 0x42a2eb
jl 0x42a220
cmp ecx, edi
ja 0x42a2eb
mov edx, dword [ebp - 0x114]
cmp dword [ebp - 0x10c], esi
jg 0x42a4ed
jl 0x42a240
cmp dword [ebp - 0x110], edi
jae 0x42a4ed
mov ecx, esi
jmp 0x429e60
xor eax, eax
mov dword [ebp - 0x124], eax
cmp dword [ebx + 0x100c], eax
jne 0x42a4ed
mov esi, dword [ebx + 0xdc0]
cmp dword [esi + 0x10], 6
je 0x42a4ed
test esi, esi
je 0x42a2b0
lea eax, [ebp - 0xf8]
mov ecx, 0x3c
push eax
lea edi, [ebp - 0xf8]
rep movsd dword es:[edi], dword [esi]
push str.x_p
call fcn.0045f780
int3
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0xfc]
push eax
push str.n_p
call fcn.0045f780
int3
mov ecx, dword [ebx + 0x6a4]
xor eax, eax
and ecx, 2
or eax, ecx
je 0x42a45d
push dword [ebx + 0x8dc]
mov ecx, ebx
call fcn.00412fb0
test al, al
je 0x42a45d
sub edi, dword [ebp - 0x120]
mov eax, dword [ebx + 0xb60]
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.KERNEL30.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL30.dll_SetEndOfFile]
mov dword [ebp - 0x124], eax
test eax, eax
jne 0x42a4ed
mov eax, dword [ebp - 0x104]
mov dl, byte [eax + 0x12]
test dl, dl
je 0x42a385
mov eax, dword [ebx + 0x6a0]
and eax, 0x40000000
or eax, 0
je 0x42a4ed
mov ecx, dword [ebx + 0x85c]
test dl, dl
mov eax, dword [ebx + 0x844]
push 0
lea eax, [eax + ecx*2]
mov ecx, str.SetEndOfFile2
push eax
mov eax, str.SetEndOfFile2_st_
cmove eax, ecx
push eax
jmp 0x42a4e6
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x124], 0
cmp byte [eax + 0x12], 0
je 0x42a3d6
mov eax, dword [ebx + 0x6a0]
and eax, 0x40000000
or eax, 0
je 0x42a4ed
mov esi, dword [ebx + 0x14]
call dword [sym.imp.KERNEL30.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL30.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL30.dll_SetLastError]
cmp esi, 0x70
jne 0x42a429
mov eax, dword [ebp - 0x12c]
cmp eax, dword [ebx + 0x704]
jg 0x42a429
jl 0x42a414
mov eax, dword [ebp - 0x11c]
cmp eax, dword [ebx + 0x700]
jae 0x42a429
mov eax, dword [ebp - 0x104]
cmp byte [eax + 0x12], 0
jne 0x42a42f
xor dl, dl
mov eax, 9
jmp 0x42a437
mov eax, dword [ebp - 0x104]
mov dl, byte [eax + 0x12]
mov eax, 8
mov ecx, dword [ebx + 0x85c]
test dl, dl
push eax
mov eax, dword [ebx + 0x844]
lea eax, [eax + ecx*2]
mov ecx, 0x4c36f4
push eax
mov eax, str.WriteFile_st_
cmove eax, ecx
push eax
jmp 0x42a4e6
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x42a49e
mov esi, eax
lea edi, [ebp - 0xc8]
lea eax, [ebp - 0xc8]
mov ecx, 0x30
push eax
rep movsd dword es:[edi], dword [esi]
push str.x_p
call fcn.0045f780
int3
lea eax, [ebp - 0xfc]
mov dword [ebp - 0xfc], 0
push eax
push str.n_p
call fcn.0045f780
int3
mov ecx, ebx
call fcn.0041a620
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00487555
mov esp, ebp
pop ebp
ret 0x10